Section 1
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
MochiSocial.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 2
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 3
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 4
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local3:Object;
var _local4:Object;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function endGame():void{
var _local1:Number;
_local1 = (new Date().time - gameStart);
trigger("end_game", {time:_local1});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(_arg1:String, _arg2:Object=null):void{
if (_arg2 == null){
_arg2 = {};
} else {
if (_arg2["kind"] != undefined){
trace("WARNING: optional arguments package contains key 'id', it will be overwritten");
_arg2["kind"] = _arg1;
};
};
MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var _local1:Number;
_local1 = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package mochi.as3
Section 5
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _consumableProperties:Object;
private var _syncID:Number;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (_arg1.privateProperties.consumable){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function sync(_arg1:Event=null):void{
var _local2:Object;
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
_local2 = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[_local2]);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 6
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
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 n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
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;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
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.gotoAndStop("start");
} 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.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
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{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 7
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.geom.*;
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 _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _loader:Loader;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = _clip._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 _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
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++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
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().time));
_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);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.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 vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete: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();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
var _local3:Number;
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
_local3 = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
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 {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.7 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_clip._queue))){
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);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String;
var _local3:String;
_local2 = _arg1.target;
_local3 = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
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 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) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var mochiLCURL:String;
var req:URLRequest;
var complete:Function;
var clip = _arg1;
loader = new Loader();
mochiLCURL = (_servURL + _mochiLC);
req = new URLRequest(mochiLCURL);
complete = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
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");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:URLVariables;
_local3 = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
_local4 = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local4 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local4);
_clip = createEmptyMovieClip(_arg2, _local3, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
_local5 = new URLRequest(_local4);
_local6 = new URLVariables();
_local6.listenLC = _listenChannelName;
_local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local6.api_version = getVersion();
if (widget){
_local6.widget = true;
};
_local5.data = _local6;
_loader.load(_local5);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
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 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 bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((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 connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 8
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const USER_INFO:String = "UserInfo";
public static const ERROR:String = "Error";
public static const LOGIN_SHOW:String = "LoginShow";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_SHOWN:String = "LoginShown";
public static const LOGIN_HIDE:String = "LoginHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _user_info:Object = null;
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 9
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
_syncContainer = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:String;
if (_syncContainer[_arg1] == _arg2){
return;
};
_local3 = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
}
}//package mochi.as3
Section 10
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var error:Event;// = null
public var key:String;// = null
public var operation:String;// = null
public var data;// = null
public var _loader:URLLoader;
public function MochiUserData(_arg1:String="", _arg2:Function=null){
key = null;
data = null;
error = null;
operation = null;
callback = null;
super();
this.key = _arg1;
this.callback = _arg2;
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function request(_arg1:String, _arg2:ByteArray):void{
var api_url:String;
var api_token:String;
var args:URLVariables;
var req:URLRequest;
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
api_url = MochiSocial.getAPIURL();
api_token = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
args = new URLVariables();
args.op = _operation;
args.key = key;
req = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData;
_local3 = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData;
_local4 = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 11
//bjmvhcgf_86 (spongebob_fla.bjmvhcgf_86)
package spongebob_fla {
import flash.display.*;
public dynamic class bjmvhcgf_86 extends MovieClip {
public function bjmvhcgf_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 12
//bjmvhcgfcopy_98 (spongebob_fla.bjmvhcgfcopy_98)
package spongebob_fla {
import flash.display.*;
public dynamic class bjmvhcgfcopy_98 extends MovieClip {
public function bjmvhcgfcopy_98(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 13
//bnjnhcvgbxcv_143 (spongebob_fla.bnjnhcvgbxcv_143)
package spongebob_fla {
import flash.display.*;
public dynamic class bnjnhcvgbxcv_143 extends MovieClip {
public function bnjnhcvgbxcv_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 14
//bnjnhcvgbxcvcopy_152 (spongebob_fla.bnjnhcvgbxcvcopy_152)
package spongebob_fla {
import flash.display.*;
public dynamic class bnjnhcvgbxcvcopy_152 extends MovieClip {
public function bnjnhcvgbxcvcopy_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 15
//bnmvbncv_202 (spongebob_fla.bnmvbncv_202)
package spongebob_fla {
import flash.display.*;
public dynamic class bnmvbncv_202 extends MovieClip {
public function bnmvbncv_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 16
//bnmvbncvcopy_204 (spongebob_fla.bnmvbncvcopy_204)
package spongebob_fla {
import flash.display.*;
public dynamic class bnmvbncvcopy_204 extends MovieClip {
public function bnmvbncvcopy_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 17
//eyrtywerqwe_61 (spongebob_fla.eyrtywerqwe_61)
package spongebob_fla {
import flash.display.*;
import flash.events.*;
public dynamic class eyrtywerqwe_61 extends MovieClip {
public var inst:SimpleButton;
public function eyrtywerqwe_61(){
addFrameScript(0, frame1);
}
function frame1(){
inst.addEventListener(MouseEvent.CLICK, instFun);
}
public function instFun(_arg1:MouseEvent):void{
MovieClip(root).gotoAndStop("start");
}
}
}//package spongebob_fla
Section 18
//fsdfwe3455Symbbvfzsdol2_131 (spongebob_fla.fsdfwe3455Symbbvfzsdol2_131)
package spongebob_fla {
import flash.display.*;
public dynamic class fsdfwe3455Symbbvfzsdol2_131 extends MovieClip {
public function fsdfwe3455Symbbvfzsdol2_131(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package spongebob_fla
Section 19
//ghjdgsg_166 (spongebob_fla.ghjdgsg_166)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjdgsg_166 extends MovieClip {
public function ghjdgsg_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 20
//ghjfgh_181 (spongebob_fla.ghjfgh_181)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjfgh_181 extends MovieClip {
public function ghjfgh_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 21
//ghjfghcopy_188 (spongebob_fla.ghjfghcopy_188)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjfghcopy_188 extends MovieClip {
public function ghjfghcopy_188(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 22
//ghjgfghf_145 (spongebob_fla.ghjgfghf_145)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjgfghf_145 extends MovieClip {
public function ghjgfghf_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 23
//ghjgfghfcopy2_150 (spongebob_fla.ghjgfghfcopy2_150)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjgfghfcopy2_150 extends MovieClip {
public function ghjgfghfcopy2_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 24
//ghjgfhfg_189 (spongebob_fla.ghjgfhfg_189)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjgfhfg_189 extends MovieClip {
public function ghjgfhfg_189(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 25
//ghjgfhfgcopy_197 (spongebob_fla.ghjgfhfgcopy_197)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjgfhfgcopy_197 extends MovieClip {
public function ghjgfhfgcopy_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 26
//ghjghjg_171 (spongebob_fla.ghjghjg_171)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjghjg_171 extends MovieClip {
public function ghjghjg_171(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 27
//ghjghjgcopy_187 (spongebob_fla.ghjghjgcopy_187)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjghjgcopy_187 extends MovieClip {
public function ghjghjgcopy_187(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 28
//ghjghjgh_100 (spongebob_fla.ghjghjgh_100)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjghjgh_100 extends MovieClip {
public function ghjghjgh_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 29
//ghjghjghcopy_102 (spongebob_fla.ghjghjghcopy_102)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjghjghcopy_102 extends MovieClip {
public function ghjghjghcopy_102(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 30
//ghjngn_163 (spongebob_fla.ghjngn_163)
package spongebob_fla {
import flash.display.*;
public dynamic class ghjngn_163 extends MovieClip {
public function ghjngn_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 31
//ghngfh_173 (spongebob_fla.ghngfh_173)
package spongebob_fla {
import flash.display.*;
public dynamic class ghngfh_173 extends MovieClip {
public function ghngfh_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 32
//ghngfhcopy_183 (spongebob_fla.ghngfhcopy_183)
package spongebob_fla {
import flash.display.*;
public dynamic class ghngfhcopy_183 extends MovieClip {
public function ghngfhcopy_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 33
//ghnjhf_193 (spongebob_fla.ghnjhf_193)
package spongebob_fla {
import flash.display.*;
public dynamic class ghnjhf_193 extends MovieClip {
public function ghnjhf_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 34
//ghnjhfcopy_198 (spongebob_fla.ghnjhfcopy_198)
package spongebob_fla {
import flash.display.*;
public dynamic class ghnjhfcopy_198 extends MovieClip {
public function ghnjhfcopy_198(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 35
//hjgghf_78 (spongebob_fla.hjgghf_78)
package spongebob_fla {
import flash.display.*;
public dynamic class hjgghf_78 extends MovieClip {
public function hjgghf_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 36
//hjgghfcopy_91 (spongebob_fla.hjgghfcopy_91)
package spongebob_fla {
import flash.display.*;
public dynamic class hjgghfcopy_91 extends MovieClip {
public function hjgghfcopy_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 37
//hjk_84 (spongebob_fla.hjk_84)
package spongebob_fla {
import flash.display.*;
public dynamic class hjk_84 extends MovieClip {
public function hjk_84(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 38
//hjkcopy_96 (spongebob_fla.hjkcopy_96)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkcopy_96 extends MovieClip {
public function hjkcopy_96(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 39
//hjkfh_165 (spongebob_fla.hjkfh_165)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkfh_165 extends MovieClip {
public function hjkfh_165(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 40
//hjkghj_155 (spongebob_fla.hjkghj_155)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkghj_155 extends MovieClip {
public function hjkghj_155(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 41
//hjkhj_137 (spongebob_fla.hjkhj_137)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkhj_137 extends MovieClip {
public function hjkhj_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 42
//hjkhjcopy_151 (spongebob_fla.hjkhjcopy_151)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkhjcopy_151 extends MovieClip {
public function hjkhjcopy_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 43
//hjkjgh_179 (spongebob_fla.hjkjgh_179)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkjgh_179 extends MovieClip {
public function hjkjgh_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 44
//hjkjghcopy_186 (spongebob_fla.hjkjghcopy_186)
package spongebob_fla {
import flash.display.*;
public dynamic class hjkjghcopy_186 extends MovieClip {
public function hjkjghcopy_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 45
//hjmghnmgh_83 (spongebob_fla.hjmghnmgh_83)
package spongebob_fla {
import flash.display.*;
public dynamic class hjmghnmgh_83 extends MovieClip {
public function hjmghnmgh_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 46
//hjmghnmghcopy_93 (spongebob_fla.hjmghnmghcopy_93)
package spongebob_fla {
import flash.display.*;
public dynamic class hjmghnmghcopy_93 extends MovieClip {
public function hjmghnmghcopy_93(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 47
//hngfhfg_159 (spongebob_fla.hngfhfg_159)
package spongebob_fla {
import flash.display.*;
public dynamic class hngfhfg_159 extends MovieClip {
public function hngfhfg_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 48
//hngfhfgdf_168 (spongebob_fla.hngfhfgdf_168)
package spongebob_fla {
import flash.display.*;
public dynamic class hngfhfgdf_168 extends MovieClip {
public function hngfhfgdf_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 49
//hngfhfgh_177 (spongebob_fla.hngfhfgh_177)
package spongebob_fla {
import flash.display.*;
public dynamic class hngfhfgh_177 extends MovieClip {
public function hngfhfgh_177(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 50
//hngfhfghcopy_184 (spongebob_fla.hngfhfghcopy_184)
package spongebob_fla {
import flash.display.*;
public dynamic class hngfhfghcopy_184 extends MovieClip {
public function hngfhfghcopy_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 51
//hngfhfghcopy2_201 (spongebob_fla.hngfhfghcopy2_201)
package spongebob_fla {
import flash.display.*;
public dynamic class hngfhfghcopy2_201 extends MovieClip {
public function hngfhfghcopy2_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 52
//jghjgh_139 (spongebob_fla.jghjgh_139)
package spongebob_fla {
import flash.display.*;
public dynamic class jghjgh_139 extends MovieClip {
public function jghjgh_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 53
//jghjghcopy_149 (spongebob_fla.jghjghcopy_149)
package spongebob_fla {
import flash.display.*;
public dynamic class jghjghcopy_149 extends MovieClip {
public function jghjghcopy_149(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 54
//jghjghf_195 (spongebob_fla.jghjghf_195)
package spongebob_fla {
import flash.display.*;
public dynamic class jghjghf_195 extends MovieClip {
public function jghjghf_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 55
//jghjghfcopy_199 (spongebob_fla.jghjghfcopy_199)
package spongebob_fla {
import flash.display.*;
public dynamic class jghjghfcopy_199 extends MovieClip {
public function jghjghfcopy_199(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 56
//jghnjgfhfg_81 (spongebob_fla.jghnjgfhfg_81)
package spongebob_fla {
import flash.display.*;
public dynamic class jghnjgfhfg_81 extends MovieClip {
public function jghnjgfhfg_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 57
//jghnjgfhfgcopy_97 (spongebob_fla.jghnjgfhfgcopy_97)
package spongebob_fla {
import flash.display.*;
public dynamic class jghnjgfhfgcopy_97 extends MovieClip {
public function jghnjgfhfgcopy_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 58
//jk_89 (spongebob_fla.jk_89)
package spongebob_fla {
import flash.display.*;
public dynamic class jk_89 extends MovieClip {
public var q3:MovieClip;
public function jk_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 59
//jkhjk_205 (spongebob_fla.jkhjk_205)
package spongebob_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
public dynamic class jkhjk_205 extends MovieClip {
public var cong:MovieClip;
public var level_txt:TextField;
public var plyAgain:SimpleButton;
public var submitScore:SimpleButton;
public var moreGames:SimpleButton;
public var game_txt:TextField;
public function jkhjk_205(){
addFrameScript(0, frame1);
}
public function subFun(_arg1:MouseEvent):void{
MovieClip(root).gotoAndStop("cong");
}
public function gotochase(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
function frame1(){
myVar.gameScore = (myVar.gameScore + myVar.levelScore);
level_txt.text = myVar.levelScore.toString();
game_txt.text = myVar.gameScore.toString();
plyAgain.addEventListener(MouseEvent.CLICK, callPlayAgain);
submitScore.addEventListener(MouseEvent.CLICK, subFun);
moreGames.addEventListener(MouseEvent.CLICK, gotochase);
}
public function callPlayAgain(_arg1:MouseEvent):void{
if (!myVar.gameOver){
myVar.Lvl = 1;
myVar.gameScore = 0;
myVar.levelScore = 0;
MovieClip(root).gotoAndStop("start");
};
if (myVar.gameOver){
if (myVar.Lvl == 1){
myVar.Lvl = (myVar.Lvl - 1);
myVar.gameScore = (myVar.gameScore - myVar.levelScore);
MovieClip(root).gotoAndStop("bg1");
} else {
if (myVar.Lvl == 2){
myVar.Lvl = (myVar.Lvl - 1);
myVar.gameScore = (myVar.gameScore - myVar.levelScore);
MovieClip(root).gotoAndStop("bg2");
} else {
if (myVar.Lvl == 3){
myVar.Lvl = (myVar.Lvl - 1);
myVar.gameScore = (myVar.gameScore - myVar.levelScore);
MovieClip(root).gotoAndStop("bg3");
} else {
if (myVar.Lvl == 4){
myVar.Lvl = (myVar.Lvl - 1);
myVar.gameScore = (myVar.gameScore - myVar.levelScore);
MovieClip(root).gotoAndStop("bg4");
} else {
if (myVar.Lvl == 5){
myVar.Lvl = (myVar.Lvl - 1);
myVar.gameScore = (myVar.gameScore - myVar.levelScore);
MovieClip(root).gotoAndStop("bg5");
};
};
};
};
};
};
}
}
}//package spongebob_fla
Section 60
//khjkhju_175 (spongebob_fla.khjkhju_175)
package spongebob_fla {
import flash.display.*;
public dynamic class khjkhju_175 extends MovieClip {
public function khjkhju_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 61
//khjkhjucopy_185 (spongebob_fla.khjkhjucopy_185)
package spongebob_fla {
import flash.display.*;
public dynamic class khjkhjucopy_185 extends MovieClip {
public function khjkhjucopy_185(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 62
//MainTimeline (spongebob_fla.MainTimeline)
package spongebob_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import mochi.as3.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var arr2:Array;
public var arr5:Array;
public var arr4:Array;
public var wrongMc:wrong;
public var nextLvl:SimpleButton;
public var secs1:String;
public var d4:MovieClip;
public var d6:MovieClip;
public var d5:MovieClip;
public var d2:MovieClip;
public var d3:MovieClip;
public var d1:MovieClip;
public var wrongMc3:wrong;
public var moreGames:SimpleButton;
public var wrongMc2:wrong;
public var timeCount:Number;
public var o:Object;
public var pause_mc:MovieClip;
public var mouseclick2:Number;
public var mouseclick3:Number;
public var mouseclick4:Number;
public var mouseclick1:Number;
public var mouseclick5:Number;
public var ref:MovieClip;
public var wrongMc5:wrong;
public var game_txt:TextField;
public var pausebutton:MovieClip;
public var boardID:String;
public var contestMenu:ContextMenu;
public var wrongMc4:wrong;
public var percentage:Number;
public var circle:MovieClip;
public var total_txt:TextField;
public var countT:MovieClip;
public var soundButton:MovieClip;
public var level_txt:TextField;
public var score_txt:TextField;
public var times:TextField;
public var preloadMc:MovieClip;
public var del2:Number;
public var del4:Number;
public var del5:Number;
public var del3:Number;
public var del1:Number;
public var load_txt:TextField;
public var congMc:MovieClip;
public var logo:SimpleButton;
public var contextmenuItem:ContextMenuItem;
public var thiser1:MovieClip;
public var pointsT:TextField;
public var q1:MovieClip;
public var q2:MovieClip;
public var q3:MovieClip;
public var q4:MovieClip;
public var q5:MovieClip;
public var q6:MovieClip;
public var arr1:Array;
public var arr3:Array;
public var mins1:String;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 5, frame6, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17);
}
public function getSound3(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
myVar.soundBoo = false;
if (myVar.soundChannel){
myVar.soundChannel.stop();
};
myVar.soundHit = true;
_arg1.currentTarget.gotoAndStop(2);
} else {
if (_arg1.currentTarget.currentFrame == 2){
myVar.soundHit = false;
myVar.soundBoo = true;
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
_arg1.currentTarget.gotoAndStop(1);
};
};
}
public function test5(){
pause_mc.visible = true;
pause_mc.x = 306;
pause_mc.y = 190;
soundButton.visible = false;
remove3();
myVar.timer.stop();
SoundMixer.stopAll();
}
public function callNextLvl(_arg1:MouseEvent):void{
reset();
if (myVar.Lvl == 2){
this.gotoAndStop("bg2");
} else {
if (myVar.Lvl == 3){
this.gotoAndStop("bg3");
} else {
if (myVar.Lvl == 4){
this.gotoAndStop("bg4");
} else {
if (myVar.Lvl == 5){
this.gotoAndStop("bg5");
};
};
};
};
}
public function getSound4(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
myVar.soundBoo = false;
if (myVar.soundChannel){
myVar.soundChannel.stop();
};
myVar.soundHit = true;
_arg1.currentTarget.gotoAndStop(2);
} else {
if (_arg1.currentTarget.currentFrame == 2){
myVar.soundHit = false;
myVar.soundBoo = true;
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
_arg1.currentTarget.gotoAndStop(1);
};
};
}
public function moregmbtfn(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function remove1():void{
clearInterval(del1);
stage.removeEventListener(MouseEvent.CLICK, callWrongClick1);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveCircle1);
ref.removeEventListener(MouseEvent.CLICK, diff1);
}
public function remove2():void{
clearInterval(del2);
stage.removeEventListener(MouseEvent.CLICK, callWrongClick2);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveCircle2);
ref.removeEventListener(MouseEvent.CLICK, diff2);
}
public function remove4():void{
clearInterval(del4);
stage.removeEventListener(MouseEvent.CLICK, callWrongClick4);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveCircle4);
ref.removeEventListener(MouseEvent.CLICK, diff4);
}
public function remove5():void{
clearInterval(del5);
stage.removeEventListener(MouseEvent.CLICK, callWrongClick5);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveCircle5);
ref.removeEventListener(MouseEvent.CLICK, diff5);
}
public function test10(){
pause_mc.visible = false;
pause_mc.x = -185;
pause_mc.y = 183;
soundButton.visible = true;
myVar.timer.start();
stage.addEventListener(MouseEvent.CLICK, callWrongClick5);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle5);
ref.addEventListener(MouseEvent.CLICK, diff5);
if (myVar.soundBoo){
soundButton.gotoAndStop(1);
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
mouseclick5 = 0;
}
function frame10(){
MochiBot.track(this, "26ccaf3c");
myVar.count = 3;
myVar.Lvl = 1;
myVar.found = false;
stop();
if (myVar.soundHit){
soundButton.gotoAndStop(2);
};
if (myVar.soundBoo){
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
soundButton.addEventListener(MouseEvent.CLICK, getSound);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle1);
ref.addEventListener(MouseEvent.CLICK, diff1);
stage.addEventListener(MouseEvent.CLICK, callWrongClick1);
thiser1.stop();
myVar.newCount = 1;
myVar.wCount = 0;
arr1 = new Array();
del1 = 0;
myVar.levelScore = 0;
countT.gotoAndStop(myVar.count);
pointsT.text = "0";
mouseclick1 = 0;
pause_mc.visible = false;
pausebutton.addEventListener(MouseEvent.CLICK, pauseFn1);
soundButton.mouseChildren = false;
soundButton.buttonMode = true;
logo.addEventListener(MouseEvent.CLICK, gotopeppy);
timeCount = 0;
myVar.timer.addEventListener(TimerEvent.TIMER, onTimer);
myVar.timer.start();
trace("timer........");
}
public function moveCircle1(_arg1:MouseEvent):void{
if (mouseX >= 320){
Mouse.show();
if ((((mouseY >= 0)) && ((mouseY < 440)))){
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX - 320);
circle.y = mouseY;
} else {
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
};
} else {
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX + 320);
circle.y = mouseY;
};
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
}
public function moveCircle3(_arg1:MouseEvent):void{
if (mouseX >= 330){
Mouse.show();
if ((((mouseY >= 0)) && ((mouseY < 440)))){
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX - 320);
circle.y = mouseY;
} else {
if (mouseY >= 440){
ref.y = 42;
circle.y = 422;
};
};
} else {
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX + 320);
circle.y = mouseY;
};
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
}
public function moveCircle5(_arg1:MouseEvent):void{
if (mouseX >= 330){
Mouse.show();
if ((((mouseY >= 0)) && ((mouseY < 440)))){
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX - 320);
circle.y = mouseY;
} else {
if (mouseY >= 440){
ref.y = 435;
circle.y = 435;
};
};
} else {
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX + 320);
circle.y = mouseY;
};
if (mouseY >= 440){
ref.y = 435;
circle.y = 435;
};
}
public function callGameOver4():void{
Mouse.show();
remove4();
this.gotoAndStop("gameOver");
}
public function moveCircle2(_arg1:MouseEvent):void{
if (mouseX >= 330){
Mouse.show();
if ((((mouseY >= 0)) && ((mouseY < 440)))){
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX - 320);
circle.y = mouseY;
} else {
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
};
} else {
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX + 320);
circle.y = mouseY;
};
if (mouseY >= 440){
ref.y = 42;
circle.y = 422;
};
}
function frame16(){
stop();
myVar.timer.stop();
SoundMixer.stopAll();
nextLvl.addEventListener(MouseEvent.CLICK, callNextLvl);
myVar.levelScore = (myVar.levelScore + (myVar.time * 10));
myVar.gameScore = (myVar.gameScore + myVar.levelScore);
level_txt.text = myVar.levelScore.toString();
game_txt.text = myVar.gameScore.toString();
}
public function moveCircle4(_arg1:MouseEvent):void{
if (mouseX >= 330){
Mouse.show();
if ((((mouseY >= 0)) && ((mouseY < 440)))){
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX - 320);
circle.y = mouseY;
} else {
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
};
} else {
ref.x = mouseX;
ref.y = mouseY;
circle.x = (mouseX + 320);
circle.y = mouseY;
};
if (mouseY >= 440){
ref.y = 422;
circle.y = 422;
};
}
public function callGameOver2():void{
Mouse.show();
remove2();
this.gotoAndStop("gameOver");
}
public function remove3():void{
clearInterval(del3);
stage.removeEventListener(MouseEvent.CLICK, callWrongClick3);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveCircle3);
ref.removeEventListener(MouseEvent.CLICK, diff3);
}
public function callGameOver5():void{
Mouse.show();
remove5();
this.gotoAndStop("gameOver");
}
function frame1(){
stop();
preloadMc.logoload.addEventListener(MouseEvent.CLICK, logofnload);
stage.addEventListener(MouseEvent.CLICK, clicking);
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.123chase.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
percentage = 0;
total_txt.text = (String(100) + "%");
stage.addEventListener(Event.ENTER_FRAME, BeeMoving);
}
public function callGameOver3():void{
Mouse.show();
remove3();
this.gotoAndStop("gameOver");
}
function frame3(){
stop();
}
public function callWrongClick5(_arg1:MouseEvent):void{
if (mouseY <= 440){
if (!myVar.found){
myVar.wCount++;
trace(("wrong...................." + myVar.wCount));
wrongMc5 = new wrong();
addChild(wrongMc5);
wrongMc5.x = mouseX;
wrongMc5.y = mouseY;
wrongMc5.play();
if (myVar.soundBoo){
myVar.ws.play();
};
if (myVar.levelScore > 0){
myVar.levelScore = (myVar.levelScore - 10);
};
if (myVar.wCount >= 3){
trace(("myVar.wCountgo" + myVar.wCount));
myVar.gameOver = true;
remove5();
del5 = setTimeout(callGameOver5, 1000);
};
};
};
pointsT.text = myVar.levelScore.toString();
}
public function callWrongClick2(_arg1:MouseEvent):void{
if (mouseY <= 400){
if (!myVar.found){
wrongMc2 = new wrong();
addChild(wrongMc2);
wrongMc2.x = mouseX;
wrongMc2.y = mouseY;
wrongMc2.play();
myVar.wCount = (myVar.wCount + 1);
if (myVar.soundBoo){
myVar.ws.play();
};
if (myVar.levelScore > 0){
myVar.levelScore = (myVar.levelScore - 10);
};
if (myVar.wCount >= 3){
myVar.gameOver = true;
remove2();
del2 = setTimeout(callGameOver2, 1000);
};
};
};
pointsT.text = myVar.levelScore.toString();
}
public function callWrongClick1(_arg1:MouseEvent):void{
if (mouseY <= 430){
if (!myVar.found){
trace("wrong");
wrongMc = new wrong();
addChild(wrongMc);
wrongMc.x = mouseX;
wrongMc.y = mouseY;
wrongMc.play();
myVar.wCount = (myVar.wCount + 1);
if (myVar.soundBoo){
myVar.ws.play();
};
if (myVar.levelScore > 0){
myVar.levelScore = (myVar.levelScore - 10);
};
if (myVar.wCount >= 3){
myVar.gameOver = true;
remove1();
del1 = setTimeout(callGameOver1, 1000);
};
};
};
pointsT.text = myVar.levelScore.toString();
}
public function callWrongClick4(_arg1:MouseEvent):void{
if (mouseY <= 440){
if (!myVar.found){
myVar.wCount++;
trace(("wrong...................." + myVar.wCount));
wrongMc4 = new wrong();
addChild(wrongMc4);
wrongMc4.x = mouseX;
wrongMc4.y = mouseY;
wrongMc4.play();
if (myVar.soundBoo){
myVar.ws.play();
};
if (myVar.levelScore > 0){
myVar.levelScore = (myVar.levelScore - 10);
};
if (myVar.wCount >= 3){
trace(("myVar.wCountgo" + myVar.wCount));
myVar.gameOver = true;
remove4();
del4 = setTimeout(callGameOver4, 1000);
};
};
};
pointsT.text = myVar.levelScore.toString();
}
public function pauseFn2(_arg1:MouseEvent):void{
mouseclick2++;
if (mouseclick2 == 1){
test3();
};
if (mouseclick2 == 2){
test4();
};
}
public function pauseFn4(_arg1:MouseEvent):void{
mouseclick4++;
if (mouseclick4 == 1){
test7();
};
if (mouseclick4 == 2){
test8();
};
}
public function pauseFn5(_arg1:MouseEvent):void{
mouseclick5++;
if (mouseclick5 == 1){
test9();
};
if (mouseclick5 == 2){
test10();
};
}
public function onTimer(_arg1:TimerEvent):void{
var _local2:Number;
var _local3:Number;
timeCount = (timeCount + 1);
myVar.timingScore++;
_local2 = Math.floor((timeCount % 60));
_local3 = Math.floor((timeCount / 60));
if (String(_local2).length == 1){
secs1 = ("0" + _local2);
} else {
secs1 = String(_local2);
};
if (String(_local3).length == 1){
mins1 = ("0" + _local3);
} else {
mins1 = String(_local3);
};
if (times){
times.text = ((mins1 + ":") + secs1);
};
}
public function pauseFn3(_arg1:MouseEvent):void{
mouseclick3++;
if (mouseclick3 == 1){
test5();
};
if (mouseclick3 == 2){
test6();
};
}
function frame6(){
stop();
}
public function callGameOver1():void{
Mouse.show();
remove1();
this.gotoAndStop("gameOver");
}
function frame12(){
stop();
SoundMixer.stopAll();
myVar.timer.start();
thiser1.stop();
soundButton.mouseChildren = false;
if (myVar.soundHit){
soundButton.gotoAndStop(2);
};
soundButton.addEventListener(MouseEvent.CLICK, getSound3);
myVar.newCount = 1;
myVar.wCount = 0;
myVar.count = 3;
myVar.Lvl = 3;
myVar.found = false;
arr3 = new Array();
del3 = 0;
myVar.levelScore = 0;
countT.gotoAndStop(myVar.count);
pointsT.text = "0";
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle3);
ref.addEventListener(MouseEvent.CLICK, diff3);
stage.addEventListener(MouseEvent.CLICK, callWrongClick3);
mouseclick3 = 0;
pause_mc.visible = false;
pausebutton.addEventListener(MouseEvent.CLICK, pauseFn3);
if (myVar.soundBoo){
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
logo.addEventListener(MouseEvent.CLICK, gotopeppy3);
}
public function callWrongClick3(_arg1:MouseEvent):void{
if (mouseY <= 440){
if (!myVar.found){
myVar.wCount++;
trace(("wrong...................." + myVar.wCount));
wrongMc3 = new wrong();
addChild(wrongMc3);
wrongMc3.x = mouseX;
wrongMc3.y = mouseY;
wrongMc3.play();
if (myVar.soundBoo){
myVar.ws.play();
};
if (myVar.levelScore > 0){
myVar.levelScore = (myVar.levelScore - 10);
};
if (myVar.wCount >= 3){
trace(("myVar.wCountgo" + myVar.wCount));
myVar.gameOver = true;
remove3();
del3 = setTimeout(callGameOver3, 1000);
};
};
};
pointsT.text = myVar.levelScore.toString();
}
public function reset1(){
myVar.newCount = 1;
myVar.wCount = 0;
myVar.count = 0;
myVar.Lvl = 1;
myVar.found = false;
myVar.gameOver = false;
myVar.levelScore = 0;
myVar.gameScore = 0;
myVar.cong = false;
myVar.time = 0;
}
function frame14(){
stop();
SoundMixer.stopAll();
myVar.timer.start();
thiser1.stop();
soundButton.mouseChildren = false;
if (myVar.soundHit){
soundButton.gotoAndStop(2);
};
soundButton.addEventListener(MouseEvent.CLICK, getSound5);
myVar.newCount = 1;
myVar.wCount = 0;
myVar.count = 3;
myVar.Lvl = 5;
myVar.found = false;
arr5 = new Array();
del5 = 0;
myVar.levelScore = 0;
countT.gotoAndStop(myVar.count);
pointsT.text = "0";
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle5);
ref.addEventListener(MouseEvent.CLICK, diff5);
stage.addEventListener(MouseEvent.CLICK, callWrongClick5);
mouseclick5 = 0;
pause_mc.visible = false;
pausebutton.addEventListener(MouseEvent.CLICK, pauseFn5);
if (myVar.soundBoo){
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
logo.addEventListener(MouseEvent.CLICK, gotopeppy5);
}
function frame15(){
stop();
}
function frame17(){
stop();
if (myVar.cong){
congMc.gotoAndStop(2);
myVar.cong = false;
};
score_txt.text = myVar.gameScore.toString();
MochiServices.connect("024d1cc6b91d3dac", root);
o = {n:[11, 14, 2, 7, 14, 8, 13, 9, 2, 3, 0, 0, 4, 4, 9, 8], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:myVar.gameScore.toString()});
moreGames.addEventListener(MouseEvent.CLICK, moregmbtfn);
reset1();
}
public function diff1(_arg1:MouseEvent):void{
var _local2:int;
trace(("CLIK" + myVar.soundBoo));
_local2 = 1;
while (_local2 < 7) {
if (HitTest.complexHitTestObject(ref, this[("d" + _local2)], 1)){
trace(("correct" + _local2));
if (_local2 != arr1[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
myVar.count++;
arr1[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.found = true;
this[("d" + _local2)].gotoAndStop(2);
break;
};
} else {
myVar.found = false;
};
if (HitTest.complexHitTestObject(ref, this[("q" + _local2)], 1)){
if (_local2 != arr1[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
myVar.count++;
arr1[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.found = true;
this[("q" + _local2)].alpha = 1;
this[("q" + _local2)].gotoAndStop(2);
break;
};
} else {
myVar.found = false;
};
_local2++;
};
if (myVar.count == 9){
del1 = setTimeout(callLvlUp1, 1000);
};
countT.gotoAndStop(myVar.count);
pointsT.text = myVar.levelScore.toString();
}
public function diff2(_arg1:MouseEvent):void{
var _local2:int;
_local2 = 1;
while (_local2 < 7) {
if (HitTest.complexHitTestObject(ref, this[("d" + _local2)], 1)){
if (_local2 != arr2[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("d" + _local2)].gotoAndStop(2);
myVar.found = true;
arr2[_local2] = _local2;
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.levelScore = (myVar.levelScore + 50);
myVar.count++;
break;
};
} else {
myVar.found = false;
};
if (HitTest.complexHitTestObject(ref, this[("q" + _local2)], 1)){
if (_local2 != arr2[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("q" + _local2)].gotoAndStop(2);
myVar.found = true;
arr2[_local2] = _local2;
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.levelScore = (myVar.levelScore + 50);
myVar.count++;
break;
};
} else {
myVar.found = false;
};
_local2++;
};
if (myVar.count == 9){
del2 = setTimeout(callLvlUp2, 1000);
};
countT.gotoAndStop(myVar.count);
pointsT.text = myVar.levelScore.toString();
}
public function diff3(_arg1:MouseEvent):void{
var _local2:int;
_local2 = 1;
while (_local2 < 7) {
if (HitTest.complexHitTestObject(ref, this[("q" + _local2)], 1)){
if (_local2 != arr3[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("q" + _local2)].gotoAndStop(2);
myVar.found = true;
arr3[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
if (HitTest.complexHitTestObject(ref, this[("d" + _local2)], 1)){
if (_local2 != arr3[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("d" + _local2)].alpha = 1;
this[("d" + _local2)].gotoAndStop(2);
myVar.found = true;
arr3[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
_local2++;
};
if (myVar.count == 9){
myVar.gameOver = false;
del3 = setTimeout(callLvlUp3, 1000);
};
countT.gotoAndStop(myVar.count);
pointsT.text = myVar.levelScore.toString();
}
public function diff4(_arg1:MouseEvent):void{
var _local2:int;
_local2 = 1;
while (_local2 < 7) {
if (HitTest.complexHitTestObject(ref, this[("q" + _local2)], 1)){
if (_local2 != arr4[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("q" + _local2)].gotoAndStop(2);
myVar.found = true;
arr4[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
if (HitTest.complexHitTestObject(ref, this[("d" + _local2)], 1)){
if (_local2 != arr4[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("d" + _local2)].alpha = 1;
this[("d" + _local2)].gotoAndStop(2);
myVar.found = true;
arr4[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
_local2++;
};
if (myVar.count == 9){
myVar.gameOver = false;
del4 = setTimeout(callLvlUp4, 1000);
};
countT.gotoAndStop(myVar.count);
pointsT.text = myVar.levelScore.toString();
}
function frame11(){
stop();
SoundMixer.stopAll();
if (myVar.soundHit){
soundButton.gotoAndStop(2);
};
soundButton.mouseChildren = false;
soundButton.addEventListener(MouseEvent.CLICK, getSound2);
myVar.timer.start();
thiser1.stop();
myVar.newCount = 1;
myVar.wCount = 0;
myVar.count = 3;
myVar.Lvl = 2;
myVar.found = false;
myVar.levelScore = 0;
arr2 = new Array();
del2 = 0;
countT.gotoAndStop(myVar.count);
pointsT.text = "0";
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle2);
ref.addEventListener(MouseEvent.CLICK, diff2);
stage.addEventListener(MouseEvent.CLICK, callWrongClick2);
mouseclick2 = 0;
pause_mc.visible = false;
pausebutton.addEventListener(MouseEvent.CLICK, pauseFn2);
if (myVar.soundBoo){
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
logo.addEventListener(MouseEvent.CLICK, gotopeppy2);
}
function frame13(){
stop();
SoundMixer.stopAll();
myVar.timer.start();
thiser1.stop();
soundButton.mouseChildren = false;
if (myVar.soundHit){
soundButton.gotoAndStop(2);
};
soundButton.addEventListener(MouseEvent.CLICK, getSound4);
myVar.newCount = 1;
myVar.wCount = 0;
myVar.count = 3;
myVar.Lvl = 4;
myVar.found = false;
arr4 = new Array();
del4 = 0;
myVar.levelScore = 0;
countT.gotoAndStop(myVar.count);
pointsT.text = "0";
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle4);
ref.addEventListener(MouseEvent.CLICK, diff4);
stage.addEventListener(MouseEvent.CLICK, callWrongClick4);
mouseclick4 = 0;
pause_mc.visible = false;
pausebutton.addEventListener(MouseEvent.CLICK, pauseFn4);
if (myVar.soundBoo){
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
logo.addEventListener(MouseEvent.CLICK, gotopeppy4);
}
public function diff5(_arg1:MouseEvent):void{
var _local2:int;
_local2 = 1;
while (_local2 < 7) {
if (HitTest.complexHitTestObject(ref, this[("q" + _local2)], 1)){
if (_local2 != arr5[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("q" + _local2)].gotoAndStop(2);
myVar.found = true;
arr5[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
if (HitTest.complexHitTestObject(ref, this[("d" + _local2)], 1)){
if (_local2 != arr5[_local2]){
thiser1.x = mouseX;
thiser1.y = mouseY;
thiser1.play();
this[("d" + _local2)].alpha = 1;
this[("d" + _local2)].gotoAndStop(2);
myVar.found = true;
arr5[_local2] = _local2;
myVar.levelScore = (myVar.levelScore + 50);
if (myVar.soundBoo){
myVar.cs.play();
};
myVar.count++;
break;
};
} else {
myVar.found = false;
};
_local2++;
};
if (myVar.count == 9){
myVar.gameOver = false;
myVar.cong = true;
del5 = setTimeout(callLvlUp5, 1000);
};
countT.gotoAndStop(myVar.count);
pointsT.text = myVar.levelScore.toString();
}
public function pauseFn1(_arg1:MouseEvent):void{
mouseclick1++;
if (mouseclick1 == 1){
test1();
};
if (mouseclick1 == 2){
test2();
};
}
public function gotopeppy(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function logofnload(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function reset(){
myVar.wCount = 0;
myVar.count = 0;
myVar.found = false;
myVar.timingScore = 0;
myVar.time = 0;
}
public function BeeMoving(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = loaderInfo.bytesLoaded;
_local3 = loaderInfo.bytesTotal;
percentage = Math.round(((_local2 / _local3) * 100));
load_txt.text = (String(percentage) + "%");
preloadMc.preloadCar.gotoAndStop((percentage * 3));
if (_local2 == _local3){
stage.removeEventListener(MouseEvent.CLICK, clicking);
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
gotoAndStop("start");
};
}
public function clicking(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123chase.com");
navigateToURL(_local2, "_blank");
}
public function getSound(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
myVar.soundBoo = false;
if (myVar.soundChannel){
myVar.soundChannel.stop();
};
myVar.soundHit = true;
_arg1.currentTarget.gotoAndStop(2);
} else {
if (_arg1.currentTarget.currentFrame == 2){
myVar.soundHit = false;
myVar.soundBoo = true;
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
_arg1.currentTarget.gotoAndStop(1);
};
};
}
public function callLvlUp1():void{
Mouse.show();
remove1();
myVar.Lvl = 2;
this.gotoAndStop("lvlUp");
}
public function callLvlUp2():void{
Mouse.show();
remove2();
myVar.Lvl = 3;
this.gotoAndStop("lvlUp");
}
public function callLvlUp4():void{
Mouse.show();
remove4();
myVar.Lvl = 5;
this.gotoAndStop("lvlUp");
}
public function callLvlUp5():void{
Mouse.show();
remove5();
myVar.Lvl = 4;
this.gotoAndStop("cong");
}
public function gotopeppy2(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function gotopeppy3(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function gotopeppy4(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function callLvlUp3():void{
Mouse.show();
remove3();
myVar.Lvl = 4;
this.gotoAndStop("lvlUp");
}
public function gotopeppy5(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function test1(){
pause_mc.visible = true;
pause_mc.x = 306;
pause_mc.y = 190;
soundButton.visible = false;
remove1();
myVar.timer.stop();
SoundMixer.stopAll();
}
public function test3(){
pause_mc.visible = true;
pause_mc.x = 306;
pause_mc.y = 190;
soundButton.visible = false;
remove2();
myVar.timer.stop();
SoundMixer.stopAll();
}
public function test9(){
pause_mc.visible = true;
pause_mc.x = 306;
pause_mc.y = 190;
soundButton.visible = false;
remove5();
myVar.timer.stop();
SoundMixer.stopAll();
}
public function test2(){
pause_mc.visible = false;
pause_mc.x = -185;
pause_mc.y = 183;
soundButton.visible = true;
myVar.timer.start();
stage.addEventListener(MouseEvent.CLICK, callWrongClick1);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle1);
ref.addEventListener(MouseEvent.CLICK, diff1);
if (myVar.soundBoo){
soundButton.gotoAndStop(1);
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
mouseclick1 = 0;
}
public function test6(){
pause_mc.visible = false;
pause_mc.x = -185;
pause_mc.y = 183;
soundButton.visible = true;
myVar.timer.start();
stage.addEventListener(MouseEvent.CLICK, callWrongClick3);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle3);
ref.addEventListener(MouseEvent.CLICK, diff3);
if (myVar.soundBoo){
soundButton.gotoAndStop(1);
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
mouseclick3 = 0;
}
public function test7(){
pause_mc.visible = true;
pause_mc.x = 306;
pause_mc.y = 190;
soundButton.visible = false;
remove4();
myVar.timer.stop();
SoundMixer.stopAll();
}
public function getSound2(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
myVar.soundBoo = false;
if (myVar.soundChannel){
myVar.soundChannel.stop();
};
myVar.soundHit = true;
_arg1.currentTarget.gotoAndStop(2);
} else {
if (_arg1.currentTarget.currentFrame == 2){
myVar.soundHit = false;
myVar.soundBoo = true;
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
_arg1.currentTarget.gotoAndStop(1);
};
};
}
public function test4(){
pause_mc.visible = false;
pause_mc.x = -185;
pause_mc.y = 183;
soundButton.visible = true;
myVar.timer.start();
stage.addEventListener(MouseEvent.CLICK, callWrongClick2);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle2);
ref.addEventListener(MouseEvent.CLICK, diff2);
if (myVar.soundBoo){
soundButton.gotoAndStop(1);
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
mouseclick2 = 0;
}
public function getSound5(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentFrame == 1){
myVar.soundBoo = false;
if (myVar.soundChannel){
myVar.soundChannel.stop();
};
myVar.soundHit = true;
_arg1.currentTarget.gotoAndStop(2);
} else {
if (_arg1.currentTarget.currentFrame == 2){
myVar.soundHit = false;
myVar.soundBoo = true;
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
_arg1.currentTarget.gotoAndStop(1);
};
};
}
public function test8(){
pause_mc.visible = false;
pause_mc.x = -185;
pause_mc.y = 183;
soundButton.visible = true;
myVar.timer.start();
stage.addEventListener(MouseEvent.CLICK, callWrongClick4);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCircle4);
ref.addEventListener(MouseEvent.CLICK, diff4);
if (myVar.soundBoo){
soundButton.gotoAndStop(1);
myVar.soundChannel = myVar.bg.play(0, int.MAX_VALUE);
};
mouseclick4 = 0;
}
}
}//package spongebob_fla
Section 63
//mbndgfg_169 (spongebob_fla.mbndgfg_169)
package spongebob_fla {
import flash.display.*;
public dynamic class mbndgfg_169 extends MovieClip {
public function mbndgfg_169(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 64
//mbnmbnm_157 (spongebob_fla.mbnmbnm_157)
package spongebob_fla {
import flash.display.*;
public dynamic class mbnmbnm_157 extends MovieClip {
public function mbnmbnm_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 65
//ngfgdgd_170 (spongebob_fla.ngfgdgd_170)
package spongebob_fla {
import flash.display.*;
public dynamic class ngfgdgd_170 extends MovieClip {
public function ngfgdgd_170(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 66
//nkhjkh_50 (spongebob_fla.nkhjkh_50)
package spongebob_fla {
import flash.display.*;
import flash.events.*;
public dynamic class nkhjkh_50 extends MovieClip {
public var inst:SimpleButton;
public var again:SimpleButton;
public function nkhjkh_50(){
addFrameScript(0, frame1);
}
function frame1(){
again.addEventListener(MouseEvent.CLICK, ff);
inst.addEventListener(MouseEvent.CLICK, ff1);
}
public function ff1(_arg1:MouseEvent):void{
MovieClip(root).gotoAndStop("instPage");
}
public function ff(_arg1:MouseEvent):void{
MovieClip(root).gotoAndStop("bg1");
}
}
}//package spongebob_fla
Section 67
//nmj_153 (spongebob_fla.nmj_153)
package spongebob_fla {
import flash.display.*;
public dynamic class nmj_153 extends MovieClip {
public function nmj_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 68
//pause_PAUSE_110 (spongebob_fla.pause_PAUSE_110)
package spongebob_fla {
import flash.display.*;
public dynamic class pause_PAUSE_110 extends MovieClip {
public function pause_PAUSE_110(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 69
//preload__23 (spongebob_fla.preload__23)
package spongebob_fla {
import flash.display.*;
public dynamic class preload__23 extends MovieClip {
public function preload__23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 70
//preload_preloadMc_1 (spongebob_fla.preload_preloadMc_1)
package spongebob_fla {
import flash.display.*;
public dynamic class preload_preloadMc_1 extends MovieClip {
public var preloadCar:MovieClip;
public var logoload:SimpleButton;
}
}//package spongebob_fla
Section 71
//rthytryg_141 (spongebob_fla.rthytryg_141)
package spongebob_fla {
import flash.display.*;
public dynamic class rthytryg_141 extends MovieClip {
public function rthytryg_141(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 72
//rthytrygcopy_148 (spongebob_fla.rthytrygcopy_148)
package spongebob_fla {
import flash.display.*;
public dynamic class rthytrygcopy_148 extends MovieClip {
public function rthytrygcopy_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 73
//sdfsdfsdf_103 (spongebob_fla.sdfsdfsdf_103)
package spongebob_fla {
import flash.display.*;
public dynamic class sdfsdfsdf_103 extends MovieClip {
public function sdfsdfsdf_103(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package spongebob_fla
Section 74
//sdfsdttrertemnmn_227 (spongebob_fla.sdfsdttrertemnmn_227)
package spongebob_fla {
import flash.display.*;
public dynamic class sdfsdttrertemnmn_227 extends MovieClip {
public function sdfsdttrertemnmn_227(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 75
//sndButton_104 (spongebob_fla.sndButton_104)
package spongebob_fla {
import flash.display.*;
public dynamic class sndButton_104 extends MovieClip {
public var sndon:SimpleButton;
public var sndoff:MovieClip;
public function sndButton_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 76
//sound_but_village_108 (spongebob_fla.sound_but_village_108)
package spongebob_fla {
import flash.display.*;
public dynamic class sound_but_village_108 extends MovieClip {
public var Line:MovieClip;
}
}//package spongebob_fla
Section 77
//ttrertemnmn_215 (spongebob_fla.ttrertemnmn_215)
package spongebob_fla {
import flash.display.*;
public dynamic class ttrertemnmn_215 extends MovieClip {
public function ttrertemnmn_215(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 78
//uikyuiy_191 (spongebob_fla.uikyuiy_191)
package spongebob_fla {
import flash.display.*;
public dynamic class uikyuiy_191 extends MovieClip {
public function uikyuiy_191(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 79
//uikyuiycopy_200 (spongebob_fla.uikyuiycopy_200)
package spongebob_fla {
import flash.display.*;
public dynamic class uikyuiycopy_200 extends MovieClip {
public function uikyuiycopy_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 80
//vbbcvbc_167 (spongebob_fla.vbbcvbc_167)
package spongebob_fla {
import flash.display.*;
public dynamic class vbbcvbc_167 extends MovieClip {
public function vbbcvbc_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 81
//vbngfchbgf_161 (spongebob_fla.vbngfchbgf_161)
package spongebob_fla {
import flash.display.*;
public dynamic class vbngfchbgf_161 extends MovieClip {
public function vbngfchbgf_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 82
//vnghgfhf_135 (spongebob_fla.vnghgfhf_135)
package spongebob_fla {
import flash.display.*;
public dynamic class vnghgfhf_135 extends MovieClip {
public function vnghgfhf_135(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 83
//vnghgfhfcopy_147 (spongebob_fla.vnghgfhfcopy_147)
package spongebob_fla {
import flash.display.*;
public dynamic class vnghgfhfcopy_147 extends MovieClip {
public function vnghgfhfcopy_147(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package spongebob_fla
Section 84
//Bg (Bg)
package {
import flash.media.*;
public dynamic class Bg extends Sound {
}
}//package
Section 85
//correctSound (correctSound)
package {
import flash.media.*;
public dynamic class correctSound extends Sound {
}
}//package
Section 86
//HitTest (HitTest)
package {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package
Section 87
//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);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_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 88
//myVar (myVar)
package {
import flash.utils.*;
import flash.media.*;
public class myVar {
public static var gameScore:int = 0;
public static var found:Boolean = false;
public static var timer:Timer = new Timer(1000, 0);
public static var Lvl:Number = 1;
public static var time:Number = 0;
public static var newCount:Number = 1;
public static var soundHit:Boolean = false;
public static var bg:Bg = new Bg();
public static var count:Number = 0;
public static var wCount:Number = 0;
public static var ws:wrongSound = new wrongSound();
public static var cong:Boolean = false;
public static var gameOver:Boolean = false;
public static var timingScore:Number = 0;
public static var levelScore:int = 0;
public static var soundBoo:Boolean = true;
public static var soundChannel:SoundChannel = new SoundChannel();
public static var cs:correctSound = new correctSound();
}
}//package
Section 89
//wrong (wrong)
package {
import flash.display.*;
public dynamic class wrong extends MovieClip {
public function wrong(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 90
//wrongSound (wrongSound)
package {
import flash.media.*;
public dynamic class wrongSound extends Sound {
}
}//package