Section 1
//MochiScores (mochi.MochiScores)
package mochi {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
var _local2:Object = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi
Section 2
//MochiServices (mochi.MochiServices)
package mochi {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _sendChannel:LocalConnection;
private static var _rcvChannelName:String;
private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _startTime:Number;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__mochiservices";
private static var _rcvChannel:LocalConnection;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [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];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime()));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
public static function get id():String{
return (_id);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, 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 netup:Boolean;
var s:String;
var x:String;
var req:URLRequest;
var loader:Loader;
var err:Function;
var complete:Function;
var setURL:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
var vars:Object = 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 = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
complete = function (_arg1:Object):void{
netup = true;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
setURL = function ():void{
var _local1:String;
if (netup){
_local1 = (url + s);
} else {
_local1 = burl;
};
var _local2:DisplayObject = clickMovie(_local1, onClick);
btn.addChild(_local2);
_local2.scaleX = (0.01 * btn.width);
_local2.scaleY = (0.01 * btn.height);
};
setTimeout(setURL, 1500);
}
public static function getVersion():String{
return ("1.35");
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
_rcvChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
Security.allowDomain("*");
Security.allowInsecureDomain("*");
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
return (_local2);
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = this.client._callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
_rcvChannelName = _arg1;
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var id = _arg1;
var clip = _arg2;
var clipname:String = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
MochiServices.allowDomains(_gatewayURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
_timer = new Timer(1000, 0);
_startTime = getTimer();
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
var f:Function = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
var req:URLRequest = new URLRequest(_gatewayURL);
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain("*", "localhost");
_rcvChannel.allowInsecureDomain("*", "localhost");
_rcvChannel.client = _clip;
_clip._nextcallbackID = 0;
_clip._callbacks = {};
listen();
return (_clip);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
var mc:MovieClip = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if ((getTimer() - _startTime) > 10000){
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_timer.stop();
};
}
}
}//package mochi
Section 3
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.2.0.3794";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 4
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3794";
}
}//package mx.core
Section 5
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.2.0.3794";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 6
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.2.0.3794";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 7
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.2.0.3794";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 8
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 9
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 10
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 11
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 12
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3794";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 13
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
protected var initialHeight:Number;// = 0
private var loader:Loader;// = null
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
private var requestedHeight:Number;
private var requestedWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3794";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
if (("allowLoadBytesCodeExecution" in _local1)){
_local1["allowLoadBytesCodeExecution"] = true;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
override public function get width():Number{
if (!initialized){
return (initialWidth);
};
return (super.width);
}
override public function set width(_arg1:Number):void{
if (!initialized){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredHeight():Number{
return (initialHeight);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!isNaN(requestedWidth)){
loader.width = requestedWidth;
};
if (!isNaN(requestedHeight)){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function set height(_arg1:Number):void{
if (!initialized){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get height():Number{
if (!initialized){
return (initialHeight);
};
return (super.height);
}
public function get movieClipData():ByteArray{
return (null);
}
}
}//package mx.core
Section 14
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 15
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3794";
}
}//package mx.core
Section 16
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.2.0.3794";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = _arg1;
try {
o = displayObject;
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
if ((o is IRepeaterClient)){
indices = IRepeaterClient(o).instanceIndices;
if (indices){
s = (s + (("[" + indices.join("][")) + "]"));
};
};
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
} catch(e:SecurityError) {
};
return (result);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 17
//irrcrpt (irrcrpt)
package {
public function irrcrpt(_arg1:String, _arg2:int):String{
var _local5:int;
var _local3:String = new String();
var _local4:int;
while (_local4 < _arg1.length) {
_local5 = _arg1.charCodeAt(_local4);
if ((((_local5 >= 48)) && ((_local5 <= 57)))){
_local5 = ((_local5 - _arg2) - 48);
if (_local5 < 0){
_local5 = (_local5 + ((57 - 48) + 1));
};
_local5 = ((_local5 % ((57 - 48) + 1)) + 48);
} else {
if ((((_local5 >= 65)) && ((_local5 <= 90)))){
_local5 = ((_local5 - _arg2) - 65);
if (_local5 < 0){
_local5 = (_local5 + ((90 - 65) + 1));
};
_local5 = ((_local5 % ((90 - 65) + 1)) + 65);
} else {
if ((((_local5 >= 97)) && ((_local5 <= 122)))){
_local5 = ((_local5 - _arg2) - 97);
if (_local5 < 0){
_local5 = (_local5 + ((122 - 97) + 1));
};
_local5 = ((_local5 % ((122 - 97) + 1)) + 97);
};
};
};
_local3 = (_local3 + String.fromCharCode(_local5));
_local4++;
};
return (_local3);
}
}//package
Section 18
//MochiAd (MochiAd)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _slot1._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = _slot1.getVersion();
clip = options.clip;
if (!_slot1._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = _slot1._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
_slot1.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
_slot1.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = _slot1.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = _slot1.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
_slot1.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
_slot1.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:Object = this._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
_slot1.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
_slot1.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 19
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import mochi.*;
public dynamic class Preloader extends MovieClip {
private const _lx150:String;
private const _cp197:Boolean = true;
private const _cl84:int = 320;
private const _tq220:int;
private const _kg100:int = 440;
private const _kj260:int = 2;
private var _yl304:Boolean;// = false
private var _tf206:Class;
private var _sf70:Bitmap;
private var _pn404:Number;// = 0
private var _oa36:Bitmap;
private var _gf29:int;// = 0xCE0000
private var _ss18:int;// = 0xFFFFFF
private var _qt367:Class;
private var _md41:MovieClip;
private var _xj119:int;
private var _uk350:int;// = 0xCE0000
private var _oj246:Number;// = 0
private var _vv95:Boolean;// = false
private var _np94:Bitmap;
private var _lb267:Sprite;
public static const _wj244:int = 4;
public static const _mt74:int = 2;
public static const _mu352:int = -1;
public static const _vw142:int = 5;
public static const _dt287:int = 0;
public static const _pd67:int = 1;
public static const _nd393:int = 3;
public static var _fj220:Boolean = false;
public static var _hj168:Boolean = true;
public static var _px395:String = "";
public static var _fy92:int = 4;
public function Preloader(){
_qt367 = Preloader__qt367;
_tf206 = Preloader__tf206;
_np94 = Bitmap(new _tf206());
_oa36 = new Bitmap(new BitmapData(640, 480, true, 0xFFFFFF));
_tq220 = (320 - (_cl84 >> 1));
_sf70 = new Bitmap(new BitmapData(_cl84, _kj260, false, 7572645));
_md41 = new MovieClip();
_lx150 = irrcrpt("9ce7928362g765cc", 1);
super();
addChild(_np94);
switch (_fy92){
case _mu352:
break;
case _vw142:
_fj220 = false;
_hj168 = false;
_px395 = irrcrpt("yttivhigoy.gsq", 4);
break;
case _dt287:
case _mt74:
_fj220 = false;
_vv95 = true;
break;
case _pd67:
_px395 = irrcrpt("fcknahtggicogu.eqo", 2);
addChild(_lb267);
_lb267.width = 640;
_lb267.height = 480;
_lb267.x = 0;
_lb267.y = 0;
_ss18 = 1848908;
_uk350 = 16765700;
_gf29 = 0xED7300;
break;
case _wj244:
_px395 = irrcrpt("fwrtwlfrjx.htr", 5);
_fj220 = false;
_vv95 = false;
_hj168 = false;
_lb267 = new _qt367();
addChild(_lb267);
_xj119 = 150;
_lb267.x = 45;
_lb267.y = 100;
break;
};
stop();
stage.align = StageAlign.TOP_LEFT;
stage.focus = this;
addChild(_sf70);
_sf70.x = _tq220;
_sf70.y = _kg100;
if (_vv95){
try {
addChild(_md41);
MochiAd.showPreGameAd({clip:_md41, id:_lx150, res:irrcrpt("195c935", 5), background:_ss18, color:_uk350, outline:_gf29, no_bg:true, no_progress_bar:false, ad_failed:_sl61, ad_skipped:_sl61, ad_finished:_sl61});
} catch(error:Error) {
};
};
addChild(_oa36);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function init():void{
var _local2:Object;
trace(irrcrpt("lqlw()", 3));
var _local1:Class = Class(getDefinitionByName(irrcrpt("Xmqi8Gex", 4)));
if (_local1){
_local2 = new (_local1);
addChild((_local2 as DisplayObject));
};
}
private function _sl61():void{
trace(irrcrpt("oqejkCfuHkpkujgf()", 2));
_yl304 = true;
}
public function onEnterFrame(_arg1:Event):void{
if (((_cp197) && ((_oj246 < 1)))){
_oj246 = (_oj246 + 0.01);
};
_sf70.bitmapData.fillRect(new Rectangle(0, 0, (_cl84 * (_cp197) ? _oj246 : (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal)), _kj260), 4294967295);
if (_pn404 > 0){
_oa36.bitmapData.fillRect(new Rectangle(0, 0, 640, 480), 4294967295);
_oa36.alpha = _pn404;
};
_xj119--;
if (((((((((_cp197) && ((_oj246 >= 1)))) || (((!(_cp197)) && ((framesLoaded == totalFrames)))))) && (((_yl304) || (!(_vv95)))))) && ((_xj119 < 0)))){
if ((_pn404 = (_pn404 + 0.1)) > 1.5){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_td354();
};
};
}
final private function _ym445(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(irrcrpt("lxxt://aaa.erhosr.gsq/evgehi/", 4)), irrcrpt("_gqfsp", 5));
}
final private function _td354():void{
var _local1:String = this.root.loaderInfo.url.split("/")[2];
trace((irrcrpt("_mtxy = ", 5) + _local1));
if (_local1.indexOf(_px395) == (_local1.length - _px395.length)){
if (_vv95){
_md41.stop();
removeChild(_md41);
};
switch (_fy92){
case _dt287:
case _pd67:
case _nd393:
case _wj244:
removeChild(_lb267);
break;
};
removeChild(_np94);
removeChild(_oa36);
removeChild(_sf70);
nextFrame();
init();
};
}
}
}//package
Section 20
//Preloader__qt367 (Preloader__qt367)
package {
import mx.core.*;
import flash.utils.*;
public class Preloader__qt367 extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Preloader__qt367(){
dataClass = Preloader__qt367_dataClass;
super();
initialWidth = (11000 / 20);
initialHeight = (8000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package
Section 21
//Preloader__qt367_dataClass (Preloader__qt367_dataClass)
package {
import mx.core.*;
public class Preloader__qt367_dataClass extends ByteArrayAsset {
}
}//package
Section 22
//Preloader__tf206 (Preloader__tf206)
package {
import mx.core.*;
public class Preloader__tf206 extends BitmapAsset {
}
}//package
Section 23
//Time4Cat (Time4Cat)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import mochi.*;
import flash.utils.*;
public dynamic class Time4Cat extends Sprite {
private const LEFT:int = 8;
private const _ap67:int = 1;
private const _pg385:int = 2;
private const _or216:Class;
private const _ai374:Class;
private const _tv182:int = 1;
private const _aq95:int = 5;
private const _en149:int = 7;
private const _rv345:int = 2;
private const _wp281:int = 6;
private const _og234:Class;
private const _cy300:Class;
private const _rl200:Array;
private const _la170:Array;
private const _ee71:int;
private const _fh419:Sound;
private const _wp174:Class;
private const _is297:int = 2;
private const _dn243:int = 7;
private const _uy273:int = 9;
private const _iv207:Array;
private const _jk137:Class;
private const _pc38:Number = 0.05;
private const _ps139:Class;
private const _yi395:Class;
private const _ti46:BitmapData;
private const _gf50:BitmapData;
private const _dx162:int;
private const _kd438:Class;
private const _sv188:Class;
private const _sl168:BitmapData;
private const _sc113:int = 0x0100;
private const _jv154:Class;
private const _qt48:int = 6;
private const _dn393:BitmapData;
private const _hu11:BitmapData;
private const _es408:Array;
private const _pa412:BitmapData;
private const _qk120:Class;
private const _bm351:int = 120;
private const _gg296:int = 10;
private const _xt384:Array;
private const _ij286:Class;
private const _fi305:int = 14;
private const _ja157:Sound;
private const _lq319:Sound;
private const _xt380:BitmapData;
private const _vq399:Class;
private const _pj126:Sound;
private const _jy443:Class;
private const _cp311:int = 0;
private const _uh32:BitmapData;
private const _fb40:int = 1;
private const _re70:int = 8;
private const _ti94:BitmapData;
private const _xa207:BitmapData;
private const _hu257:int = 0;
private const _le253:Array;
private const TOP:int = 1;
private const _mf269:int = -1;
private const _ke333:Class;
private const _eh326:int = 20;
private const _dd173:BitmapData;
private const _mochiads_game_id:String;
private const _lg442:int = 0;
private const _in436:int = 5;
private const _cd256:int = 11;
private const _sd139:int = 1;
private const _jy82:int = 24;
private const _bm386:int = 8;
private const _lo298:BitmapData;
private const _yc208:BitmapData;
private const _pp55:int;
private const _ak182:BitmapData;
private const _hd57:int = 1;
private const _kp350:int = 3;
private const _se71:Class;
private const _gb405:Class;
private const _ao309:int = 2;
private const _rm284:int = 13;
private const _aw272:BitmapData;
private const _wm407:BitmapData;
private const _dm33:Array;
private const _ib380:Class;
private const _bd124:int = 0x0200;
private const _ol326:Class;
private const _io448:int = 0;
private const _na301:Class;
private const _am274:int = 1;
private const _kp147:int = 6;
private const RIGHT:int = 2;
private const _mk413:Class;
private const _rd140:Class;
private const _br413:Class;
private const _bk80:int = 7;
private const _nv335:BitmapData;
private const _xk86:int = 3;
private const _hb68:int = 100;
private const _ix276:int = 4;
private const _wm440:int = -32;
private const BOTTOM:int = 4;
private const _mv422:int = 13;
private const _ea409:Class;
private const _yy119:int = 2;
private const _bw24:int = 5;
private const _mx37:int = 10;
private const _vv234:Class;
private const _sf394:int = 13;
private const _wv242:int = 24;
private const _mj366:int;
private const _mi276:int = -4;
private const _lk419:BitmapData;
private const _py360:int = 4;
private const _pw185:Sound;
private const _ox111:int = 300;
private const _fj295:int = 3;
private const _nx37:int = 2;
private const _nk381:Class;
private const _ss342:Number = 0.3;
private const _gw271:int = 0;
private const _sg145:int;
private const _oc102:BitmapData;
private const _be21:int = 0;
private const _go317:int = 0;
private const _tp34:Class;
private const _ci89:int = 4;
private const _vc320:int = 480;
private const _ny86:int = 8;
private const _ma221:int = -1;
private const _yo295:Class;
private const _mm319:int = 6;
private const _xn160:Class;
private const _ex311:Class;
private const _df17:int = 10;
private const _vw381:int = 24;
private const _na396:Sound;
private const _md22:Class;
private const _lv216:Class;
private const _ci368:Class;
private const _jq164:int = 12;
private const _rg261:int = 3;
private const _bt319:BitmapData;
private const _du136:int = 6;
private const _um324:BitmapData;
private const _yi405:Class;
private const _mv383:Array;
private const _rn83:int = 25;
private const _mb446:Class;
private const _iq139:Number = 0.5;
private const _ec435:Class;
private const _uv388:int = 91;
private const _ir351:int = 1;
private const _gk49:int = 59;
private const _tp80:int = 8;
private const _fl99:Class;
private const _hg446:Array;
private const _mv91:int = 640;
private const _gm97:int = 5;
private const _ex216:int = 1;
private const _lc78:BitmapData;
private const _rh263:Number = 0.3;
private const _ul144:BitmapData;
private const _ap192:Class;
private const _st266:Sound;
private const _yd30:Sound;
private const _nm167:Array;
private const _pe287:int = 3;
private const _bs278:Class;
private const _xf134:Class;
private const _dx208:BitmapData;
private const _em136:Class;
private const _tu295:int;
private const _sv226:int = 48;
private const _sa443:Class;
private const _sk46:int = 4;
private const _gk83:int;
private const _hi423:int = 10;
private const _vy152:Class;
private const _au438:Class;
private const _uw292:Class;
private const _fy82:Class;
private const _qi355:BitmapData;
private var _uc138:Array;
private var _nq336:Array;
private var _kc433:Array;
private var _mf305:Array;
private var _tp413:int;// = 0
private var _ya425:Boolean;// = false
private var _gg374:Number;
private var _rm319:Array;
private var _dm161:int;
private var _gs107:Array;
private var _wr251:SoundChannel;
private var _qu121:SoundTransform;
private var _sn217:int;// = -1
private var _is194:Array;
private var _ht243:Array;
private var _dq411:int;
private var _eq212:Number;
private var _do17:Array;
private var _wt332:int;
private var _eq27:SharedObject;
private var _cx142:uint;
private var _kx384:Array;
private var _wu435:Number;
private var _kl190:int;// = 0
private var _nr372;
private var _be405:Array;
private var _sh97:Array;
private var _do140:Array;
private var _rs29:Number;
private var _gt52:int;// = 0
private var paused:Boolean;
private var _pv109:ContextMenu;
private var _wl407:Boolean;
private var _lg312:Array;
private var _aj47:Array;
private var _ow408:int;
private var _tg442:Boolean;
private var _dq351:int;
private var _ft101:Number;
private var _px420:Array;
private var _rn361:int;// = 0
private var _gd82:int;
private var _kh48:Array;
private var _ur244:Array;
private var _cn84:Array;
private var _jy98:Number;
private var _im379:Number;// = 0
private var _yd210:int;
private var _ch424:Number;
private var _cg332:Array;
private var _rr402:Array;
private var _id344:int;
private var _bo380:Number;
private var _id219:Array;
private var _qm16:int;// = 1
private var _uv411:Array;
private var _se151:int;
private var _dt213:Number;// = 1
private var _nt171:Boolean;// = true
private var _hr75:Number;// = 1
private var _jt53:Array;
private var _fl18:Array;
private var _ao133:Array;
private var _is76:uint;
private var ticks:int;// = 0
private var _nl336:Array;
private var _ia51:int;
private var _oa289:int;// = 1
private var _ao399:Boolean;
private var _br348:int;
private var _be299:Array;
private var _lv311:Array;
private var _gn235:int;// = 40
private var _nx216:int;// = -1
private var _ti389:int;
private var _vn207:Number;
private var _jq58:int;
private var _mk141:Boolean;
private var _ac48:Array;
private var _nw397:Number;
private var _cr293:Array;
private var _xy297:int;
private var _st124:Array;
private var _wd67:Array;
private var _vx131:Number;
private var _uu188:Object;
private var _he145:Array;
private var _gg408:int;// = 1
private var _bc43:Array;
private var _xe75:Number;
private var _fx141:Number;
private var _wx189:Array;
private var _na190:Class;
private var _ea399:Array;
private var _gy165:Array;
private var _bu205:Array;
private var _nc21:Boolean;// = true
private var _qg384:int;
private var _ct284:int;// = 0
private var _uy336:Boolean;// = false
private var matrix:Matrix;
private var _gn191:int;
private var _xq384:int;// = -1
private var _qi341:int;
private var _jl24:int;
private var _mc126:BitmapData;
private var _kw214:ColorMatrixFilter;
private var _gw15:Array;
private var _ps332:int;
private var _yt64:BitmapData;
private var _me434:int;
public function Time4Cat(){
_mochiads_game_id = irrcrpt("2fh0251695j098ff", 4);
_eq27 = SharedObject.getLocal(irrcrpt("w7f_vdyh", 3));
_pp55 = (_mv91 >> 1);
_tu295 = (_vc320 >> 1);
_ul144 = new BitmapData(_mv91, _vc320, false, 0);
matrix = new Matrix();
_mv383 = ["CLICK ON THE CAT TO BEGIN", "USE YOUR MOUSE TO MOVE THE CAT", "EARN POINTS BY EATING FOOD", "AVOID THE PEDESTRIANS!"];
_xt384 = [1, 0.5, 2];
_bu205 = new Array(_ox111);
_gy165 = new Array(_ox111);
_ea399 = new Array(_ox111);
_fl18 = new Array(_ox111);
_lv311 = new Array(_ox111);
_do17 = new Array(_ox111);
_cn84 = new Array(_ox111);
_gw15 = new Array(_ox111);
_is194 = new Array(_ox111);
_be405 = new Array(_ox111);
_jt53 = new Array(_ox111);
_nq336 = new Array(_ox111);
_kc433 = new Array(_ox111);
_st124 = new Array(_ox111);
_sh97 = new Array(_ox111);
_id219 = new Array(_ox111);
_wd67 = new Array(_ox111);
_cg332 = new Array(_ox111);
_mf305 = new Array(_ox111);
_wx189 = new Array(_ox111);
_aj47 = new Array(_ox111);
_rr402 = new Array(_ox111);
_uc138 = new Array(_ox111);
_na190 = Time4Cat__na190;
_yt64 = Bitmap(new _na190()).bitmapData;
_vv234 = Time4Cat__vv234;
_xa207 = Bitmap(new _vv234()).bitmapData;
_uw292 = Time4Cat__uw292;
_bt319 = Bitmap(new _uw292()).bitmapData;
_jk137 = Time4Cat__jk137;
_qi355 = Bitmap(new _jk137()).bitmapData;
_mk413 = Time4Cat__mk413;
_ti46 = Bitmap(new _mk413()).bitmapData;
_xn160 = Time4Cat__xn160;
_lk419 = Bitmap(new _xn160()).bitmapData;
_ib380 = Time4Cat__ib380;
_wm407 = Bitmap(new _ib380()).bitmapData;
_nk381 = Time4Cat__nk381;
_yi405 = Time4Cat__yi405;
_se71 = Time4Cat__se71;
_ij286 = Time4Cat__ij286;
_bs278 = Time4Cat__bs278;
_es408 = [Bitmap(new _nk381()).bitmapData, Bitmap(new _yi405()).bitmapData, Bitmap(new _se71()).bitmapData, Bitmap(new _ij286()).bitmapData, Bitmap(new _bs278()).bitmapData];
_px420 = new Array(_tp80);
_rm319 = new Array(_tp80);
_ht243 = new Array(_tp80);
_kx384 = new Array(_tp80);
_be299 = new Array(_tp80);
_yo295 = Time4Cat__yo295;
_xt380 = Bitmap(new _yo295()).bitmapData;
_ol326 = Time4Cat__ol326;
_hu11 = Bitmap(new _ol326()).bitmapData;
_og234 = Time4Cat__og234;
_dx208 = Bitmap(new _og234()).bitmapData;
_md22 = Time4Cat__md22;
_dn393 = Bitmap(new _md22()).bitmapData;
_wp174 = Time4Cat__wp174;
_uh32 = Bitmap(new _wp174()).bitmapData;
_ai374 = Time4Cat__ai374;
_ap192 = Time4Cat__ap192;
_jv154 = Time4Cat__jv154;
_dm33 = [Bitmap(new _ai374()).bitmapData, Bitmap(new _ap192()).bitmapData, Bitmap(new _jv154()).bitmapData];
_qk120 = Time4Cat__qk120;
_dd173 = Bitmap(new _qk120()).bitmapData;
_br413 = Time4Cat__br413;
_ti94 = Bitmap(new _br413()).bitmapData;
_jy443 = Time4Cat__jy443;
_aw272 = Bitmap(new _jy443()).bitmapData;
_ci368 = Time4Cat__ci368;
_lo298 = Bitmap(new _ci368()).bitmapData;
_vq399 = Time4Cat__vq399;
_oc102 = Bitmap(new _vq399()).bitmapData;
_ps139 = Time4Cat__ps139;
_gf50 = Bitmap(new _ps139()).bitmapData;
_rd140 = Time4Cat__rd140;
_lc78 = Bitmap(new _rd140()).bitmapData;
_xf134 = Time4Cat__xf134;
_ak182 = Bitmap(new _xf134()).bitmapData;
_ke333 = Time4Cat__ke333;
_sl168 = Bitmap(new _ke333()).bitmapData;
_fl99 = Time4Cat__fl99;
_pa412 = Bitmap(new _fl99()).bitmapData;
_vy152 = Time4Cat__vy152;
_um324 = Bitmap(new _vy152()).bitmapData;
_em136 = Time4Cat__em136;
_nv335 = Bitmap(new _em136()).bitmapData;
_gk83 = _nv335.height;
_mj366 = (_nv335.width / _uv388);
_gs107 = new Array(_uv388);
_ea409 = Time4Cat__ea409;
_yc208 = Bitmap(new _ea409()).bitmapData;
_ee71 = _yc208.height;
_dx162 = (_yc208.width / _gk49);
_ac48 = new Array(_gk49);
_sa443 = Time4Cat__sa443;
_st266 = new _sa443();
_ec435 = Time4Cat__ec435;
_lq319 = new _ec435();
_kd438 = Time4Cat__kd438;
_pj126 = new _kd438();
_lv216 = Time4Cat__lv216;
_ja157 = new _lv216();
_yi395 = Time4Cat__yi395;
_na396 = new _yi395();
_sv188 = Time4Cat__sv188;
_yd30 = new _sv188();
_na301 = Time4Cat__na301;
_fh419 = new _na301();
_cy300 = Time4Cat__cy300;
_pw185 = new _cy300();
_mb446 = Time4Cat__mb446;
_ex311 = Time4Cat__ex311;
_gb405 = Time4Cat__gb405;
_tp34 = Time4Cat__tp34;
_or216 = Time4Cat__or216;
_fy82 = Time4Cat__fy82;
_au438 = Time4Cat__au438;
_iv207 = [new _mb446(), new _ex311(), new _gb405(), new _tp34(), new _or216(), new _fy82(), new _au438()];
_sg145 = _iv207.length;
_wr251 = new SoundChannel();
_qu121 = new SoundTransform();
_ur244 = new Array(_df17);
_kh48 = new Array(_df17);
_cr293 = new Array(_df17);
_he145 = new Array(_df17);
_uv411 = new Array(_df17);
_nl336 = new Array(_df17);
_hg446 = [_pp55, 215, "Start", _hu257, "How to play", _ap67, "Music: ", _uy273, "Sound effects: ", _mx37, "Toggle full screen", _cd256, "Leaderboard", _nx37, "Credits", _fj295, "Visit megadev.co.uk", _ix276, "Play more games", _in436];
_la170 = [_pp55, 340, "Submit score", _sf394, "Retry", _jq164, "Main menu", _kp147, "Play More Games!", _in436];
_nm167 = [_pp55, 160, "PAUSED", -1, "", -1, "Resume", _bk80, "Retry", _jq164, "Music: ", _uy273, "Sound effects: ", _mx37, "Toggle full screen", _cd256, "Quit", _bm386];
_rl200 = [_pp55, 84, "CREDITS", -1, "", -1, "-Code and design-", -1, "Mike Tucker", -1, "", -1, "-Art and design-", -1, "Jon Davies", -1, "", -1, "-Audio-", -1, "Nick Parton", -1, "", -1, "Back", _kp147];
_le253 = [_pp55, 10, "HOW TO PLAY", -1, "", -1, "Use the mouse to control the cat around the screen and", -1, "pick up all the dropped food. The quicker you grab the", -1, "food the more points you get for it. Wandering", -1, "pedestrians move only when you move - if you stay on", -1, "the same spot nobody will move. As you progress, more", -1, "and different types of pedestrian will appear, as well", -1, "as other strange things designed to hinder your food-", -1, "munching progress. Picking up the glowing white balls", -1, "will allow your cat the ability to push pedestrians", -1, "outwards away from him in a radial manner by clicking", -1, "the left mouse button, but you can only keep up to 3", -1, "of these pickups at a time so use them sparingly. The", -1, "game is over when the cat is stepped on. Press 'P'", -1, "to pause the game.", -1, "", -1, "Back", _kp147];
super();
addEventListener(Event.ENTER_FRAME, update);
}
final private function _jt388(_arg1:String, _arg2:Number, _arg3:Number, _arg4:int, _arg5:Number):void{
var _local6:int;
var _local8:int;
if ((_arg4 & LEFT) == 0){
_local8 = _pa263(_arg1);
if ((_arg4 & _sc113) != 0){
_arg2 = (_arg2 - (_local8 >> 1));
} else {
if ((_arg4 & RIGHT) != 0){
_arg2 = (_arg2 - _local8);
};
};
};
if ((_arg4 & _bd124) != 0){
_arg3 = (_arg3 - (_jl24 >> 1));
};
if ((_arg4 & BOTTOM) != 0){
_arg3 = (_arg3 - _jl24);
};
var _local7:int;
while (_local7 < _arg1.length) {
_local6 = (_arg1.charCodeAt(_local7) + _wm440);
if (_local6 != 0){
_ul144.copyPixels(_mc126, new Rectangle((_local6 * _br348), 0, int((_lg312[_local6] * _arg5)), _jl24), new Point(_arg2, _arg3), null, null, false);
};
_arg2 = (_arg2 + _lg312[_local6]);
_local7++;
};
}
final private function _tc321():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:Number;
ticks++;
if (_ya425){
_mx118();
};
if (_sn217 == 0){
if (_ya425){
_local1 = _gx51();
if (_local1 != _xq384){
_xq384 = _local1;
if (((!((_xq384 == -1))) && (!((_kh48[_xq384] == -1))))){
_sb418(_pw185, 0);
};
};
};
if (_jy98 < 1){
_jy98 = (_jy98 + 0.05);
};
};
if (((!((_gg408 == _sd139))) && (_nt171))){
_tb160();
};
switch (_gg408){
case _sd139:
if (--_gn235 <= 0){
startTransition(_tv182, _rv345);
};
break;
case _pe287:
_im379 = (_im379 + 0.02);
if ((_hr75 = (_hr75 - 0.02)) < 0){
_hr75 = 1;
_im379 = 0;
};
if (_wl407){
_ew144();
};
if (_tg442){
_bo380 = (_bo380 + 1);
};
if (((((((!(_tg442)) && (!(paused)))) && (!(_mk141)))) && (!(_wl407)))){
_local2 = 0;
while (_local2 < _ox111) {
if (_bu205[_local2] == _be21){
switch (_gy165[_local2]){
case _io448:
case _fb40:
case _is297:
if (((!((_gw15[_local2] == 0))) || (!((_is194[_local2] == 0))))){
_ea399[_local2] = (_ea399[_local2] + _gw15[_local2]);
_fl18[_local2] = (_fl18[_local2] + _is194[_local2]);
_gw15[_local2] = (_gw15[_local2] * 0.9);
_is194[_local2] = (_is194[_local2] * 0.9);
};
break;
case _en149:
_jt53[_local2] = (_jt53[_local2] - _nq336[_local2]);
if ((_nq336[_local2] = (_nq336[_local2] - 0.2)) < 0){
_bu205[_local2] = _mf269;
};
break;
case _ny86:
_eq212 = (_eq212 + (0.1 + ((1 - _eq212) * 0.1)));
if (_eq212 >= 1){
if ((_gg374 = (_gg374 - 0.1)) < 0){
_bu205[_local2] = _mf269;
};
};
break;
};
};
_local2++;
};
if (((!((mouseX == _fx141))) || (!((mouseY == _vx131))))){
_qi341 = 0;
_ea399[_dq411] = mouseX;
_fl18[_dq411] = mouseY;
_local3 = Math.sqrt((Math.pow((_fx141 - mouseX), 2) + Math.pow((_vx131 - mouseY), 2)));
_dm161 = (_dm161 + _local3);
_ct284 = Math.max(_ct284, _dm161);
_gd82 = (_gd82 + Math.abs(_local3));
if (_ao399){
switch (_xy297){
case 1:
if (_dm161 > 2000){
_xy297++;
_jy98 = 0;
_pj209(_bw24, -1, -1, -1, -1, -1);
};
break;
case 2:
break;
};
};
if (_gd82 > _dq351){
if (_me434 > 200){
if (_dq351 > 1000){
_dq351--;
};
};
if (((!(_ao399)) || ((_xy297 > 2)))){
_gd82 = 0;
_pj209(-1, -1, -1, -1, -1, -1);
};
};
_uq221(_local3);
_fx141 = mouseX;
_vx131 = mouseY;
if ((_wt332 = (_wt332 - _local3)) < 0){
_wt332 = _re70;
_local4 = _fl283(_vn207, _rs29, mouseX, mouseY);
_local4 = (_local4 + 3.2);
_jq58 = (1 + ((9 + (_local4 * 2)) % 12));
_vn207 = mouseX;
_rs29 = mouseY;
_ps332++;
};
} else {
_ew144();
};
_wo409();
};
break;
};
if (_sn217 != 0){
_gt188();
};
}
final private function _tk42(_arg1:Event):void{
trace(irrcrpt("srQywmgPsst", 4));
if (_nt171){
if ((((_gg408 == _pe287)) && (!(paused)))){
_tp413 = int((_me434 / 20));
trace((irrcrpt("owuke_rqukvkqp = ", 2) + _tp413));
};
_ao133[_ex216].removeEventListener(Event.SOUND_COMPLETE, _tk42);
_ao133[_ex216] = _iv207[_ex216].play(_rn83, 0);
_do140[_ex216].volume = ((((_tp413 == 8)) || ((_tp413 == 9)))) ? 0 : _ss342;
_ao133[_ex216].soundTransform = _do140[_ex216];
_ao133[_ex216].addEventListener(Event.SOUND_COMPLETE, _tk42);
_lf253(_cp311, _ss342);
switch (_tp413){
case 0:
break;
case 1:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
break;
case 2:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
break;
case 3:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
break;
case 4:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
break;
case 5:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
_lf253(_qt48, Math.max(0.001, _bc43[_qt48]));
break;
case 6:
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
_lf253(_qt48, Math.max(0.001, _bc43[_qt48]));
break;
case 7:
case 8:
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
_lf253(_qt48, Math.max(0.001, _bc43[_qt48]));
break;
case 9:
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
break;
case 10:
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
break;
case 11:
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
break;
case 12:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_qt48, Math.max(0.001, _bc43[_qt48]));
break;
default:
_lf253(_yy119, Math.max(0.001, _bc43[_yy119]));
_lf253(_xk86, Math.max(0.001, _bc43[_xk86]));
_lf253(_py360, Math.max(0.001, _bc43[_py360]));
_lf253(_aq95, Math.max(0.001, _bc43[_aq95]));
_lf253(_qt48, Math.max(0.001, _bc43[_qt48]));
break;
};
};
}
final private function _gx51():int{
var _local1:int;
while (_local1 < _se151) {
if ((((((((mouseX > _cr293[_local1])) && ((mouseX < (_cr293[_local1] + _uv411[_local1]))))) && ((mouseY > _he145[_local1])))) && ((mouseY < (_he145[_local1] + _nl336[_local1]))))){
return (_local1);
};
_local1++;
};
return (-1);
}
final private function _gr223(_arg1:int, _arg2:Number, _arg3:Number):void{
_gw15[_arg1] = (-(Math.cos(_arg2)) * _arg3);
_is194[_arg1] = (-(Math.sin(_arg2)) * _arg3);
trace((((irrcrpt("vsulwh_dgghg_ya[", 3) + _arg1) + irrcrpt("] = ", 5)) + _gw15[_arg1]));
trace((((irrcrpt("tqsjuf_beefe_wz[", 1) + _arg1) + irrcrpt("] = ", 1)) + _is194[_arg1]));
}
final private function _bx419(_arg1:int, _arg2:Number):void{
switch (_arg1){
case _go317:
_kw214 = new ColorMatrixFilter([-1, 0, 0, 0, 0xFF, 0, -1, 0, 0, 0xFF, 0, 0, -1, 0, 0xFF, 0, 0, 0, 1, 0]);
_ul144.applyFilter(_ul144, _ul144.rect, new Point(0, 0), _kw214);
break;
case _ir351:
_ul144.applyFilter(_ul144, _ul144.rect, new Point(0, 0), new BlurFilter(_arg2, _arg2, 1));
break;
};
}
final private function _ai396():void{
_is76 = getTimer();
_tg442 = true;
_tp413 = 0;
_ow408 = (_is76 - _cx142);
_gt52 = Math.max(_gt52, _ow408);
switch (Preloader._fy92){
case Preloader._mt74:
trace(irrcrpt("xzgrny xhtwj yt RnsiOtqy!", 5));
_uu188.service.submitScore(_qg384);
break;
case Preloader._dt287:
_nr372.scores.submit(_qg384);
_nr372.stats.submit(irrcrpt("XYFY_KTTI_HTQQJHYJI", 5), _me434);
_nr372.stats.submit(irrcrpt("XYFY_UNCJQX_YWFAJQQJI", 5), _dm161);
_nr372.stats.submit(irrcrpt("XYFY_YNRJ_UQFDJI", 5), _ow408);
break;
};
Mouse.show();
_sb418(((Math.random() < 0.5)) ? _na396 : _yd30, _ut139(mouseX));
startTransition(_tv182, (_ao399) ? _rv345 : _ci89);
}
final private function _ai392():void{
trace(irrcrpt("tubsuHbnf()", 1));
_mk141 = true;
_tg442 = false;
paused = false;
_wl407 = true;
_bo380 = 0;
_gn191 = 0;
_dq351 = 2000;
var _local1:int;
while (_local1 < _ox111) {
_bu205[_local1] = _mf269;
_gy165[_local1] = -1;
_ea399[_local1] = 0;
_fl18[_local1] = 0;
_kc433[_local1] = 0;
_st124[_local1] = 0;
_sh97[_local1] = 0;
_lv311[_local1] = -1;
_do17[_local1] = 0;
_cn84[_local1] = 0;
_gw15[_local1] = 0;
_is194[_local1] = 0;
_be405[_local1] = 0;
_jt53[_local1] = 0;
_nq336[_local1] = 0;
_wd67[_local1] = 0;
_cg332[_local1] = 0;
_id219[_local1] = null;
_mf305[_local1] = 0;
_wx189[_local1] = 0;
_local1++;
};
_qg384 = 0;
_me434 = 0;
_dm161 = 0;
_ow408 = 0;
_ch424 = (_mv91 << 2);
_gg374 = 0;
_eq212 = 0;
_jq58 = 0;
_ps332 = 0;
_gd82 = 0;
_qi341 = _eh326;
_fx141 = mouseX;
_vx131 = mouseX;
_vn207 = mouseX;
_rs29 = mouseY;
_ps332 = 0;
_wt332 = _re70;
_pj209(_sk46, -1, _pp55, _tu295, -1, -1);
_nw397 = (_mv91 + _dk215((_mv91 >> 1)));
_ft101 = (-(_vc320) + _dk215((_vc320 << 1)));
_wu435 = (_mv91 + _dk215((_mv91 >> 1)));
_xe75 = (-(_vc320) + _dk215((_vc320 << 1)));
_vi88(_hd57);
trace(irrcrpt("JSI TK xyfwyLfrj()", 5));
}
final private function _un399(_arg1:int, _arg2:int):void{
switch (_arg2){
case _io448:
case _fb40:
case _is297:
_lv311[_arg1] = _dk215(4);
switch (_lv311[_arg1]){
case _ao309:
_fl18[_arg1] = (_vc320 + _cg332[_arg1]);
_ea399[_arg1] = ((_wd67[_arg1] >> 1) + _dk215((_mv91 - (_wd67[_arg1] << 1))));
_cn84[_arg1] = (-1 * _xt384[_arg2]);
break;
case _gw271:
_fl18[_arg1] = 0;
_ea399[_arg1] = ((_wd67[_arg1] >> 1) + _dk215((_mv91 - (_wd67[_arg1] << 1))));
_cn84[_arg1] = (1 * _xt384[_arg2]);
break;
case _am274:
_ea399[_arg1] = (_mv91 + (_wd67[_arg1] >> 1));
_fl18[_arg1] = (_cg332[_arg1] + _dk215((_vc320 - _cg332[_arg1])));
_do17[_arg1] = (-1 * _xt384[_arg2]);
break;
case _rg261:
_ea399[_arg1] = -((_wd67[_arg1] >> 1));
_fl18[_arg1] = (_cg332[_arg1] + _dk215((_vc320 - _cg332[_arg1])));
_do17[_arg1] = (1 * _xt384[_arg2]);
break;
};
switch (_gy165[_arg1]){
case _is297:
switch (_lv311[_arg1]){
case _ao309:
case _gw271:
_wd67[_arg1] = (_wd67[_arg1] >> 1);
_aj47[_arg1] = 16;
_rr402[_arg1] = 56;
break;
case _am274:
case _rg261:
_aj47[_arg1] = 60;
_rr402[_arg1] = 16;
break;
};
break;
};
if (_me434 > 200){
_do17[_arg1] = (_do17[_arg1] * (0.7 + (Math.random() * 0.6)));
_cn84[_arg1] = (_cn84[_arg1] * (0.7 + (Math.random() * 0.6)));
};
break;
case _sk46:
_dq411 = _arg1;
_ea399[_arg1] = _pp55;
_fl18[_arg1] = _tu295;
break;
case _bw24:
case _mm319:
_ea399[_arg1] = (_wd67[_arg1] + _dk215((_mv91 - (_wd67[_arg1] << 1))));
_fl18[_arg1] = (75 + _dk215((_vc320 - 100)));
break;
};
}
final private function _tb160():void{
var _local1:int;
while (_local1 < _sg145) {
if (_bc43[_local1] > 0){
if (_bc43[_local1] < _ss342){
_bc43[_local1] = (_bc43[_local1] + 0.001);
_do140[_local1].volume = _bc43[_local1];
_ao133[_local1].soundTransform = _do140[_local1];
};
};
_local1++;
};
}
final private function _pj209(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
if (_arg2 == -1){
_arg2 = _il340();
};
if (_arg1 == -1){
_arg1 = _dk215(((_me434 < 100)) ? 2 : 3);
};
_bu205[_arg2] = _be21;
_kc433[_arg2] = 0;
_mf305[_arg2] = 0;
_wx189[_arg2] = 0;
_gy165[_arg2] = _arg1;
_lv311[_arg2] = -1;
_do17[_arg2] = 0;
_cn84[_arg2] = 0;
_gw15[_arg2] = 0;
_is194[_arg2] = 0;
_st124[_arg2] = 1;
_sh97[_arg2] = 1;
_nq336[_arg2] = 0;
_jt53[_arg2] = 0;
_aj47[_arg2] = 0;
_rr402[_arg2] = 0;
switch (_arg1){
case _io448:
_id219[_arg2] = _dx208;
_st124[_arg2] = 6;
_sh97[_arg2] = 4;
_wx189[_arg2] = 8;
_aj47[_arg2] = 20;
_rr402[_arg2] = 20;
break;
case _fb40:
_id219[_arg2] = _dn393;
_st124[_arg2] = 6;
_sh97[_arg2] = 4;
_wx189[_arg2] = 16;
_aj47[_arg2] = 16;
_rr402[_arg2] = 16;
break;
case _is297:
_id219[_arg2] = _uh32;
_st124[_arg2] = 6;
_sh97[_arg2] = 4;
_wx189[_arg2] = 8;
break;
case _sk46:
_id219[_arg2] = _xt380;
_st124[_arg2] = _wp281;
_sh97[_arg2] = _rm284;
_aj47[_arg2] = 16;
_rr402[_arg2] = 16;
break;
case _bw24:
_id219[_arg2] = _dd173;
_st124[_arg2] = _fi305;
_kc433[_arg2] = (_dk215((_fi305 >> 1)) << 1);
_be405[_arg2] = 999;
_jt53[_arg2] = -64;
_nq336[_arg2] = 0.1;
_aj47[_arg2] = 32;
_rr402[_arg2] = 32;
break;
case _mm319:
_id219[_arg2] = _aw272;
_be405[_arg2] = 999;
_jt53[_arg2] = -64;
_nq336[_arg2] = 0.1;
_aj47[_arg2] = 32;
_rr402[_arg2] = 32;
break;
case _en149:
_ea399[_arg2] = _arg3;
_fl18[_arg2] = _arg4;
_jt53[_arg2] = -(_dd173.height);
_be405[_arg2] = _arg5;
_nq336[_arg2] = 6;
break;
case _ny86:
_ea399[_arg2] = _arg3;
_fl18[_arg2] = _arg4;
_gg374 = 1;
_eq212 = 0;
break;
};
switch (_arg1){
case _en149:
case _ny86:
break;
default:
_wd67[_arg2] = (_id219[_arg2].width / _st124[_arg2]);
_cg332[_arg2] = (_id219[_arg2].height / _sh97[_arg2]);
_un399(_arg2, _arg1);
break;
};
}
final private function _my399(_arg1:int):Boolean{
var _local2:int = (_ea399[_dq411] - (_aj47[_dq411] >> 1));
var _local3:int = ((_fl18[_dq411] - _rr402[_dq411]) + _mi276);
var _local4:int = (_ea399[_dq411] + (_aj47[_dq411] >> 1));
var _local5:int = (_fl18[_dq411] + _mi276);
var _local6:int = (_ea399[_arg1] - (_aj47[_arg1] >> 1));
var _local7:int = (_fl18[_arg1] - _rr402[_arg1]);
var _local8:int = (_ea399[_arg1] + (_aj47[_arg1] >> 1));
var _local9:int = _fl18[_arg1];
if ((((((((_local4 > _local6)) && ((_local2 < _local8)))) && ((_local5 > _local7)))) && ((_local3 < _local9)))){
return (true);
};
return (false);
}
final private function _qr266():void{
var _local1:int;
while (_local1 < _tp80) {
_ts202(_es408[_px420[_local1]], _rm319[_local1], _ht243[_local1], _be299[_local1], (_sc113 | _bd124), _kx384[_local1], _kx384[_local1]);
_local1++;
};
}
final private function _cl286():void{
_ti389 = 0;
var _local1:int;
_local1 = 0;
while (_local1 < _ox111) {
if (_bu205[_local1] != _mf269){
_uc138[_ti389] = _local1;
_ti389++;
};
_local1++;
};
var _local2:Boolean;
var _local3:int;
while (!(_local2)) {
_local2 = true;
_local1 = 0;
while (_local1 < (_ti389 - 1)) {
if (_fl18[_uc138[(_local1 + 1)]] < _fl18[_uc138[_local1]]){
_local3 = _uc138[_local1];
_uc138[_local1] = _uc138[(_local1 + 1)];
_uc138[(_local1 + 1)] = _local3;
_local2 = false;
};
_local1++;
};
};
}
final private function update(_arg1:Event):void{
_tc321();
draw();
}
final private function _il340():int{
var _local1:int;
while (_local1 < _ox111) {
if (_bu205[_local1] == _mf269){
return (_local1);
};
_local1++;
};
return (-1);
}
final private function _og272():void{
var _local1:int;
var _local2:int;
var _local5:int;
var _local6:int;
trace(irrcrpt("ljsjwfyjHmfwfhyjwBniymx()", 5));
var _local3 = "";
var _local4:int;
while (_local4 < _ia51) {
_local1 = (_local4 * _br348);
_local2 = 0;
_local5 = (_br348 - 1);
while (_local5 >= 0) {
_local6 = 0;
while (_local6 < _jl24) {
if (_mc126.getPixel((_local1 + _local5), _local6) != 0){
_local2 = (_local5 + 1);
_local5 = -1;
_local6 = _jl24;
};
_local6++;
};
_local5--;
};
_lg312[_local4] = _local2;
_local3 = (_local3 + (("" + _lg312[_local4]) + irrcrpt(", ", 1)));
_local4++;
};
trace(_local3);
trace(irrcrpt("FOE PG hfofsbufDibsbdufsXjeuit()", 1));
}
final private function _pc77(_arg1:int):void{
_px420[_arg1] = _dk215(_es408.length);
_rm319[_arg1] = _dk215(_mv91);
_ht243[_arg1] = _dk215(_vc320);
_kx384[_arg1] = (1 + Math.random());
_be299[_arg1] = 0;
}
final private function _vq141(_arg1:NetStatusEvent):void{
if (_arg1.info.code == irrcrpt("VkduhgRemhfw.Ioxvk.Vxffhvv", 3)){
} else {
if (_arg1.info.code == irrcrpt("UjctgfQdlgev.Hnwuj.Hckngf", 2)){
};
};
_eq27.removeEventListener(NetStatusEvent.NET_STATUS, _vq141);
}
final private function _up384():void{
_qr266();
var _local1:int;
while (_local1 < _se151) {
if (_kh48[_xq384] != -1){
if ((((((_nx216 == -1)) && ((_xq384 == _local1)))) || ((((_local1 == _nx216)) && (((ticks % 2) == 0)))))){
_yg332(_oc102, 0, 1, 1, (_cr293[_local1] + (_uv411[_local1] >> 1)), (_he145[_local1] + (_nl336[_local1] >> 1)), (_sc113 | _bd124), 1, false);
};
};
_jt388(_ur244[_local1], _cr293[_local1], _he145[_local1], (TOP | LEFT), _jy98);
_local1++;
};
}
final private function _ba274(_arg1:Event):void{
if (Preloader._fy92 == Preloader._dt287){
_nr372 = _arg1.target.content;
_nr372.services.connect();
trace((irrcrpt("\n", 3) + _nr372.services));
trace((irrcrpt("\n", 1) + _nr372.user));
trace((irrcrpt("\n", 5) + _nr372.scores));
trace((irrcrpt("\n", 1) + _nr372.stats));
};
}
final private function _uq221(_arg1:Number):void{
var _local2:int;
while (_local2 < _ox111) {
if (_bu205[_local2] != _mf269){
_ea399[_local2] = (_ea399[_local2] + ((_do17[_local2] * _arg1) * _iq139));
_fl18[_local2] = (_fl18[_local2] + ((_cn84[_local2] * _arg1) * _iq139));
switch (_gy165[_local2]){
case _io448:
case _fb40:
case _is297:
if ((((((((((_do17[_local2] < 0)) && ((_ea399[_local2] < -((_wd67[_local2] >> 1)))))) || ((((_do17[_local2] > 0)) && ((_ea399[_local2] >= (_mv91 + (_wd67[_local2] >> 1)))))))) || ((((_cn84[_local2] < 0)) && ((_fl18[_local2] < 0)))))) || ((((_cn84[_local2] > 0)) && ((_fl18[_local2] >= (_vc320 + _cg332[_local2]))))))){
_pj209(-1, _local2, -1, -1, -1, -1);
} else {
if ((_mf305[_local2] = (_mf305[_local2] - _arg1)) < 0){
_mf305[_local2] = _wx189[_local2];
var _local3 = _kc433;
var _local4 = _local2;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
};
if (((!(_tg442)) && (_my399(_local2)))){
_ai396();
};
};
break;
case _bw24:
if (_my399(_local2)){
_bu205[_local2] = _mf269;
_sb418(((Math.random() < 0.5)) ? _pj126 : _ja157, _ut139(mouseX));
_qg384 = (_qg384 + _be405[_local2]);
_yd210 = Math.max(_yd210, _qg384);
_me434++;
_rn361 = Math.max(_rn361, _me434);
if (_ao399){
if ((((_xy297 == 2)) && ((_me434 > 3)))){
_xy297++;
_jy98 = 0;
};
};
if (_ch424 > _pp55){
_ch424 = (_ch424 - 15);
};
_pj209(_en149, -1, _ea399[_local2], _fl18[_local2], _be405[_local2], -1);
_pj209(_bw24, -1, -1, -1, -1, -1);
if (((((_me434 % 50) == 0)) && ((_gn191 < _kp350)))){
_pj209(_mm319, -1, -1, -1, -1, -1);
};
};
break;
case _mm319:
if (_my399(_local2)){
_bu205[_local2] = _mf269;
_sb418(_lq319, _ut139(mouseX));
_gn191++;
};
break;
};
};
_local2++;
};
_nw397 = (_nw397 - (_arg1 * 0.1));
_ft101 = (_ft101 + (_arg1 * 0.1));
_wu435 = (_wu435 - (_arg1 * 0.1));
_xe75 = (_xe75 + (_arg1 * 0.1));
if (_nw397 < -(_pp55)){
_nw397 = (_mv91 + _dk215((_mv91 >> 2)));
_ft101 = (-(_vc320) + _dk215((_vc320 << 1)));
};
if (_wu435 < -(_pp55)){
_wu435 = (_mv91 + _dk215((_mv91 >> 2)));
_xe75 = (-(_vc320) + _dk215((_vc320 << 1)));
};
}
final private function draw():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:int;
switch (_gg408){
case _sd139:
_ul144.fillRect(_ul144.rect, 0xFFFFFF);
_yg332(_yt64, 0, 1, 1, _pp55, _tu295, (_sc113 | _bd124), 1, false);
break;
case _rv345:
case _gm97:
_yg332(_xa207, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
_yg332(_wm407, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
if (_gg408 == _rv345){
_yg332(_bt319, 0, 1, 1, _pp55, 195, (_sc113 | BOTTOM), 1, false);
};
_up384();
break;
case _pe287:
_yg332(_xa207, 0, 1, 1, 0, 0, (TOP | LEFT), 0.4, false);
if (!paused){
_mm325();
};
_yg332(_ti46, 0, 1, 1, _nw397, _ft101, (TOP | LEFT), 1, false);
_yg332(_lk419, 0, 1, 1, _wu435, _xe75, (TOP | LEFT), 1, false);
if (((((((((!(_mk141)) && (!(_tg442)))) && (!(_wl407)))) && (!(paused)))) && ((((((((mouseX < _vw381)) || ((mouseX > (_mv91 - _vw381))))) || ((mouseY < _vw381)))) || ((mouseY > (_vc320 - (_vw381 >> 1)))))))){
_bx419(_go317, 0);
};
if (!paused){
_yg332(_gf50, 0, 1, 1, _jy82, _wv242, (TOP | LEFT), 1, false);
_jt388(_qg384.toString(), (_jy82 + _gf50.width), _wv242, (TOP | LEFT), 1);
_yg332(_lc78, 0, 1, 1, ((_mv91 - _jy82) - _pa263(_yd210.toString())), _wv242, (TOP | RIGHT), 1, false);
_jt388(_yd210.toString(), (_mv91 - _jy82), _wv242, (TOP | RIGHT), 1);
_local5 = 0;
while (_local5 < _kp350) {
_yg332(((_local5 >= _gn191)) ? _pa412 : _um324, 0, 1, 1, (_pp55 + ((_local5 - 1) * _sv226)), _wv242, (TOP | _sc113), 1, false);
_local5++;
};
};
if (_tg442){
_bx419(_ir351, _bo380);
};
if (_ya425){
_up384();
};
break;
case _ci89:
_yg332(_xa207, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
_jt388(irrcrpt("LFRJ TAJW", 5), _pp55, 40, (TOP | _sc113), 1);
_local1 = 120;
_local2 = 50;
_local5 = 0;
while (_local5 < 4) {
switch (_local5){
case 0:
_local3 = irrcrpt("Wgsvi", 4);
_local4 = ((_qg384.toString() + irrcrpt(" / ", 5)) + _yd210.toString());
break;
case 1:
_local3 = irrcrpt("Irrg froohfwhg", 3);
_local4 = ((_me434.toString() + irrcrpt(" / ", 4)) + _rn361.toString());
break;
case 2:
_local3 = irrcrpt("Uncjqx ywfajqqji", 5);
_local4 = ((_dm161.toString() + irrcrpt(" / ", 2)) + _ct284.toString());
break;
case 3:
_local3 = irrcrpt("Vkog rncagf", 2);
_local4 = ((_wc322(_ow408).toString() + irrcrpt(" / ", 2)) + _wc322(_gt52).toString());
break;
};
_jt388(_local3, 100, (_local1 + (_local5 * _local2)), (TOP | LEFT), 1);
_jt388(_local4, 540, (_local1 + (_local5 * _local2)), (TOP | RIGHT), 1);
_local5++;
};
_up384();
break;
case _du136:
_yg332(_xa207, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
_up384();
break;
case _dn243:
_yg332(_xa207, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
break;
};
_yg332(_qi355, 0, 1, 1, 0, 0, (TOP | LEFT), 1, false);
graphics.clear();
graphics.beginBitmapFill(_ul144, null, false, true);
graphics.drawRect(0, 0, _mv91, _vc320);
graphics.endFill();
if (_sn217 != 0){
graphics.beginFill(0xFFFFFF, _dt213);
graphics.drawRect(0, 0, _mv91, _vc320);
graphics.endFill();
};
}
final private function _gu355(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:int;
if (_sn217 == 0){
switch (_gg408){
case _pe287:
if (((!(paused)) && (!(_tg442)))){
if (_wl407){
if ((((((((mouseX > (_ea399[_dq411] - (_wd67[_dq411] >> 1)))) && ((_ea399[_dq411] < (_ea399[_dq411] + (_wd67[_dq411] >> 1)))))) && ((mouseY > (_fl18[_dq411] - _cg332[_dq411]))))) && ((mouseY < _fl18[_dq411])))){
if (_mk141){
if (!_ao399){
_pj209(_bw24, -1, -1, -1, -1, -1);
} else {
_xy297++;
_jy98 = 0;
};
_mk141 = false;
_cx142 = getTimer();
};
_wl407 = false;
Mouse.hide();
_sb418(_fh419, 0);
};
} else {
if (_gn191 > 0){
_gn191--;
_sb418(_st266, _ut139(mouseX));
_pj209(_ny86, -1, _ea399[_dq411], _fl18[_dq411], -1, -1);
_local4 = 0;
while (_local4 < _ox111) {
if (_bu205[_local4] == _be21){
switch (_gy165[_local4]){
case _io448:
case _fb40:
case _is297:
_local2 = Math.sqrt((Math.pow((_ea399[_dq411] - _ea399[_local4]), 2) + Math.pow((_fl18[_dq411] - _fl18[_local4]), 2)));
trace((irrcrpt("_inxyfshj_yt_uqfdjw = ", 5) + _local2));
if (_local2 < _bm351){
trace(irrcrpt("zlwklq udqjh...", 3));
_local3 = _fl283(_ea399[_dq411], _fl18[_dq411], _ea399[_local4], _fl18[_local4]);
_gr223(_local4, _local3, _hi423);
};
break;
};
};
_local4++;
};
};
};
};
break;
};
if (((((_ya425) && (!((_xq384 == -1))))) && ((_jy98 >= 1)))){
if (_kh48[_xq384] != -1){
switch (_kh48[_xq384]){
case _hu257:
_ao399 = false;
startTransition(_tv182, _pe287);
break;
case _ap67:
startTransition(_tv182, _du136);
break;
case _nx37:
startTransition(_tv182, _dn243);
break;
case _sf394:
startTransition(_tv182, _dn243);
break;
case _kp147:
startTransition(_tv182, _rv345);
break;
case _fj295:
startTransition(_tv182, _gm97);
break;
case _bk80:
_nv222();
break;
case _bm386:
startTransition(_tv182, _rv345);
break;
case _uy273:
if (_nt171){
_nt171 = false;
SoundMixer.stopAll();
} else {
_tb30();
};
if (_gg408 == _rv345){
_kv356(_hg446);
} else {
_kv356(_nm167);
};
break;
case _mx37:
_nc21 = !(_nc21);
if (_gg408 == _rv345){
_kv356(_hg446);
} else {
_kv356(_nm167);
};
break;
case _cd256:
if (stage.displayState == StageDisplayState.FULL_SCREEN){
stage.displayState = StageDisplayState.NORMAL;
} else {
stage.displayState = StageDisplayState.FULL_SCREEN;
};
break;
case _ix276:
navigateToURL(new URLRequest(irrcrpt("lxxt://aaa.qikehiz.gs.yo", 4)), irrcrpt("_dncpm", 2));
break;
case _in436:
navigateToURL(new URLRequest(irrcrpt("kwws://zzz.phjdghy.fr.xn/jdphv.kwpo", 3)), irrcrpt("_fpero", 4));
break;
case _jq164:
startTransition(_tv182, _pe287);
break;
};
_sb418(_fh419, 0);
};
};
};
}
final private function _uq288(_arg1:MouseEvent):void{
if (_gg408 == _pe287){
if (((!(paused)) && (!(_wl407)))){
Mouse.hide();
};
};
}
final private function _eu302(_arg1:Event):void{
_uu188 = _arg1.currentTarget.content;
_uu188.service.connect();
trace(irrcrpt("[RnsiOtqyFUN] xjwanhj rfszfqqd qtfiji", 5));
}
final private function _vi88(_arg1:int):void{
trace(((irrcrpt("ugvHqpv(", 2) + _arg1) + ")"));
switch (_arg1){
case _lg442:
_mc126 = _nv335;
_lg312 = _gs107;
_br348 = _mj366;
_jl24 = _gk83;
_ia51 = _uv388;
break;
case _hd57:
_mc126 = _yc208;
_lg312 = _ac48;
_br348 = _dx162;
_jl24 = _ee71;
_ia51 = _gk49;
break;
};
}
final private function _ts202(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number, _arg7:Number):void{
var _local8:int = _arg1.width;
var _local9:int = _arg1.height;
if ((_arg5 & _sc113) != 0){
_arg2 = (_arg2 - ((_local8 >> 1) * _arg6));
} else {
if ((_arg5 & RIGHT) != 0){
_arg2 = (_arg2 - (_local8 * _arg6));
};
};
if ((_arg5 & _bd124) != 0){
_arg3 = (_arg3 - ((_local9 >> 1) * _arg7));
};
if ((_arg5 & BOTTOM) != 0){
_arg3 = (_arg3 - (_local9 * _arg7));
};
matrix = new Matrix();
matrix.scale(_arg6, _arg7);
matrix.translate(_arg2, _arg3);
_ul144.draw(_arg1, matrix, new ColorTransform(1, 1, 1, _arg4), null, null, true);
}
final private function _lf253(_arg1:int, _arg2:Number):void{
if (_ao133[_arg1] != null){
_ao133[_arg1].stop();
};
_bc43[_arg1] = _arg2;
_do140[_arg1].volume = _arg2;
_ao133[_arg1] = _iv207[_arg1].play(_rn83, 0);
_ao133[_arg1].soundTransform = _do140[_arg1];
}
final private function _pa263(_arg1:String):int{
var _local3:int;
var _local2:int;
var _local4:int;
while (_local4 < _arg1.length) {
_local3 = (_arg1.charCodeAt(_local4) + _wm440);
_local2 = (_local2 + _lg312[_local3]);
_local4++;
};
return (_local2);
}
final private function _gt188():void{
var _local1:Object;
var _local2:String;
var _local3:URLRequest;
var _local4:Loader;
var _local5:Object;
var _local6:Loader;
var _local7:int;
if (_id344 > 0){
_id344--;
} else {
_dt213 = (_dt213 + (_sn217 * _pc38));
if ((((_dt213 <= 0)) || ((_dt213 >= 1)))){
if (_sn217 == _tv182){
trace(irrcrpt("wudqvlwlrq_glu == WUDQVLWLRQ_LQ", 3));
_ya425 = false;
_xq384 = -1;
_nx216 = -1;
switch (_oa289){
case _sd139:
break;
case _rv345:
if (_gg408 == _sd139){
_yt64 = null;
MochiServices.connect(_mochiads_game_id, root);
_iq251();
stage.quality = StageQuality.HIGH;
_vi88(_hd57);
_og272();
_vi88(_lg442);
_og272();
_pv109 = new ContextMenu();
_pv109.addEventListener(ContextMenuEvent.MENU_SELECT, _ft147);
contextMenu = _pv109;
stage.addEventListener(MouseEvent.MOUSE_DOWN, _gu355);
stage.addEventListener(MouseEvent.MOUSE_OUT, _nm128);
stage.addEventListener(MouseEvent.MOUSE_OVER, _uq288);
stage.addEventListener(KeyboardEvent.KEY_DOWN, _by160);
stage.addEventListener(KeyboardEvent.KEY_UP, _oo115);
switch (Preloader._fy92){
case Preloader._dt287:
_local1 = LoaderInfo(root.loaderInfo).parameters;
_local2 = ((_local1.api_path) || (irrcrpt("iuuq://xxx.lpohsfhbuf.dpn/gmbti/BQJ_BT4_Mpdbm.txg", 1)));
trace((irrcrpt("CRK rcvj: ", 2) + _local2));
_local3 = new URLRequest(_local2);
_local4 = new Loader();
_local4.contentLoaderInfo.addEventListener(Event.COMPLETE, _ba274);
_local4.load(_local3);
this.addChild(_local4);
break;
case Preloader._mt74:
_local5 = LoaderInfo(root.loaderInfo).parameters;
_local6 = new Loader();
_local6.contentLoaderInfo.addEventListener(Event.COMPLETE, _eu302);
_local6.load(new URLRequest(((_local5.mjPath) || (irrcrpt("iuuq://tubujd.njoekpmu.dpn/bqj/bt4/tdpsfbqj_bt4_mpdbm.txg", 1)))));
this.addChild(_local6);
break;
};
_tb30();
};
_local7 = 0;
while (_local7 < _tp80) {
_pc77(_local7);
_local7++;
};
_kv356(_hg446);
break;
case _pe287:
_ai392();
break;
case _ci89:
_ry37();
_kv356(_la170);
break;
case _gm97:
_kv356(_rl200);
break;
case _du136:
_kv356(_le253);
break;
case _dn243:
if (_gg408 == _ci89){
MochiScores.showLeaderboard({boardID:irrcrpt("54b162gd8736cf37", 1), score:_qg384, onError:_wy288, onClose:_wy288});
} else {
MochiScores.showLeaderboard({boardID:irrcrpt("98f506kh2170gj71", 5), onError:_wy288, onClose:_wy288});
};
break;
};
_jy98 = 0;
_gg408 = _oa289;
_sn217 = 0;
startTransition(_ma221, _gg408);
} else {
_sn217 = 0;
};
};
};
}
final private function _be234():void{
if ((((_gg408 == _pe287)) && (!(paused)))){
_wl407 = true;
paused = true;
Mouse.show();
_sb418(_fh419, 0);
_kv356(_nm167);
};
}
final private function _ft147(_arg1:ContextMenuEvent):void{
_be234();
}
final private function _tb30():void{
_nt171 = true;
_ao133 = new Array(_sg145);
_do140 = new Array(_sg145);
_bc43 = new Array(_sg145);
var _local1:int;
while (_local1 < _sg145) {
_ao133[_local1] = new SoundChannel();
_do140[_local1] = new SoundTransform();
_bc43[_local1] = 0;
_local1++;
};
_ao133[_ex216] = _iv207[_ex216].play(_rn83, 0);
_do140[_ex216].volume = _ss342;
_ao133[_ex216].soundTransform = _do140[_ex216];
_ao133[_ex216].addEventListener(Event.SOUND_COMPLETE, _tk42);
_lf253(_cp311, 0.0001);
}
final private function _nv222():void{
_vi88(_hd57);
_wl407 = true;
_qi341 = _eh326;
paused = false;
_sb418(_fh419, 0);
_ya425 = false;
}
final private function _by160(_arg1:KeyboardEvent):void{
if (_sn217 == 0){
switch (_arg1.charCode){
case 112:
case 80:
if (!_uy336){
_uy336 = true;
if ((((_gg408 == _pe287)) && (!(_tg442)))){
if (_ao399){
_tg442 = true;
Mouse.show();
startTransition(_tv182, _rv345);
} else {
if (!paused){
_be234();
};
};
};
};
break;
};
switch (_arg1.keyCode){
case Keyboard.ESCAPE:
break;
};
};
}
final private function _wc322(_arg1:Number):String{
var _local2:int;
_local2 = (_arg1 / 60000);
var _local3:int = ((_arg1 - (_local2 * 60000)) / 1000);
return ((((("" + _local2) + irrcrpt("p ", 3)) + _local3) + "s"));
}
final private function _wo409():void{
var _local1:int;
while (_local1 < _ox111) {
if (_bu205[_local1] != _mf269){
switch (_gy165[_local1]){
case _sk46:
break;
case _bw24:
case _mm319:
_be405[_local1] = (_be405[_local1] - 3);
switch (_gy165[_local1]){
case _bw24:
_be405[_local1] = Math.max(_hb68, (_be405[_local1] = (_be405[_local1] - 3)));
break;
case _mm319:
if (_be405[_local1] < 0){
_bu205[_local1] = _mf269;
};
break;
};
if (_nq336[_local1] != 0){
var _local2 = _nq336;
var _local3 = _local1;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
_jt53[_local1] = (_jt53[_local1] + _nq336[_local1]);
if (_jt53[_local1] >= 0){
_jt53[_local1] = 0;
_nq336[_local1] = -((_nq336[_local1] * 0.5));
if (Math.abs(_nq336[_local1]) < 1){
_nq336[_local1] = 0;
if (_gy165[_local1] == _bw24){
_local2 = _kc433;
_local3 = _local1;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
};
};
};
break;
};
};
_local1++;
};
}
final private function _ut139(_arg1:Number):Number{
return (((_arg1 / (_mv91 >> 1)) - 1));
}
final private function _dk215(_arg1:int):int{
return (Math.round((Math.random() * (_arg1 - 1))));
}
final private function _yg332(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:Number, _arg6:Number, _arg7:int, _arg8:Number, _arg9:Boolean):void{
var _local10:int = (_arg1.width / _arg3);
var _local11:int = (_arg1.height / _arg4);
if ((_arg7 & _sc113) != 0){
_arg5 = (_arg5 - (_local10 >> 1));
} else {
if ((_arg7 & RIGHT) != 0){
_arg5 = (_arg5 - _local10);
};
};
if ((_arg7 & _bd124) != 0){
_arg6 = (_arg6 - (_local11 >> 1));
};
if ((_arg7 & BOTTOM) != 0){
_arg6 = (_arg6 - _local11);
};
matrix = new Matrix();
if (_arg9){
matrix.scale(-1, 1);
matrix.translate(((_arg5 + ((_arg2 % _arg3) * _local10)) + _local10), (_arg6 - (int((_arg2 / _arg3)) * _local11)));
} else {
matrix.translate((_arg5 - ((_arg2 % _arg3) * _local10)), (_arg6 - (int((_arg2 / _arg3)) * _local11)));
};
_ul144.draw(_arg1, matrix, new ColorTransform(1, 1, 1, _arg8), null, new Rectangle(_arg5, _arg6, _local10, _local11), false);
}
final private function _nm128(_arg1:MouseEvent):void{
Mouse.show();
}
final private function _oo115(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 112:
case 80:
_uy336 = false;
break;
};
switch (_arg1.keyCode){
case Keyboard.ESCAPE:
break;
};
}
final private function _mm325():void{
var _local7:int;
var _local8:Number;
_cl286();
var _local1:Number = 0;
var _local2:Number = 0;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local5 = 0;
while (_local5 < 2) {
_local4 = 0;
while (_local4 < _ti389) {
_local3 = _uc138[_local4];
_local6 = _gy165[_local3];
_local1 = _ea399[_local3];
_local2 = _fl18[_local3];
_local7 = Math.sqrt((Math.pow((_ea399[_dq411] - _ea399[_local3]), 2) + Math.pow((_fl18[_dq411] - _fl18[_local3]), 2)));
_local8 = Math.min(1, (1 - (_local7 / _ch424)));
switch (_local5){
case 0:
switch (_local6){
case _sk46:
_yg332(_hu11, ((_qi341 > _eh326)) ? 0 : _jq58, 1, _mv422, _local1, _local2, (BOTTOM | _sc113), 1, false);
break;
case _bw24:
_yg332(_ti94, 0, 1, 1, _local1, _local2, (BOTTOM | _sc113), 1, false);
break;
case _mm319:
_yg332(_lo298, 0, 1, 1, _local1, _local2, (TOP | _sc113), 1, false);
break;
case _ny86:
_ts202(_sl168, _local1, _local2, _gg374, (_sc113 | _bd124), _eq212, _eq212);
break;
case _io448:
case _fb40:
_yg332(_dm33[_local6], 0, 1, 1, _local1, _local2, (BOTTOM | _sc113), _local8, false);
break;
case _is297:
_yg332(_dm33[_local6], _lv311[_local3], 1, 4, _local1, _local2, (BOTTOM | _sc113), _local8, false);
break;
};
break;
case 1:
switch (_local6){
case _bw24:
_yg332(_id219[_local3], _kc433[_local3], _st124[_local3], _sh97[_local3], _local1, (_local2 + _jt53[_local3]), (BOTTOM | _sc113), 1, false);
_jt388(_be405[_local3].toString(), _local1, (_local2 - _cg332[_local3]), (BOTTOM | _sc113), 1);
break;
case _en149:
_jt388(_be405[_local3].toString(), _local1, (_local2 + _jt53[_local3]), (BOTTOM | _sc113), 1);
break;
case _mm319:
if ((((_be405[_local3] > 100)) || (((ticks % 2) == 0)))){
_yg332(_aw272, 0, 1, 1, _local1, (_local2 + _jt53[_local3]), (BOTTOM | _sc113), 1, false);
};
break;
case _sk46:
_yg332(_xt380, ((_qi341 > _eh326)) ? _kl190 : ((_ps332 % _wp281) + (_jq58 * _wp281)), _st124[_local3], _sh97[_local3], _local1, _local2, (BOTTOM | _sc113), 0.8, false);
if (_wl407){
_ts202(_ak182, _local1, _local2, _hr75, (_sc113 | _bd124), _im379, _im379);
if (_mk141){
_jt388(irrcrpt("GPMGO QI!", 4), _local1, (_local2 - _cg332[_local3]), (BOTTOM | _sc113), 1);
};
};
break;
case _io448:
case _fb40:
case _is297:
_yg332(_id219[_local3], ((_kc433[_local3] % _st124[_local3]) + (_lv311[_local3] * _st124[_local3])), _st124[_local3], _sh97[_local3], _local1, _local2, (BOTTOM | _sc113), _local8, false);
break;
};
break;
};
_local4++;
};
_local5++;
};
}
final private function _iq251():void{
if (_eq27.data._yd210 != null){
_yd210 = _eq27.data._yd210;
_rn361 = _eq27.data._rn361;
_ct284 = _eq27.data._ct284;
_gt52 = _eq27.data._gt52;
};
}
final private function startTransition(_arg1:int, _arg2:int):void{
if (_sn217 == 0){
_nx216 = _xq384;
_id344 = _gg296;
_sn217 = _arg1;
_oa289 = _arg2;
_dt213 = ((_arg1 == _tv182)) ? 0 : 1;
};
}
final private function _fl283(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (_arg1 - _arg3);
var _local6:Number = (_arg2 - _arg4);
return (Math.atan2(_local6, _local5));
}
final private function _ew144():void{
if (++_qi341 > _eh326){
if (++_wt332 > 3){
_wt332 = 0;
_kl190 = (_kl190 + _qm16);
if ((((_kl190 <= 0)) || ((_kl190 >= (_wp281 - 1))))){
_qm16 = -(_qm16);
};
};
};
}
final private function _mx118():void{
var _local1:int;
while (_local1 < _tp80) {
_kx384[_local1] = (_kx384[_local1] - 0.01);
_be299[_local1] = (_be299[_local1] + 0.01);
if (_kx384[_local1] <= 0){
_pc77(_local1);
};
_local1++;
};
}
final private function _eh56(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
_kh48[_se151] = _arg2;
switch (_arg2){
case _uy273:
_ur244[_se151] = (_arg1 + (_nt171) ? irrcrpt("Qp", 2) : irrcrpt("Tkk", 5));
break;
case _mx37:
_ur244[_se151] = (_arg1 + (_nc21) ? irrcrpt("Po", 1) : irrcrpt("Rii", 3));
break;
default:
_ur244[_se151] = _arg1;
break;
};
_uv411[_se151] = _pa263(_ur244[_se151]);
_nl336[_se151] = _jl24;
var _local6:int = (_arg4 + (_se151 * (_jl24 + _pg385)));
if ((_arg5 & _sc113) != 0){
_arg3 = (_arg3 - (_uv411[_se151] >> 1));
} else {
if ((_arg5 & RIGHT) != 0){
_arg3 = (_arg3 - _uv411[_se151]);
};
};
if ((_arg5 & _bd124) != 0){
_local6 = (_local6 - (_jl24 >> 1));
};
if ((_arg5 & BOTTOM) != 0){
_local6 = (_local6 - _jl24);
};
_cr293[_se151] = _arg3;
_he145[_se151] = _local6;
_se151++;
}
final private function _wy288():void{
startTransition(_tv182, _rv345);
}
final private function _sb418(_arg1:Sound, _arg2:Number):void{
if (_nc21){
if (_wr251 != null){
_wr251.stop();
};
_qu121.volume = _rh263;
_qu121.pan = _arg2;
_wr251 = _arg1.play(0, 1);
_wr251.soundTransform = _qu121;
};
}
final private function _kv356(_arg1:Array):void{
var _local2:int;
var _local3:Boolean;
_vi88(_lg442);
_se151 = 0;
_nx216 = -1;
_xq384 = -1;
_ya425 = true;
var _local4:int;
while (_local4 <= ((_arg1.length >> 1) - 2)) {
_local2 = _arg1[(2 + ((_local4 << 1) + 1))];
_local3 = true;
switch (_local2){
case _nx37:
case _sf394:
_local3 = Preloader._fj220;
break;
case _ix276:
case _in436:
_local3 = Preloader._hj168;
break;
};
if (_local3){
_eh56(_arg1[(2 + (_local4 << 1))], _local2, _arg1[0], _arg1[1], (_sc113 | TOP));
};
_local4++;
};
}
final private function _ry37():void{
var _qk325:String;
try {
_qk325 = _eq27.flush();
if (_qk325 == SharedObjectFlushStatus.PENDING){
_eq27.addEventListener(NetStatusEvent.NET_STATUS, _vq141);
} else {
if (_qk325 == SharedObjectFlushStatus.FLUSHED){
_eq27.data._yd210 = _yd210;
_eq27.data._rn361 = _rn361;
_eq27.data._ct284 = _ct284;
_eq27.data._gt52 = _gt52;
};
};
} catch(e:Error) {
};
}
}
}//package
Section 24
//Time4Cat__ai374 (Time4Cat__ai374)
package {
import mx.core.*;
public class Time4Cat__ai374 extends BitmapAsset {
}
}//package
Section 25
//Time4Cat__ap192 (Time4Cat__ap192)
package {
import mx.core.*;
public class Time4Cat__ap192 extends BitmapAsset {
}
}//package
Section 26
//Time4Cat__au438 (Time4Cat__au438)
package {
import mx.core.*;
public class Time4Cat__au438 extends SoundAsset {
}
}//package
Section 27
//Time4Cat__br413 (Time4Cat__br413)
package {
import mx.core.*;
public class Time4Cat__br413 extends BitmapAsset {
}
}//package
Section 28
//Time4Cat__bs278 (Time4Cat__bs278)
package {
import mx.core.*;
public class Time4Cat__bs278 extends BitmapAsset {
}
}//package
Section 29
//Time4Cat__ci368 (Time4Cat__ci368)
package {
import mx.core.*;
public class Time4Cat__ci368 extends BitmapAsset {
}
}//package
Section 30
//Time4Cat__cy300 (Time4Cat__cy300)
package {
import mx.core.*;
public class Time4Cat__cy300 extends SoundAsset {
}
}//package
Section 31
//Time4Cat__ea409 (Time4Cat__ea409)
package {
import mx.core.*;
public class Time4Cat__ea409 extends BitmapAsset {
}
}//package
Section 32
//Time4Cat__ec435 (Time4Cat__ec435)
package {
import mx.core.*;
public class Time4Cat__ec435 extends SoundAsset {
}
}//package
Section 33
//Time4Cat__em136 (Time4Cat__em136)
package {
import mx.core.*;
public class Time4Cat__em136 extends BitmapAsset {
}
}//package
Section 34
//Time4Cat__ex311 (Time4Cat__ex311)
package {
import mx.core.*;
public class Time4Cat__ex311 extends SoundAsset {
}
}//package
Section 35
//Time4Cat__fl99 (Time4Cat__fl99)
package {
import mx.core.*;
public class Time4Cat__fl99 extends BitmapAsset {
}
}//package
Section 36
//Time4Cat__fy82 (Time4Cat__fy82)
package {
import mx.core.*;
public class Time4Cat__fy82 extends SoundAsset {
}
}//package
Section 37
//Time4Cat__gb405 (Time4Cat__gb405)
package {
import mx.core.*;
public class Time4Cat__gb405 extends SoundAsset {
}
}//package
Section 38
//Time4Cat__ib380 (Time4Cat__ib380)
package {
import mx.core.*;
public class Time4Cat__ib380 extends BitmapAsset {
}
}//package
Section 39
//Time4Cat__ij286 (Time4Cat__ij286)
package {
import mx.core.*;
public class Time4Cat__ij286 extends BitmapAsset {
}
}//package
Section 40
//Time4Cat__jk137 (Time4Cat__jk137)
package {
import mx.core.*;
public class Time4Cat__jk137 extends BitmapAsset {
}
}//package
Section 41
//Time4Cat__jv154 (Time4Cat__jv154)
package {
import mx.core.*;
public class Time4Cat__jv154 extends BitmapAsset {
}
}//package
Section 42
//Time4Cat__jy443 (Time4Cat__jy443)
package {
import mx.core.*;
public class Time4Cat__jy443 extends BitmapAsset {
}
}//package
Section 43
//Time4Cat__kd438 (Time4Cat__kd438)
package {
import mx.core.*;
public class Time4Cat__kd438 extends SoundAsset {
}
}//package
Section 44
//Time4Cat__ke333 (Time4Cat__ke333)
package {
import mx.core.*;
public class Time4Cat__ke333 extends BitmapAsset {
}
}//package
Section 45
//Time4Cat__lv216 (Time4Cat__lv216)
package {
import mx.core.*;
public class Time4Cat__lv216 extends SoundAsset {
}
}//package
Section 46
//Time4Cat__mb446 (Time4Cat__mb446)
package {
import mx.core.*;
public class Time4Cat__mb446 extends SoundAsset {
}
}//package
Section 47
//Time4Cat__md22 (Time4Cat__md22)
package {
import mx.core.*;
public class Time4Cat__md22 extends BitmapAsset {
}
}//package
Section 48
//Time4Cat__mk413 (Time4Cat__mk413)
package {
import mx.core.*;
public class Time4Cat__mk413 extends BitmapAsset {
}
}//package
Section 49
//Time4Cat__na190 (Time4Cat__na190)
package {
import mx.core.*;
public class Time4Cat__na190 extends BitmapAsset {
}
}//package
Section 50
//Time4Cat__na301 (Time4Cat__na301)
package {
import mx.core.*;
public class Time4Cat__na301 extends SoundAsset {
}
}//package
Section 51
//Time4Cat__nk381 (Time4Cat__nk381)
package {
import mx.core.*;
public class Time4Cat__nk381 extends BitmapAsset {
}
}//package
Section 52
//Time4Cat__og234 (Time4Cat__og234)
package {
import mx.core.*;
public class Time4Cat__og234 extends BitmapAsset {
}
}//package
Section 53
//Time4Cat__ol326 (Time4Cat__ol326)
package {
import mx.core.*;
public class Time4Cat__ol326 extends BitmapAsset {
}
}//package
Section 54
//Time4Cat__or216 (Time4Cat__or216)
package {
import mx.core.*;
public class Time4Cat__or216 extends SoundAsset {
}
}//package
Section 55
//Time4Cat__ps139 (Time4Cat__ps139)
package {
import mx.core.*;
public class Time4Cat__ps139 extends BitmapAsset {
}
}//package
Section 56
//Time4Cat__qk120 (Time4Cat__qk120)
package {
import mx.core.*;
public class Time4Cat__qk120 extends BitmapAsset {
}
}//package
Section 57
//Time4Cat__rd140 (Time4Cat__rd140)
package {
import mx.core.*;
public class Time4Cat__rd140 extends BitmapAsset {
}
}//package
Section 58
//Time4Cat__sa443 (Time4Cat__sa443)
package {
import mx.core.*;
public class Time4Cat__sa443 extends SoundAsset {
}
}//package
Section 59
//Time4Cat__se71 (Time4Cat__se71)
package {
import mx.core.*;
public class Time4Cat__se71 extends BitmapAsset {
}
}//package
Section 60
//Time4Cat__sv188 (Time4Cat__sv188)
package {
import mx.core.*;
public class Time4Cat__sv188 extends SoundAsset {
}
}//package
Section 61
//Time4Cat__tp34 (Time4Cat__tp34)
package {
import mx.core.*;
public class Time4Cat__tp34 extends SoundAsset {
}
}//package
Section 62
//Time4Cat__uw292 (Time4Cat__uw292)
package {
import mx.core.*;
public class Time4Cat__uw292 extends BitmapAsset {
}
}//package
Section 63
//Time4Cat__vq399 (Time4Cat__vq399)
package {
import mx.core.*;
public class Time4Cat__vq399 extends BitmapAsset {
}
}//package
Section 64
//Time4Cat__vv234 (Time4Cat__vv234)
package {
import mx.core.*;
public class Time4Cat__vv234 extends BitmapAsset {
}
}//package
Section 65
//Time4Cat__vy152 (Time4Cat__vy152)
package {
import mx.core.*;
public class Time4Cat__vy152 extends BitmapAsset {
}
}//package
Section 66
//Time4Cat__wp174 (Time4Cat__wp174)
package {
import mx.core.*;
public class Time4Cat__wp174 extends BitmapAsset {
}
}//package
Section 67
//Time4Cat__xf134 (Time4Cat__xf134)
package {
import mx.core.*;
public class Time4Cat__xf134 extends BitmapAsset {
}
}//package
Section 68
//Time4Cat__xn160 (Time4Cat__xn160)
package {
import mx.core.*;
public class Time4Cat__xn160 extends BitmapAsset {
}
}//package
Section 69
//Time4Cat__yi395 (Time4Cat__yi395)
package {
import mx.core.*;
public class Time4Cat__yi395 extends SoundAsset {
}
}//package
Section 70
//Time4Cat__yi405 (Time4Cat__yi405)
package {
import mx.core.*;
public class Time4Cat__yi405 extends BitmapAsset {
}
}//package
Section 71
//Time4Cat__yo295 (Time4Cat__yo295)
package {
import mx.core.*;
public class Time4Cat__yo295 extends BitmapAsset {
}
}//package