Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
//unresolved jump
super(_arg1);
return;
}
//unresolved jump
;
(((( + 1) <= !NULL!) > !NULL!) - !NULL!).COMPLETE = "component_api_available";
}
//unresolved jump
}//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
public function AbstractShadowService(){
//unresolved jump
super();
return;
}
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
//unresolved jump
!NULL!;
//unresolved jump
("Kongregate API: " + _arg1).trace((((((("." + ~((_arg3 === (_arg3 + 1)))) + _arg2) + "(") + _arg3) + ") ") + _arg4));
return;
}
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
//unresolved jump
//unresolved jump
return;
if (!true){
mode = "";
//unresolved jump
super();
//unresolved jump
};
}
public function submit(_arg1:Number, _arg2:String=null):void{
//unresolved jump
(//unresolved nextvalue or nextname + !NULL!).alert("IHighScoreServices", "submit", arguments);
return;
}
public function connect():Boolean{
//unresolved jump
(((!NULL! + !NULL!) << !NULL!) is !NULL!).alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
_local0 = ??hasnext
;
var _local2 = ??getglobalscope
;
({_local0:false});
//unresolved jump
//unresolved jump
("[Mode: " + mode).alert(??getglobalscope
, NaN, _local0, (false + "]"));
//unresolved jump
};
}
public function setMode(_arg1:String):void{
//unresolved jump
//unresolved jump
return;
if (!true){
this.mode = _arg1;
//unresolved jump
alert("IHighScoreServices", "setMode", arguments);
//unresolved jump
};
}
}
//unresolved jump
_local0 = -();
}//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
//unresolved jump
var _local1 = (( + 1) + !NULL!);
}//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function KongregateServiceShadow(){
//unresolved jump
var _local1 = ((//unresolved nextvalue or nextname instanceof !NULL!) is !NULL!);
super();
return;
}
public function getName():String{
//unresolved jump
;
undefined.alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
//unresolved jump
_local0 = !NULL!;
!ERROR! (//unresolved nextvalue or nextname is !NULL!).alert("IKongregateServices", "connect", _local2);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
_arg1(new Object());
//unresolved jump
alert("IKongregateServices", "getPlayerInfo");
//unresolved jump
};
}
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function StatServiceShadow(){
//unresolved jump
super();
return;
}
public function submitArray(_arg1:Array):void{
//unresolved jump
var _local3 = ??hasnext
;
_arg1 = !NULL!;
(!NULL! * !NULL!).alert("IStatServices", "submitArray", arguments);
return;
}
public function submit(_arg1:String, _arg2:Number):void{
//unresolved jump
((~(( is !NULL!)) ^ !NULL!) % !NULL!).alert("IStatServices", "submitStat", arguments);
return;
}
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function UserServiceShadow(){
//unresolved jump
super();
return;
}
public function getName():String{
//unresolved jump
((!NULL! | !NULL!) % (!NULL! | !NULL!)).alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
//unresolved jump
//unresolved jump
(((!NULL! <= !NULL!) & !NULL!) + 1);
return;
if (!true){
//unresolved jump
var _temp1 = _arg1;
_arg1 = ~((0 + 1));
"points";
//unresolved nextvalue or nextname(!NULL!);
//unresolved jump
//unresolved jump
(( === undefined) - !(_local3)).alert("UserService", "getPlayerInfo");
//unresolved jump
};
}
}
//unresolved jump
}//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.display.*;
import flash.events.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
//unresolved jump
}//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.display.*;
import flash.events.*;
import com.kongregate.as3.client.services.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import com.kongregate.as3.client.events.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
-((((!NULL! + !NULL!) + 1) << ((!NULL! + !NULL!) + 1))).addEventListener(this, (Event.ADDED_TO_STAGE >> (init << ~((false & 0)))), (Event.ADDED_TO_STAGE >> (init << ~((false & 0)))), true, !NULL!);
//unresolved jump
mInstance = this;
//unresolved jump
//unresolved if
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
//unresolved jump
//unresolved jump
super();
//unresolved jump
};
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
//unresolved jump
_arg1 = ((null >>> !NULL!) === _local3);
var _local2:KongregateEvent = //unresolved nextvalue or nextname;
//unresolved jump
var _local3 = -(??getglobalscope
);
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
return;
}
private function init(_arg1:Event):void{
//unresolved jump
_local0 = _local3;
!ERROR! var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
//unresolved jump
_connected = false;
if (!true){
_loaded = false;
//unresolved jump
_local0.removeEventListener(Event.ADDED_TO_STAGE, init);
//unresolved jump
};
_local2 = LoaderInfo(root.loaderInfo).parameters;
//unresolved jump
Security.allowDomain("kongregatetrunk.com");
if (!true){
Security.allowDomain("*.kongregate.com");
//unresolved jump
return;
//unresolved jump
createShadowServices();
//unresolved jump
//unresolved jump
_local0 = !NULL!;
//unresolved if
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
//unresolved jump
_local3 = _local2.api_path;
//unresolved jump
};
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
//unresolved jump
return;
if (!true){
loader.load(_local4, _local5);
//unresolved jump
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
//unresolved jump
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
//unresolved jump
loader = new Loader();
//unresolved jump
//unresolved jump
NaN.securityDomain = SecurityDomain.currentDomain;
//unresolved jump
};
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
//unresolved jump
((( === !NULL!) > NaN) === !NULL!).getServices();
return;
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
//unresolved jump
throw (new (((( - !NULL!) | true) as !NULL!) | !NULL!).IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
//unresolved jump
with (undefined) {
var _local1:Timer = undefined;
//unresolved jump
kUser = new UserServiceShadow();
//unresolved if
kStats = new StatServiceShadow();
//unresolved jump
kScores = new HighScoreServiceShadow();
//unresolved jump
//unresolved jump
};
new (((null instanceof _local3) as !NULL!) ^ ( - )).KongregateServiceShadow().kServices = !NULL!;
//unresolved jump
trace(">>> Kongregate Shadow Services instantiated for local development..");
//unresolved jump
_local1 = new Timer(200, 1);
//unresolved jump
return;
if (!true){
_connected = true;
//unresolved jump
_local1.start();
//unresolved jump
//unresolved jump
//unresolved nextvalue or nextname.addEventListener(~(//unresolved nextvalue or nextname).TIMER_COMPLETE, alertConnected);
//unresolved jump
};
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
//unresolved jump
var _local1:ApplicationDomain = ~(((((null <= !NULL!) / !NULL!) as !NULL!) + 1));
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
//unresolved jump
_local0 = ( % _local2.getInstance());
((!NULL! + 1) is !NULL!).kServices = !NULL!;
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
//unresolved jump
return;
if (!true){
alertConnected();
//unresolved jump
_connected = true;
//unresolved jump
_loaded = true;
//unresolved jump
kServices.connect(VERSION);
//unresolved jump
//unresolved jump
( < (-(NaN) - 1)).kUser = _local5.getInstance();
//unresolved jump
};
}
public static function getInstance():KongregateAPI{
//unresolved jump
if (!undefined){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
//unresolved jump
//unresolved jump
return;
if (!true){
CLASS_USER = "com.kongregate.as3.client.services.UserServices";
//unresolved jump
//unresolved jump
_local3;
CLASS_STATS = "com.kongregate.as3.client.services.StatServices";
//unresolved jump
CLASS_SCORES = "com.kongregate.as3.client.services.HighScoreServices";
//unresolved jump
CLASS_SERVICES = "com.kongregate.as3.client.services.KongregateServices";
//unresolved jump
//unresolved jump
var _local1 = (_local3 <= ??getglobalscope
);
DEBUG_API_URL = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
//unresolved jump
};
}
//unresolved jump
//unresolved jump
//unresolved jump
((((((((??hasnext
^ !NULL!) > (NaN < !((undefined - ( - 1))))) is [OP_NEWCLASS ClassInfo:31 base:Sprite]) ^ !NULL!) == !NULL!) + !NULL!) ^ !NULL!) * !NULL!).KongregateAPI = !NULL!;
}//package com.kongregate.as3.client
Section 13
//ExportVars (generated.ExportVars)
package generated {
public class ExportVars {
public static const mochiBotID:String = "1df15f01";
public static const mochiAdsID:String = "47b52b1922eaa28a";
public static const gameID:String = "162";
public function ExportVars(){
//unresolved jump
super();
return;
}
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
gameID = "162";
//unresolved jump
mochiBotID = "1df15f01";
//unresolved jump
mochiAdsID = "47b52b1922eaa28a";
//unresolved jump
};
}
//unresolved jump
}//package generated
Section 14
//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.0.0.0";
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;
}
}
//unresolved jump
//unresolved jump
_local0 = (NaN - DisplayObject);
_local0 = ((~((( / !NULL!) % !NULL!)) - !NULL!) + !NULL!);
}//package mx.core
Section 15
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
//unresolved jump
[OP_NEWCLASS ClassInfo:35 base:ByteArray].ByteArrayAsset = !NULL!;
}//package mx.core
Section 16
//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.0.0.0";
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));
}
}
//unresolved jump
}//package mx.core
Section 17
//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.0.0.0";
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));
}
}
//unresolved jump
//unresolved jump
(-((( + _local2) <= !NULL!)) - EventDispatcher);
[OP_NEWCLASS ClassInfo:21 base:Bitmap].FlexBitmap = !NULL!;
}//package mx.core
Section 18
//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.0.0.0";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
//unresolved jump
var _local1:int = (null + undefined);
//unresolved jump
//unresolved jump
((((!NULL! * !NULL!) instanceof (typeof((??getglobalscope
- 1)) * [OP_NEWCLASS ClassInfo:14 base:MovieClip])) / !NULL!) == ( - 1)).FlexMovieClip = !NULL!;
}//package mx.core
Section 19
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
//unresolved jump
}//package mx.core
Section 20
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
//unresolved jump
}//package mx.core
Section 21
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
//unresolved jump
var _local1:Number;
}//package mx.core
Section 22
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.display.*;
import flash.events.*;
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;
}
//unresolved jump
}//package mx.core
Section 23
//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;
}
//unresolved jump
}//package mx.core
Section 24
//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.0.0.0";
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))));
}
}
//unresolved jump
_local0 = _local3;
//unresolved jump
//unresolved jump
_local0 = ([OP_NEWCLASS ClassInfo:17 base:FlexMovieClip] % !NULL!);
with () {
};
!NULL!.MovieClipAsset = ;
}//package mx.core
Section 25
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.display.*;
import flash.events.*;
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.0.0.0";
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);
}
}
//unresolved jump
((( & !NULL!) + 1) + !NULL!);
//unresolved jump
//unresolved jump
(-([OP_NEWCLASS ClassInfo:18 base:MovieClipAsset]) === arguments).MovieClipLoaderAsset = (!NULL! ^ !NULL!);
}//package mx.core
Section 26
//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 27
//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.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
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++));
}
}
//unresolved jump
}//package mx.utils
Section 28
//GameWonEvent (zzpEngine.GameWonEvent)
package zzpEngine {
import flash.events.*;
public class GameWonEvent extends Event {
public static const GAME_WON_EVENT:String = "zzpGameWon";
public function GameWonEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
//unresolved jump
super(_arg1, _arg2, _arg3);
return;
}
override public function toString():String{
//unresolved jump
return ((NaN < _local2).formatToString("GameWonEvent", "type", "bubbles", "cancelable", "eventPhase"));
}
override public function clone():Event{
//unresolved jump
((((( as !NULL!) >= !NULL!) as !NULL!) >> !NULL!) & !NULL!).trace("GameWonEvent inside clone.");
return (new GameWonEvent(type, bubbles, cancelable));
}
//unresolved jump
_local2.GAME_WON_EVENT = "zzpGameWon";
}
//unresolved jump
}//package zzpEngine
Section 29
//LevelCompletedEvent (zzpEngine.LevelCompletedEvent)
package zzpEngine {
import flash.events.*;
public class LevelCompletedEvent extends Event {
public var levelCompleted:int;
public static const LEVEL_COMPLETED_EVENT:String = "zzpLevelCompleted";
public function LevelCompletedEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0){
//unresolved jump
//unresolved jump
return;
if (!true){
levelCompleted = _arg4;
//unresolved jump
super(_arg1, _arg2, _arg3);
//unresolved jump
};
}
override public function toString():String{
//unresolved jump
return ((//unresolved nextvalue or nextname == !NULL!).formatToString("LevelCompletedEvent", "type", "bubbles", "cancelable", "eventPhase", "levelCompleted"));
}
override public function clone():Event{
//unresolved jump
(((( ^ !NULL!) / !NULL!) / !NULL!) + !NULL!).trace("LevelCompletedEvent inside clone.");
return (new LevelCompletedEvent(type, bubbles, cancelable, levelCompleted));
}
//unresolved jump
(~(!NULL!) * !NULL!);
"zzpLevelCompleted".LEVEL_COMPLETED_EVENT = !NULL!;
}
//unresolved jump
}//package zzpEngine
Section 30
//TopScoreEvent (zzpEngine.TopScoreEvent)
package zzpEngine {
import flash.events.*;
public class TopScoreEvent extends Event {
public var pointValue:int;
public static const REPORT_SCORE:String = "zzpReportTopScore";
public function TopScoreEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0){
//unresolved jump
//unresolved jump
_arg1 = ((!NULL! < !NULL!) % !NULL!);
return;
if (!true){
pointValue = _arg4;
//unresolved jump
super(_arg1, _arg2, _arg3);
//unresolved jump
};
}
override public function toString():String{
//unresolved jump
return (//unresolved nextvalue or nextname.formatToString("TopScoreEvent", "type", "bubbles", "cancelable", "eventPhase", "pointValue"));
}
override public function clone():Event{
//unresolved jump
_local2.trace("TopScoreEvent inside clone.");
return (new TopScoreEvent(type, bubbles, cancelable, pointValue));
}
//unresolved jump
(//unresolved nextvalue or nextname / !NULL!).REPORT_SCORE = "zzpReportTopScore";
}
//unresolved jump
_local0 = ( + !NULL!);
var _local1 = -(!NULL!);
}//package zzpEngine
Section 31
//DeployConstants (DeployConstants)
package {
public class DeployConstants {
public static const S3_GAMEASSETS_DIR:String = "gameAssets/";
public static const S3_GAMEPIECES_DIR:String = "gamePieces/";
public static const LOCAL:Boolean = false;
public static const FEATURED_GAMES_URL:String = "http://playcrafter.s3.amazonaws.com/production/pub/featuredGames.xml";
public static const SITE_TITLE:String = "PlayCrafter: Create flash games using a free online game maker";
public static const SERVER_URI:String = "rtmpt://app.playcrafter.com/zzpServer/chLobby";
public static const REAL_STANDALONE_PLAYER_URL:String = "http://s3.amazonaws.com/playcrafter/production/standalone/StandAlonePlayer.swf";
public static const IMAGE_UPLOAD_URL:String = "http://app.playcrafter.com:88/upload/upload.php";
public static const S3_URL:String = "http://playcrafter.s3.amazonaws.com/production/V3/";
public static const S3_USER_DIR:String = "user/";
public static const IMAGE_DOWNLOAD_URL:String = "http://app.playcrafter.com:88/upload/images";
public static const S3_GAMES_DIR:String = "games/";
public static const WEBFRAMEWORK_PATH:String = "production/client/WebFrameWork.swf";
public static const TEMPLATE_GAMES:Array;
public static const MAIN_SITE_URL:String = "http://www.playcrafter.com/";
public static const S3_GAMESCREENSHOT_DIR:String = "gameScreens/";
public static const RELEASE:Boolean = true;
public static const SWEAR_URL:String = "http://playcrafter.s3.amazonaws.com/production/pub/badwords.txt";
public static const STANDALONE_PLAYER_URL:String = "http://s3.amazonaws.com/playcrafter/production/standalone/EmbeddableLoader.swf";
public static const WEBFRAMEWORK_LOCK_URI:String = "http://playcrafter.s3.amazonaws.com/production/client/";
public static const DEBUG:Boolean = false;
public static const LB_REQUEST_URI:String = "http://www.playcrafter.com/loadBalance/getAvailableServers.php";
public function DeployConstants(){
//unresolved jump
super();
return;
}
//unresolved jump
//unresolved jump
return;
if (!true){
SITE_TITLE = "PlayCrafter: Create flash games using a free online game maker";
//unresolved jump
FEATURED_GAMES_URL = "http://playcrafter.s3.amazonaws.com/production/pub/featuredGames.xml";
//unresolved jump
SWEAR_URL = "http://playcrafter.s3.amazonaws.com/production/pub/badwords.txt";
//unresolved jump
TEMPLATE_GAMES = [509, 822, 510, 511, 0x0200, 513, 0x0202, 515];
//unresolved jump
MAIN_SITE_URL = "http://www.playcrafter.com/";
//unresolved jump
STANDALONE_PLAYER_URL = "http://s3.amazonaws.com/playcrafter/production/standalone/EmbeddableLoader.swf";
//unresolved jump
REAL_STANDALONE_PLAYER_URL = "http://s3.amazonaws.com/playcrafter/production/standalone/StandAlonePlayer.swf";
//unresolved jump
IMAGE_DOWNLOAD_URL = "http://app.playcrafter.com:88/upload/images";
//unresolved jump
//unresolved jump
IMAGE_UPLOAD_URL = ("http://app.playcrafter.com:88/upload/upload.php" ^ -(("http://app.playcrafter.com:88/upload/upload.php" + 1)));
//unresolved jump
S3_USER_DIR = "user/";
//unresolved jump
S3_GAMEASSETS_DIR = "gameAssets/";
//unresolved jump
S3_GAMEPIECES_DIR = "gamePieces/";
//unresolved jump
S3_GAMESCREENSHOT_DIR = "gameScreens/";
//unresolved jump
S3_GAMES_DIR = "games/";
//unresolved jump
S3_URL = "http://playcrafter.s3.amazonaws.com/production/V3/";
//unresolved jump
LB_REQUEST_URI = "http://www.playcrafter.com/loadBalance/getAvailableServers.php";
//unresolved jump
SERVER_URI = "rtmpt://app.playcrafter.com/zzpServer/chLobby";
//unresolved jump
WEBFRAMEWORK_PATH = "production/client/WebFrameWork.swf";
//unresolved jump
WEBFRAMEWORK_LOCK_URI = "http://playcrafter.s3.amazonaws.com/production/client/";
//unresolved jump
DEBUG = false;
//unresolved jump
LOCAL = false;
//unresolved jump
//unresolved jump
_local0 = !NULL!;
RELEASE = true;
//unresolved jump
};
}
//unresolved jump
}//package
Section 32
//EasyText (EasyText)
package {
import flash.text.*;
public class EasyText extends TextField {
public function EasyText(_arg1:String, _arg2:Number, _arg3:uint){
//unresolved jump
var _temp1 = (this == _arg2);
_local0 = (undefined + 1);
super();
var _local4:TextFormat = new TextFormat("CgWesterveldt Light Adj", _arg2, _arg3);
_local4.align = TextFormatAlign.CENTER;
//unresolved jump
_local0 = ((-(!NULL!) + !NULL!) as !NULL!);
//unresolved jump
return;
if (!true){
_local0.text = _arg1;
//unresolved jump
_local0.defaultTextFormat = _local4;
//unresolved jump
_local0.autoSize = TextFieldAutoSize.CENTER;
//unresolved jump
//unresolved jump
_local0.embedFonts = true;
//unresolved jump
};
}
}
//unresolved jump
//unresolved jump
[OP_NEWCLASS ClassInfo:12 base:TextField].EasyText = !NULL!;
}//package
Section 33
//EmbeddableLoader (EmbeddableLoader)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import generated.*;
public class EmbeddableLoader extends Sprite {
private var _gameLoader:StandAloneLoader;
private var _loaderCover:LoaderCover;
private var _shareButtonFreeURIs:Array;
private var _playing:Boolean;// = false
private var topScoreForwarder:TopScoreForwarder;// = null
private var _adFreeURIs:Array;
private static const I_EXIST_ONLY_TO_EMBED_A_FONT:String = "EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT";
private static const WIDTH:Number = 558;
private static const HEIGHT:Number = 430;
private static var _debugText:String = "";
private static var _debugWindow:TextField;
public function EmbeddableLoader(){
//unresolved jump
var _local3:String = _local2;
var _local4:LoaderWithAd;
//unresolved jump
addChild(_gameLoader);
if (!true){
_gameLoader.y = -10000;
//unresolved jump
_gameLoader = new StandAloneLoader();
//unresolved jump
stage.addEventListener(Event.RESIZE, onStageResize);
//unresolved jump
stage.align = StageAlign.TOP_LEFT;
//unresolved jump
stage.scaleMode = StageScaleMode.NO_SCALE;
//unresolved jump
super();
//unresolved jump
_shareButtonFreeURIs = ["kongregate.com", "playcrafter.s3.amazonaws.com/staging/"];
//unresolved jump
_adFreeURIs = ["file:///home/hersh/code/embeddableLoader/bin/NoAd.swf", "http://playcrafter.s3.amazonaws.com/staging/standalone/NoAd.swf", "kongregate.com"];
//unresolved jump
};
var _local1:Boolean;
if (root.loaderInfo.url.indexOf("kongregate.com") != -1){
_local1 = true;
};
topScoreForwarder = new TopScoreForwarder(this, _gameLoader, _local1);
if (shouldShowAd()){
//unresolved jump
_local4 = new LoaderWithAd();
//unresolved jump
_loaderCover = _local4;
if (!true){
_local4.showAd();
//unresolved jump
addChild(_local4);
//unresolved jump
};
} else {
_loaderCover = new LoaderWithoutAd();
addChild(_loaderCover);
};
_loaderCover.playGameCallback = playGame;
_gameLoader.progressFunction = _loaderCover.setProgress;
var _local2:Object = getURLParams();
//unresolved jump
return;
if (!true){
onStageResize();
//unresolved jump
notifyMochiBot();
//unresolved jump
//unresolved if
_gameLoader.loadGame(Number(_local3), shouldShowShare());
//unresolved jump
//unresolved if
!((_local3 == null));
//unresolved jump
//unresolved jump
_local3 = ExportVars.gameID;
//unresolved jump
//unresolved if
//unresolved jump
_local3 = ((((null * !NULL!) + 1) - true) - (_local2 - "gameID"))[??getglobalscope
];
//unresolved jump
};
}
private function onStageResize(_arg1:Event=null):void{
//unresolved jump
//unresolved jump
(((!NULL! * -((((//unresolved nextvalue or nextname === !NULL!) > !NULL!) & (((((((((("stage=" + stage.stageWidth) + "x") + stage.stageHeight) + ", cover=") + _loaderCover.width) + "x") + _loaderCover.height) + ", coverscale=") + _loaderCover.scaleX) as ("x" - 1))))) + !NULL!) + _loaderCover.scaleY).debugWrite(!NULL!);
var _local2:Number = (stage.stageWidth / WIDTH);
var _local3:Number = (stage.stageHeight / HEIGHT);
var _local4:Number = Math.min(_local2, _local3);
//unresolved jump
return;
if (!true){
_loaderCover.scaleY = _local4;
//unresolved jump
//unresolved jump
_loaderCover.scaleX = _local4;
//unresolved jump
};
}
private function playGame():void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
var _local1 = -(( instanceof ));
(((//unresolved nextvalue or nextname | !NULL!) ^ !NULL!) + 1).removeChild(_loaderCover);
//unresolved jump
_gameLoader.y = 0;
//unresolved jump
//unresolved if
_playing = true;
//unresolved jump
};
}
private function stringToObject(_arg1:String):Object{
//unresolved jump
var _local4:String = (~((//unresolved nextvalue or nextname << !NULL!)) - !NULL!);
var _local5:Array;
var _local2:Object = new Object();
var _local3:Array = _arg1.split("&");
var _local6:int;
var _local7:* = _local3;
//unresolved jump
//unresolved jump
var _temp1 = !(((-((_local4 + !NULL!)) >= ) > !NULL!));
_local4 = //unresolved nextvalue or nextname;
_local5 = _local4.split("=");
if (_local5.length == 2){
_local2[_local5[0]] = _local5[1];
};
//unexpected hasnext2
//unresolved if
//unresolved jump
return (_local2);
}
private function notifyMochiBot():void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
//unresolved if
MochiBot.track(this, ExportVars.mochiBotID);
//unresolved jump
//unresolved jump
//unresolved if
((((((((((-(((true < !NULL!) instanceof !NULL!)) * !NULL!) - 1) == (ExportVars.mochiBotID == "")) - !NULL!) / !NULL!) / !NULL!) / (DeployConstants.LOCAL == false)) + null) << !NULL!) > !NULL!);
//unresolved jump
};
}
private function shouldShowShare():Boolean{
//unresolved jump
var _local1:String = (!NULL! / !NULL!);
for each (_local1 in _shareButtonFreeURIs) {
if (root.loaderInfo.url.indexOf(_local1) != -1){
return (false);
};
};
//unresolved jump
return (true);
}
private function shouldShowAd():Boolean{
//unresolved jump
_local0 = null;
var _local1:String = (??hasnext
| !NULL!);
for each (_local1 in _adFreeURIs) {
if (root.loaderInfo.url.indexOf(_local1) != -1){
return (false);
};
};
//unresolved jump
return (true);
}
private function setupDebug():void{
//unresolved jump
//unresolved jump
return;
if (!true){
addChild(_debugWindow);
//unresolved jump
//unresolved jump
_debugWindow.text = _debugText;
//unresolved jump
_debugWindow.height = 400;
//unresolved jump
_debugWindow.width = 500;
//unresolved jump
//unresolved jump
(//unresolved nextvalue or nextname & _local2)._debugWindow = new TextField();
//unresolved jump
};
}
private function getURLParams():Object{
//unresolved jump
var _local1 = null;
_local1 = loaderInfo.url;
//unresolved jump
if (_local2 != -1){
//unresolved jump
var _local2 = ((true ^ stringToObject(_local1.substr((_local2 + 1)))) >= (true ^ stringToObject(_local1.substr((_local2 + 1)))));
return (((((((root == !NULL!) | this) - _local1.indexOf("?")) - !NULL!) + 1) == !NULL!));
};
return (new Object());
}
public static function debugWrite(_arg1:String):void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
//unresolved jump
( is _debugText);
(??hasnext
+ (_arg1 + "\n"))._debugText = !NULL!;
//unresolved jump
//unresolved if
//unresolved jump
(((((_debugWindow is _arg1) < !NULL!) > !NULL!) * !NULL!) + "\n").appendText(!NULL!);
//unresolved jump
};
}
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
((??hasnext
> !NULL!) + 1)._debugText = EmbeddableLoader;
//unresolved jump
I_EXIST_ONLY_TO_EMBED_A_FONT = "EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT";
//unresolved jump
HEIGHT = 430;
//unresolved jump
WIDTH = 558;
//unresolved jump
};
}
//unresolved jump
//unresolved jump
with ((!(??hasnext
) | !NULL!)) {
((!NULL! instanceof !NULL!) + !NULL!);
};
//unresolved jump
(((-(!NULL!) + !NULL!) << [OP_NEWCLASS ClassInfo:0 base:Sprite]) + undefined).EmbeddableLoader = !NULL!;
}//package
Section 34
//EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT (EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT)
package {
import mx.core.*;
public class EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT extends FontAsset {
public function EmbeddableLoader_I_EXIST_ONLY_TO_EMBED_A_FONT(){
//unresolved jump
super();
return;
}
}
//unresolved jump
}//package
Section 35
//HideShareButtonEvent (HideShareButtonEvent)
package {
import flash.events.*;
public class HideShareButtonEvent extends Event {
public static const HIDE_SHARE_BUTTON_EVENT:String = "zzpHideShareButton";
public function HideShareButtonEvent(){
//unresolved jump
var _local1 = (this + );
super(HIDE_SHARE_BUTTON_EVENT);
return;
}
//unresolved jump
//unresolved nextvalue or nextname.HIDE_SHARE_BUTTON_EVENT = "zzpHideShareButton";
}
//unresolved jump
}//package
Section 36
//LoaderCover (LoaderCover)
package {
import flash.display.*;
public class LoaderCover extends Sprite {
public var playGameCallback:Function;
public function LoaderCover(){
//unresolved jump
_local0 = this;
super();
return;
}
public function setProgress(_arg1:Number):void{
return;
}
}
//unresolved jump
//unresolved jump
//unresolved jump
(//unresolved nextvalue or nextname & !NULL!);
??getglobalscope
.LoaderCover = undefined;
}//package
Section 37
//LoaderWithAd (LoaderWithAd)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import generated.*;
public class LoaderWithAd extends LoaderCover {
private var _loadingIndicator:LoadingIndicator;
private var _mochiAdArgs:Object;
private var _adHolder:MovieClip;
private static const SignPost:Class;
private static const Background:Class;
public function LoaderWithAd(){
//unresolved jump
!NULL!;
!ERROR! super();
_local1 = new Background();
//unresolved jump
_local1.addEventListener(MouseEvent.CLICK, goToMainSite);
if (!true){
this.addEventListener(MouseEvent.CLICK, goToMainSite);
//unresolved jump
addChild(_local1);
//unresolved jump
Bitmap(_local1).smoothing = true;
//unresolved jump
};
var _local2:DisplayObject = new SignPost();
//unresolved jump
addChild(_loadingIndicator);
if (!true){
_loadingIndicator.y = 95;
//unresolved jump
_loadingIndicator.x = 50;
//unresolved jump
_loadingIndicator = new LoadingIndicator(0xFFFFFF);
//unresolved jump
_local2.addEventListener(MouseEvent.CLICK, goToMainSite);
//unresolved jump
addChild(_local2);
//unresolved jump
_local2.y = 170;
//unresolved jump
_local2.x = 15;
//unresolved jump
};
var _local3 = 300;
var _local4 = 250;
//unresolved jump
//unresolved jump
{:"clip", _adHolder:"id", ExportVars.mochiAdsID:("res" ^ ((((("" + _local3) + "x") + _local4) - 1) <= ))}._mochiAdArgs = !NULL!;
if (!true){
addChild(_adHolder);
//unresolved jump
_adHolder.y = 80;
//unresolved jump
_adHolder.x = 247;
//unresolved jump
_adHolder = new MovieClip();
//unresolved jump
};
var _local5:Number = 14;
var _local6:EasyText = new EasyText("sponsored by:", _local5, 0xFFFFFF);
//unresolved jump
_local6.y = ((_adHolder.y - _local6.textHeight) - 7);
if (!true){
_local6.x = ((_adHolder.x + (_local3 / 2)) - (_local6.textWidth / 2));
//unresolved jump
addChild(_local6);
//unresolved jump
};
var _local7:EasyText = new EasyText("PlayCrafter shares ad revenue with creators", _local5, 2583642);
//unresolved jump
return;
if (!true){
_local7.y = ((_adHolder.y + _local4) + 2);
//unresolved jump
_local7.x = ((_adHolder.x + (_local3 / 2)) - (_local7.textWidth / 2));
//unresolved jump
//unresolved jump
addChild(_local7);
//unresolved jump
};
}
public function showAd():void{
//unresolved jump
(((((MochiAd - _local3) - !NULL!) >> !NULL!) === !NULL!) > !NULL!).showClickAwayAd(_mochiAdArgs);
return;
}
private function showPlayButton():void{
//unresolved jump
var _local1:PlayButton = new (((!NULL! >= !NULL!) + !NULL!) is !NULL!).PlayButton();
//unresolved jump
return;
if (!true){
//unresolved jump
_local1 = ((!NULL! * !NULL!) >> !NULL!);
_local1.addEventListener(MouseEvent.CLICK, playClicked);
//unresolved jump
_local1.y = 90;
//unresolved jump
_local1.x = 30;
//unresolved jump
//unresolved jump
addChild(_local1);
//unresolved jump
};
}
private function playClicked(_arg1:Event):void{
//unresolved jump
//unresolved jump
_local0 = (!NULL! + !NULL!);
return;
if (!true){
//unresolved jump
playGameCallback();
//unresolved jump
_arg1.stopPropagation();
//unresolved jump
//unresolved if
trace("LoaderWithAd PlayClicked");
//unresolved jump
};
}
private function goToMainSite(_arg1:Event=null):void{
//unresolved jump
//unresolved jump
_arg1 = !NULL!;
return;
//unresolved jump
_local0 = ((!NULL! * !NULL!) - !NULL!);
if (!!NULL!){
navigateToURL(new URLRequest(DeployConstants.MAIN_SITE_URL));
//unresolved jump
trace("LoaderWithAd goToMainSite");
//unresolved jump
};
}
override public function setProgress(_arg1:Number):void{
//unresolved jump
//unresolved jump
return;
if (!true){
_loadingIndicator.setProgress(_arg1);
//unresolved jump
//unresolved if
showPlayButton();
//unresolved jump
};
}
//unresolved jump
//unresolved jump
return;
if (!true){
SignPost = LoaderWithAd_SignPost;
//unresolved jump
Background = LoaderWithAd_Background;
//unresolved jump
};
}
//unresolved jump
//unresolved jump
//unresolved jump
([OP_NEWCLASS ClassInfo:6 base:LoaderCover] < this).LoaderWithAd = !NULL!;
}//package
Section 38
//LoaderWithAd_Background (LoaderWithAd_Background)
package {
import mx.core.*;
public class LoaderWithAd_Background extends BitmapAsset {
public function LoaderWithAd_Background(){
//unresolved jump
super();
return;
}
}
//unresolved jump
//unresolved jump
//unresolved jump
_local0 = -((((((((~(((( | ??getglobalscope
) >> !NULL!) === NaN)) % !NULL!) + 1) <= !NULL!) >= !NULL!) <= [OP_NEWCLASS ClassInfo:23 base:BitmapAsset]) >= !NULL!) - 1));
false.LoaderWithAd_Background = !NULL!;
}//package
Section 39
//LoaderWithAd_SignPost (LoaderWithAd_SignPost)
package {
import mx.core.*;
import flash.utils.*;
public class LoaderWithAd_SignPost extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function LoaderWithAd_SignPost(){
//unresolved jump
//unresolved jump
_local0 = (!NULL! - !NULL!);
return;
if (!true){
//unresolved jump
_local0 = -((5180 > ~(20)));
(((!NULL! ^ !NULL!) + 1) - 1).initialHeight = (arguments / ~());
//unresolved jump
initialWidth = (4400 / 20);
//unresolved jump
super();
//unresolved jump
//unresolved jump
((!NULL! | !NULL!) - !NULL!);
dataClass = LoaderWithAd_SignPost_dataClass;
//unresolved jump
};
}
override public function get movieClipData():ByteArray{
//unresolved jump
if (_local2 == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
//unresolved jump
((!NULL! >= (!NULL! ^ )) + 1).bytes = null;
}
//unresolved jump
//unresolved jump
//unresolved jump
((((((((((( >> !NULL!) <= NaN) == !NULL!) >> !NULL!) * !NULL!) >> !NULL!) + !NULL!) | !NULL!) >= !NULL!) + [OP_NEWCLASS ClassInfo:19 base:MovieClipLoaderAsset]) > (((((((((( >> !NULL!) <= NaN) == !NULL!) >> !NULL!) * !NULL!) >> !NULL!) + !NULL!) | !NULL!) >= !NULL!) + [OP_NEWCLASS ClassInfo:19 base:MovieClipLoaderAsset])).LoaderWithAd_SignPost = !NULL!;
}//package
Section 40
//LoaderWithAd_SignPost_dataClass (LoaderWithAd_SignPost_dataClass)
package {
import mx.core.*;
public class LoaderWithAd_SignPost_dataClass extends ByteArrayAsset {
public function LoaderWithAd_SignPost_dataClass(){
//unresolved jump
super();
return;
}
}
//unresolved jump
}//package
Section 41
//LoaderWithoutAd (LoaderWithoutAd)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class LoaderWithoutAd extends LoaderCover {
private var _loadingIndicator:LoadingIndicator;
private static const SignPost:Class;
private static const Background:Class;
public function LoaderWithoutAd(){
//unresolved jump
super();
var _local1:DisplayObject = new Background();
//unresolved jump
_local1.addEventListener(MouseEvent.CLICK, goToMainSite);
if (!true){
this.addEventListener(MouseEvent.CLICK, goToMainSite);
//unresolved jump
addChild(_local1);
//unresolved jump
Bitmap(_local1).smoothing = true;
//unresolved jump
};
var _local2:DisplayObject = new SignPost();
//unresolved jump
return;
if (!true){
//unresolved jump
//unresolved nextvalue or nextname.scrollRect = !NULL!;
//unresolved jump
addChild(_loadingIndicator);
//unresolved jump
_loadingIndicator.scaleY = 1.2;
//unresolved jump
_loadingIndicator.scaleX = 1.2;
//unresolved jump
_loadingIndicator.y = 40;
//unresolved jump
_loadingIndicator.x = 190;
//unresolved jump
_loadingIndicator = new LoadingIndicator(12644607);
//unresolved jump
_local2.addEventListener(MouseEvent.CLICK, goToMainSite);
//unresolved jump
addChild(_local2);
//unresolved jump
_local2.scaleY = 1.4;
//unresolved jump
_local2.scaleX = 1.4;
//unresolved jump
_local2.y = 130;
//unresolved jump
//unresolved jump
_local2 = !NULL!;
_local2.x = 127;
//unresolved jump
};
}
private function goToMainSite(_arg1:Event=null):void{
//unresolved jump
((( % !NULL!) > -(( % !NULL!))) * !NULL!).navigateToURL(new URLRequest(DeployConstants.MAIN_SITE_URL));
return;
}
override public function setProgress(_arg1:Number):void{
//unresolved jump
//unresolved jump
return;
if (!true){
_loadingIndicator.setProgress(_arg1);
//unresolved jump
//unresolved jump
//unresolved if
playGameCallback();
//unresolved jump
//unresolved jump
//unresolved if
((((//unresolved nextvalue or nextname is !NULL!) < -((_arg1 >= 100))) as typeof(_local3)) instanceof !NULL!);
//unresolved jump
};
}
//unresolved jump
//unresolved jump
return;
if (!true){
SignPost = LoaderWithoutAd_SignPost;
//unresolved jump
Background = LoaderWithoutAd_Background;
//unresolved jump
};
}
//unresolved jump
//unresolved jump
((!NULL! & !NULL!) - !NULL!);
//unresolved jump
with (([OP_NEWCLASS ClassInfo:8 base:LoaderCover] * !NULL!)) {
(!NULL! === !NULL!);
};
!NULL!.LoaderWithoutAd = !NULL!;
}//package
Section 42
//LoaderWithoutAd_Background (LoaderWithoutAd_Background)
package {
import mx.core.*;
public class LoaderWithoutAd_Background extends BitmapAsset {
public function LoaderWithoutAd_Background(){
//unresolved jump
super();
return;
}
}
//unresolved jump
_local0 = typeof(_local3);
//unresolved jump
_local0 = (//unresolved nextvalue or nextname - !NULL!);
//unresolved jump
(//unresolved nextvalue or nextname ^ !NULL!).LoaderWithoutAd_Background = !NULL!;
}//package
Section 43
//LoaderWithoutAd_SignPost (LoaderWithoutAd_SignPost)
package {
import mx.core.*;
import flash.utils.*;
public class LoaderWithoutAd_SignPost extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function LoaderWithoutAd_SignPost(){
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
(!NULL! / !NULL!).initialHeight = !NULL!;
//unresolved jump
initialWidth = (4400 / 20);
//unresolved jump
super();
//unresolved jump
//unresolved jump
dataClass = LoaderWithoutAd_SignPost_dataClass;
//unresolved jump
};
}
override public function get movieClipData():ByteArray{
//unresolved jump
var _local1 = !(bytes);
_local0 = ((!NULL! << !NULL!) + !NULL!);
if (null == !NULL!){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
//unresolved jump
typeof(false).bytes = null;
}
//unresolved jump
//unresolved jump
//unresolved jump
((typeof((((!NULL! < !NULL!) > !NULL!) & !NULL!)) <= ??getglobalscope
) >>> !NULL!).LoaderWithoutAd_SignPost = ([OP_NEWCLASS ClassInfo:27 base:MovieClipLoaderAsset] <= (arguments as ));
}//package
Section 44
//LoaderWithoutAd_SignPost_dataClass (LoaderWithoutAd_SignPost_dataClass)
package {
import mx.core.*;
public class LoaderWithoutAd_SignPost_dataClass extends ByteArrayAsset {
public function LoaderWithoutAd_SignPost_dataClass(){
//unresolved jump
super();
return;
}
}
//unresolved jump
}//package
Section 45
//LoadingIndicator (LoadingIndicator)
package {
import flash.display.*;
public class LoadingIndicator extends Sprite {
private var _bar:RoundedProgressBar;
private var _label:EasyText;
public function LoadingIndicator(_arg1:uint){
//unresolved jump
//unresolved jump
return;
if (!true){
addChild(_bar);
//unresolved jump
_bar.y = (_label.height + 5);
//unresolved jump
_bar.x = 0;
//unresolved jump
//unresolved jump
((!(-(!NULL!)) * ( <= (_local3 as ??getglobalscope
))) + !NULL!)._bar = new RoundedProgressBar((_label.width + 10), _arg1);
//unresolved jump
addChild(_label);
//unresolved jump
_label.x = 5;
//unresolved jump
_label = new EasyText("Game Loading...", 25, 0xFFFFFF);
//unresolved jump
//unresolved jump
super();
//unresolved jump
};
}
public function setProgress(_arg1:Number):void{
//unresolved jump
_arg1 = typeof(_bar);
_arg1 = !NULL!;
(!NULL! as !NULL!).setProgress(_arg1);
return;
}
}
//unresolved jump
//unresolved jump
//unresolved jump
with ((true % [OP_NEWCLASS ClassInfo:13 base:Sprite])) {
};
(((((((((!NULL! as !NULL!) <= !NULL!) == !NULL!) + 1) + 1) + !NULL!) - 1) >= !NULL!) == !NULL!).LoadingIndicator = !NULL!;
}//package
Section 46
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public function MochiAd(){
//unresolved jump
super();
return;
}
public static function getVersion():String{
return ("2.5");
}
public static function showClickAwayAd(_arg1:Object):void{
//unresolved jump
var _local2 = _local3;
//unresolved jump
return;
if (!true){
doOnEnterFrame(chk);
//unresolved jump
chk["onEnterFrame"] = function ():void{
var _local4:Number;
//unresolved jump
if (!_local3.parent){
delete this.onEnterFrame;
return;
};
var _temp1 = arguments;
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
//unresolved jump
return;
if (!true){
//unresolved if
delete this.onEnterFrame;
//unresolved jump
//unresolved jump
//unresolved if
_local3 = true;
//unresolved jump
_local3 = true;
//unresolved jump
//unresolved jump
//unresolved if
options.ad_failed();
//unresolved jump
chk.started = getTimer();
//unresolved jump
_local3 = true;
//unresolved jump
//unresolved if
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
//unresolved if
//unresolved jump
_local2 = (((//unresolved nextvalue or nextname & !NULL!) == ((_temp1 - 1) + 1)) * !NULL!);
_local0 = !NULL!;
chk.showing = true;
//unresolved jump
};
};
//unresolved jump
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
return;
};
//unresolved jump
var sendHostProgress:Boolean;
//unresolved jump
mc.rpc = function (_arg1:Number, _arg2:Object):void{
//unresolved jump
(-((MochiAd << (clip == _arg1))) >>> !NULL!).rpc(undefined, _arg2, !NULL!);
return;
};
//unresolved jump
mc.adSkipped = options.ad_skipped;
//unresolved jump
mc.adLoaded = options.ad_loaded;
//unresolved jump
mc.unloadAd = function ():void{
MochiAd.unload(clip);
return;
};
//unresolved jump
chk.showing = false;
//unresolved jump
chk.started = getTimer();
//unresolved jump
chk.ad_timeout = ad_timeout;
//unresolved jump
var chk:MovieClip = createEmptyMovieClip(mc, "_mochiad_wait", 3);
//unresolved jump
mc.y = (h * 0.5);
//unresolved jump
mc.x = (w * 0.5);
//unresolved jump
var h:Number = wh[1];
//unresolved jump
//unresolved jump
var _slot7 = (false < true);
//unresolved jump
var wh:Array = MochiAd._getRes(options, clip);
//unresolved jump
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
//unresolved jump
_local0 = !NULL!;
!NULL!;
_local0 = ((typeof(!NULL!) < !NULL!) >> !NULL!);
options.ad_finished();
return;
};
//unresolved jump
var mc:MovieClip = clip._mochiad;
//unresolved jump
options.ad_started();
//unresolved jump
return;
//unresolved jump
options.ad_finished();
//unresolved jump
//unresolved if
options.ad_failed();
//unresolved jump
delete options.ad_timeout;
//unresolved jump
var ad_timeout:Number = options.ad_timeout;
//unresolved jump
var clip:Object = options.clip;
//unresolved jump
var options:Object = MochiAd._parseOptions(options, DEFAULTS);
//unresolved jump
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
return;
}, ad_finished:function ():void{
return;
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
return;
}, 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");
return;
}, ad_skipped:function ():void{
return;
}};
//unresolved jump
options = _arg1;
//unresolved jump
chk = null;
//unresolved jump
mc = null;
//unresolved jump
//unresolved jump
var _slot3:Object;
//unresolved jump
};
}
public static function _isNetworkAvailable():Boolean{
//unresolved jump
return (!((undefined.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
//unresolved jump
var _local2:String = -(((-(_arg1) - !NULL!) << !NULL!)).split("/")[2].split(":")[0];
//unresolved jump
//unresolved jump
return (_local2);
if (!true){
Security.allowInsecureDomain(_local2);
//unresolved jump
Security.allowInsecureDomain("*");
//unresolved jump
Security.allowDomain(_local2);
//unresolved jump
//unresolved jump
var _local3 = (_arg1 - 1);
Security.allowDomain("*");
//unresolved jump
};
}
public static function unload(_arg1:Object):Boolean{
//unresolved jump
if (((NaN.clip) && (_arg1.clip._mochiad))){
var _temp1 = -(_arg1);
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
//unresolved jump
return (true);
//unresolved if
//unresolved jump
delete (((((-(_arg1) < _arg1) is ??getglobalscope
) | !NULL!) >> !NULL!) >= !NULL!)._mochiad;
//unresolved jump
delete _arg1._mochiad_loaded;
//unresolved jump
//unresolved if
_arg1._mochiad.onUnload();
//unresolved jump
//unresolved if
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
//unresolved jump
};
//unresolved jump
_local0 = (-(_arg1) << _arg1._mochiad);
//unresolved if
return (false);
//unresolved jump
}
public static function showInterLevelAd(_arg1:Object):void{
//unresolved jump
_arg1 = (( as !NULL!) | !NULL!);
var _local2 = _arg1;
//unresolved jump
return;
if (!true){
doOnEnterFrame(_slot11);
//unresolved jump
_slot11["onEnterFrame"] = function ():void{
var _local4:Number;
//unresolved jump
//unresolved jump
!ERROR! return;
if (!true){
delete this.fadeFunction;
//unresolved jump
if (!this.parent){
delete this.onEnterFrame;
//unresolved jump
};
};
_local1 = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
//unresolved jump
return;
if (!true){
this.onEnterFrame = this.fadeFunction;
//unresolved jump
//unresolved jump
this.fadeout_start = getTimer();
//unresolved jump
//unresolved jump
_local2 = (-(((//unresolved nextvalue or nextname + 1) == !NULL!)) & !NULL!);
//unresolved if
//unresolved if
delete this.onEnterFrame;
//unresolved jump
//unresolved if
_local3 = true;
//unresolved jump
_local3 = true;
//unresolved jump
//unresolved jump
//unresolved if
options.ad_failed();
//unresolved jump
MochiAd.adShowing(clip);
//unresolved jump
chk.started = getTimer();
//unresolved jump
//unresolved if
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
//unresolved if
//unresolved jump
chk.showing = true;
//unresolved jump
};
};
//unresolved jump
_slot7.rpc = function (_arg1:Number, _arg2:Object):void{
//unresolved jump
((clip * _arg1) << MochiAd).rpc(_arg2, !NULL!, !NULL!);
return;
};
//unresolved jump
_slot7.adjustProgress = function (_arg1:Number):void{
//unresolved jump
_arg1 = mc._mochiad_wait;
var _local2 = (((-(!NULL!) < !NULL!) ^ !NULL!) as !NULL!);
//unresolved jump
return;
if (!true){
//unresolved jump
_local2.ad_msec = ((NaN - ( === null)) - 250);
//unresolved jump
_local2.started = getTimer();
//unresolved jump
_local2.showing = true;
//unresolved jump
//unresolved jump
_local2.server_control = true;
//unresolved jump
};
};
//unresolved jump
_slot7.adSkipped = _slot1.ad_skipped;
//unresolved jump
_slot7.adLoaded = _slot1.ad_loaded;
//unresolved jump
_slot7.unloadAd = function ():void{
MochiAd.unload(clip);
return;
};
//unresolved jump
_slot11.fadeFunction = function ():void{
if (!this.parent){
//unresolved jump
_local0 = !NULL!;
delete _local0.onEnterFrame;
delete _local0.fadeFunction;
return;
};
//unresolved jump
var _local1:Number = (//unresolved nextvalue or nextname * !NULL!);
//unresolved jump
return;
if (!true){
delete this["onEnterFrame"];
//unresolved jump
//unresolved jump
MochiAd.unload(clip);
//unresolved jump
//unresolved if
//unresolved jump
var _local2 = _local3;
(this.parent > _local1).alpha = (!(typeof(this)) * 0.01);
//unresolved jump
};
};
//unresolved jump
_slot11.fadeout_time = _slot6;
//unresolved jump
_slot11.showing = false;
//unresolved jump
_slot11.started = getTimer();
//unresolved jump
_slot11.ad_timeout = _slot5;
//unresolved jump
_slot11.ad_msec = _slot4;
//unresolved jump
var _slot11:MovieClip = createEmptyMovieClip(_slot7, "_mochiad_wait", 3);
//unresolved jump
_slot7.y = (_slot10 * 0.5);
//unresolved jump
_slot7.x = (_slot9 * 0.5);
//unresolved jump
var _slot10:Number = _slot8[1];
//unresolved jump
var _slot9:Number = _slot8[0];
//unresolved jump
_local0 = //unresolved nextvalue or nextname;
//unresolved jump
var _slot8:Array = MochiAd._getRes(_slot1, _slot3);
//unresolved jump
_slot7["onUnload"] = function ():void{
MochiAd._cleanup(mc);
//unresolved jump
options.ad_finished();
return;
};
//unresolved jump
var _slot7:MovieClip = _slot3._mochiad;
//unresolved jump
_slot1.ad_started();
//unresolved jump
return;
//unresolved jump
_slot1.ad_finished();
//unresolved jump
//unresolved if
_slot1.ad_failed();
//unresolved jump
delete _slot1.fadeout_time;
//unresolved jump
var _slot6:Number = _slot1.fadeout_time;
//unresolved jump
delete _slot1.ad_timeout;
//unresolved jump
var _slot5:Number = _slot1.ad_timeout;
//unresolved jump
var _slot4:Number = 11000;
//unresolved jump
var _slot3:Object = _slot1.clip;
//unresolved jump
var _slot1:Object = MochiAd._parseOptions(_slot1, _slot2);
//unresolved jump
var _slot2:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
//unresolved jump
if ((!NULL! is !NULL!)){
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."));
};
return;
}, ad_finished:function ():void{
//unresolved jump
if (((//unresolved nextvalue or nextname instanceof (_local3 is NaN)) is !NULL!)){
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."));
};
return;
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
return;
}, 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");
return;
}, ad_skipped:function ():void{
return;
}};
//unresolved jump
_slot1 = _arg1;
//unresolved jump
_slot11 = null;
//unresolved jump
_slot7 = null;
//unresolved jump
//unresolved jump
var _slot3:Object;
//unresolved jump
};
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
//unresolved jump
null;
var _local4:String = ??getglobalscope
;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
var _local8:int;
var _local9:* = _arg1;
while (//unexpected hasnext2
, //unresolved jump
, (_local3 | _local3)) {
_local4 = //unresolved nextvalue or nextname;
_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"){
//unresolved jump
_local3 = (!(null) << );
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{
//unresolved jump
var _local2 = (true >= !NULL!);
//unresolved jump
DisplayObjectContainer(_slot1).removeChildAt(_slot2);
if (!true){
//unresolved jump
var _slot2:Number = (_slot2 - 1);
//unresolved jump
_slot2 = DisplayObjectContainer(_slot1).numChildren;
//unresolved jump
setTimeout(_slot5, 0);
//unresolved jump
var _slot5:Function = function ():void{
//unresolved jump
var _local1 = ((_local1 >> !NULL!) === NaN);
!ERROR! try {
lc.client = null;
//unresolved jump
close();
} catch(e:Error) {
};
return;
};
//unresolved jump
//unresolved jump
_local2 = (("lc" in _slot1) - 1);
//unresolved if
var _slot4:LocalConnection = _slot1.lc;
//unresolved jump
var _slot1 = _arg1;
//unresolved jump
_slot5 = null;
//unresolved jump
_slot4 = null;
//unresolved jump
var _slot3:String;
//unresolved jump
};
//unresolved if
var _local3:int;
var _local4:* = _slot1;
while (//unexpected hasnext2
, //unresolved jump
, (((!NULL! >= !NULL!) - !NULL!) % undefined)) {
_slot3 = //unresolved nextvalue or nextname;
delete _slot1[_slot3];
};
return;
}
public static function load(_arg1:Object):MovieClip{
//unresolved jump
var _local2 = (((( as !NULL!) == !NULL!) / !NULL!) + 1);
//unresolved jump
if (!MochiAd._isNetworkAvailable()){
return (null);
if (!true){
var _slot3:Object = _slot1.clip;
//unresolved jump
_slot1.mav = MochiAd.getVersion();
//unresolved jump
_slot1.swfv = 9;
//unresolved jump
var _slot1:Object = MochiAd._parseOptions(_slot1, _slot2);
//unresolved jump
var _slot2:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
//unresolved jump
_slot1 = _arg1;
//unresolved jump
var _slot16:Object;
//unresolved jump
var _slot15:URLRequest;
//unresolved jump
var _slot14:Function;
//unresolved jump
var _slot13:Loader;
//unresolved jump
var _slot12:String;
//unresolved jump
var _slot11:LocalConnection;
//unresolved jump
var _slot10:String;
//unresolved jump
var _slot9:String;
//unresolved jump
var _slot8:String;
//unresolved jump
_slot3 = null;
//unresolved jump
};
};
try {
if (_slot3._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 _slot4:Number = _slot1.depth;
//unresolved jump
var _slot7:URLVariables = new URLVariables();
if (!true){
//unresolved if
_slot1.as3_swf = _slot3.loaderInfo.loaderURL;
//unresolved jump
_slot3._mochiad_loaded = true;
//unresolved jump
delete _slot1.id;
//unresolved jump
_slot1.server = (_slot1.server + _slot1.id);
//unresolved jump
_slot1.res = ((_slot6[0] + "x") + _slot6[1]);
//unresolved jump
var _slot6:Array = MochiAd._getRes(_slot1, _slot3);
//unresolved jump
//unresolved jump
var _temp1 = _local2;
_local2 = _slot3;
!ERROR! //unresolved jump
delete _slot1.depth;
//unresolved jump
};
var _local3:int;
var _local4:* = _slot1;
//unresolved jump
if (!(_slot16 is Function)){
_slot7[_slot8] = _slot16;
if (!true){
_slot16 = _slot1[_slot8];
//unresolved jump
//unresolved jump
_slot8 = //unresolved nextvalue or nextname;
//unresolved jump
};
};
//unexpected hasnext2
//unresolved if
//unresolved jump
return (_slot5);
if (!true){
_slot5._mochiad_ctr = _slot13;
//unresolved jump
_slot5.addChild(_slot13);
//unresolved jump
_slot13.load(_slot15);
//unresolved jump
_slot15.data = _slot7;
//unresolved jump
_slot15.method = URLRequestMethod.POST;
//unresolved jump
_slot15.contentType = "application/x-www-form-urlencoded";
//unresolved jump
_slot15 = new URLRequest((_slot9 + ".swf"));
//unresolved jump
_slot13.contentLoaderInfo.addEventListener(Event.UNLOAD, _slot14);
//unresolved jump
_slot14 = function (_arg1:Object):void{
//unresolved jump
//unresolved nextvalue or nextname.removeEventListener(_local3.type, arguments.callee);
MochiAd.unload(clip);
return;
};
//unresolved jump
_slot13 = new Loader();
//unresolved jump
_slot7.st = getTimer();
//unresolved jump
_slot7.lc = _slot12;
//unresolved jump
_slot5.lcName = _slot12;
//unresolved jump
_slot5.lc = _slot11;
//unresolved jump
_slot11.connect(_slot12);
//unresolved jump
_slot11.allowInsecureDomain("*", "localhost");
//unresolved jump
_slot11.allowDomain("*", "localhost");
//unresolved jump
_slot12 = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
//unresolved jump
_slot11.client = _slot5;
//unresolved jump
_slot11 = new LocalConnection();
//unresolved jump
_slot10 = _allowDomains(_slot9);
//unresolved jump
delete _slot7.server;
//unresolved jump
//unresolved jump
!ERROR! //unresolved jump
};
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
//unresolved jump
_local0 = _arg2;
var _local4:Array = false.split(".");
var _local5:Number = 0;
for (;_local5 < (_local4.length - 1);return (undefined), (_arg1 = _arg1[_local4[_local5]]), _local5++) {
//unresolved if
continue;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
//unresolved jump
_local0 = _arg1;
return (((!NULL! + !NULL!) < !NULL!).apply(_arg1[_local4[_local5]], ((_arg1 ^ _arg3) >>> )));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
//unresolved jump
var _local4:MovieClip = new !((( * (true - 1)) & !NULL!)).MovieClip();
//unresolved jump
return (_local4);
if (!true){
_local4["_name"] = _arg2;
//unresolved jump
//unresolved jump
_local0 = null;
_arg1[_arg2] = _local4;
//unresolved jump
//unresolved jump
_arg1.addChild(_local4);
//unresolved jump
//unresolved if
_arg1.addChildAt(_local4, _arg3);
//unresolved jump
//unresolved jump
_arg1 = false;
//unresolved if
(true % true);
//unresolved jump
};
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
//unresolved jump
var _local6:Array = _arg1;
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]);
//unresolved jump
_local0 = (parseFloat(_local6[1]) + 1);
_local5 = (!NULL! << !NULL!);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
//unresolved if
//unresolved jump
_local0 = ~(((((null >> !NULL!) / !NULL!) - 1) >= _arg2.stage));
_local4 = _arg2.stageWidth;
//unresolved jump
}
public static function adShowing(_arg1:Object):void{
//unresolved jump
//unresolved jump
var _local2:* = arguments;
_local2 = (!NULL! | !NULL!);
return;
//unresolved jump
_local0 = -((((//unresolved nextvalue or nextname >>> true) / !NULL!) instanceof !NULL!));
if (!!NULL!){
_arg1.stage.frameRate = 30;
//unresolved jump
_arg1.origFrameRate = _arg1.stage.frameRate;
//unresolved jump
};
}
public static function getValue(_arg1:Object, _arg2:String):Object{
//unresolved jump
var _temp1 = ((_arg2 * !NULL!) > );
_arg2 = ??getglobalscope
;
var _local3:Array = (_temp1 instanceof !NULL!).split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || (((??hasnext
>= !NULL!)[_local4][!NULL!] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
//unresolved jump
return (((!NULL! << !NULL!) < !NULL!)[[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
//unresolved jump
null;
var _local4:Object = -(((((!NULL! as !NULL!) - 1) === !NULL!) | !NULL!));
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
//unresolved jump
_local5 = MochiAd.runMethod((_arg1 | typeof((_arg3.method == ??getglobalscope
))), _arg3.args, !NULL!);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
return;
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
//unresolved jump
var _local4:Array = (typeof((((_arg2 ^ !NULL!) + !NULL!) / )) & !NULL!).split(".");
var _local5:Number = 0;
for (;_local5 < (_local4.length - 1);if ((_local5[!NULL!][!NULL!] == null)){
return;
}, (_arg1 = _arg1[_local4[_local5]]), _local5++) {
//unresolved if
(_arg1[_local4[_local5]] == undefined);
continue;
_arg2 = _arg1;
};
//unresolved jump
typeof(typeof((_arg1 ^ (_local4 >>> _local5))))[(_arg1 - 1)][_arg3] = !NULL!;
return;
}
public static function showPreGameAd(_arg1:Object):void{
//unresolved jump
var _local2 = (((typeof((( >>> !NULL!) >= !NULL!)) === !NULL!) is !NULL!) + 1);
//unresolved jump
return;
if (!true){
doOnEnterFrame(_slot11);
//unresolved jump
_slot11["onEnterFrame"] = function ():void{
var _local11:Number;
//unresolved jump
//unresolved jump
return;
if (!true){
if (!(this.parent.parent)){
delete this["onEnterFrame"];
//unresolved jump
//unresolved if
!(this.parent);
//unresolved jump
};
};
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));
//unresolved jump
return;
if (!true){
this.onEnterFrame = chk.fadeFunction;
//unresolved jump
//unresolved jump
//unresolved jump
this;
((((((!NULL! >= !NULL!) - !NULL!) * !NULL!) + !NULL!) - 1) === !NULL!).fadeout_start = getTimer();
//unresolved jump
//unresolved if
//unresolved if
delete this.onEnterFrame;
//unresolved jump
//unresolved if
complete;
//unresolved jump
//unresolved if
_local4 = true;
//unresolved jump
_local4 = true;
//unresolved jump
//unresolved if
options.ad_failed();
//unresolved jump
//unresolved jump
//unresolved if
(_local3 > chk.ad_timeout);
//unresolved jump
MochiAd.adShowing(clip);
//unresolved jump
chk.started = getTimer();
//unresolved jump
//unresolved if
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
//unresolved if
chk.showing = true;
//unresolved jump
//unresolved if
sendHostProgress = false;
//unresolved jump
//unresolved if
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
//unresolved jump
options.ad_progress(_local10);
//unresolved jump
_local9.scaleX = (_local10 * 0.01);
//unresolved jump
this.last_pcnt = _local10;
//unresolved jump
//unresolved jump
_local3 = ((this.last_pcnt instanceof _local10) / _local1);
_local10 = (Math + 1).max(!NULL!, !NULL!);
//unresolved jump
};
};
//unresolved jump
_slot7.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
return;
};
//unresolved jump
var _slot25:Boolean;
//unresolved jump
_slot7.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
return;
};
//unresolved jump
_slot7.rpcTestFn = function (_arg1:String):Object{
//unresolved jump
"[MOCHIAD rpcTestFn] ".trace(((_arg1 is true) + -(??getglobalscope
)));
return (_arg1);
};
//unresolved jump
_slot7.rpc = function (_arg1:Number, _arg2:Object):void{
//unresolved jump
((clip * _arg1) ^ -(??getglobalscope
)).rpc(MochiAd, _arg2, !NULL!);
return;
};
//unresolved jump
_slot7.adjustProgress = function (_arg1:Number):void{
//unresolved jump
var _local2 = ((mc._mochiad_wait % typeof(((_arg1 + 1) - 1))) - !NULL!);
//unresolved jump
return;
if (!true){
//unresolved jump
((((_local2 << null) >>> !NULL!) >> !NULL!) * !NULL!).ad_msec = _arg1;
//unresolved jump
_local2.started = getTimer();
//unresolved jump
_local2.showing = true;
//unresolved jump
//unresolved jump
_local2.server_control = true;
//unresolved jump
};
};
//unresolved jump
_slot7.adSkipped = _slot1.ad_skipped;
//unresolved jump
_slot7.adLoaded = _slot1.ad_loaded;
//unresolved jump
_slot7.unloadAd = function ():void{
unloaded = true;
//unresolved jump
if (complete){
MochiAd.unload(clip);
};
return;
};
//unresolved jump
//unresolved if
var _slot22:Boolean;
//unresolved jump
//unresolved if
var _slot26:MovieClip = (_slot3.root as MovieClip);
//unresolved jump
_slot3.loaderInfo.addEventListener(Event.COMPLETE, _slot24);
//unresolved jump
var _slot24:Function = function (_arg1:Event):void{
//unresolved jump
(typeof((((_arg1.target > _arg1) ^ !NULL!) & !NULL!)) & !NULL!).removeEventListener(false.type, arguments.callee);
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved if
MochiAd.unload(clip);
//unresolved jump
complete = true;
//unresolved jump
};
};
//unresolved jump
var _slot23:Boolean;
//unresolved jump
_slot22 = false;
//unresolved jump
_slot11.fadeFunction = function ():void{
//unresolved jump
var _local1:Number = (((((~(//unresolved nextvalue or nextname) * !NULL!).getTimer() - this.fadeout_start) / this.fadeout_time) - !NULL!) * !NULL!);
//unresolved jump
return;
//unresolved jump
_local0 = (//unresolved nextvalue or nextname ^ !NULL!);
if (!true){
delete _local0["onEnterFrame"];
//unresolved jump
//unresolved jump
MochiAd.unload(clip);
//unresolved jump
//unresolved if
//unresolved jump
(((((!NULL! | !NULL!) | !NULL!) - //unresolved nextvalue or nextname) % !NULL!) * 0.01).alpha = !NULL!;
//unresolved jump
};
};
//unresolved jump
_slot11.fadeout_time = _slot6;
//unresolved jump
_slot11.last_pcnt = 0;
//unresolved jump
_slot11.showing = false;
//unresolved jump
_slot11.started = getTimer();
//unresolved jump
_slot11.ad_timeout = _slot5;
//unresolved jump
_slot11.ad_msec = _slot4;
//unresolved jump
_slot21.lineTo(0, 0);
//unresolved jump
_slot21.lineTo(0, 10);
//unresolved jump
_slot21.lineTo((_slot9 - 20), 10);
//unresolved jump
_slot21.lineTo((_slot9 - 20), 0);
//unresolved jump
_slot21.moveTo(0, 0);
//unresolved jump
_slot21.lineStyle(0, _slot15, 100);
//unresolved jump
var _slot21:Object = _slot20.graphics;
//unresolved jump
var _slot20:MovieClip = createEmptyMovieClip(_slot12, "_outline", 3);
//unresolved jump
_slot18.scaleX = 0;
//unresolved jump
_slot19.endFill();
//unresolved jump
_slot19.lineTo(0, 0);
//unresolved jump
_slot19.lineTo(0, 10);
//unresolved jump
_slot19.lineTo((_slot9 - 20), 10);
//unresolved jump
_slot19.lineTo((_slot9 - 20), 0);
//unresolved jump
_slot19.moveTo(0, 0);
//unresolved jump
_slot19.beginFill(_slot13);
//unresolved jump
var _slot19:Object = _slot18.graphics;
//unresolved jump
var _slot18:MovieClip = createEmptyMovieClip(_slot12, "_inside", 2);
//unresolved jump
_slot17.endFill();
//unresolved jump
_slot17.lineTo(0, 0);
//unresolved jump
_slot17.lineTo(0, 10);
//unresolved jump
_slot17.lineTo((_slot9 - 20), 10);
//unresolved jump
_slot17.lineTo((_slot9 - 20), 0);
//unresolved jump
_slot17.moveTo(0, 0);
//unresolved jump
_arg1 = !NULL!;
//unresolved jump
_slot17.beginFill(_slot14);
//unresolved jump
var _slot17:Object = _slot16.graphics;
//unresolved jump
var _slot16:MovieClip = createEmptyMovieClip(_slot12, "_outline", 1);
//unresolved jump
delete _slot1.outline;
//unresolved jump
var _slot15:Number = _slot1.outline;
//unresolved jump
delete _slot1.background;
//unresolved jump
var _slot14:Number = _slot1.background;
//unresolved jump
delete _slot1.color;
//unresolved jump
var _slot13:Number = _slot1.color;
//unresolved jump
_slot12.y = (_slot10 - 20);
//unresolved jump
//unresolved jump
_slot12.x = 10;
//unresolved jump
delete _slot1.no_progress_bar;
//unresolved jump
//unresolved if
_slot12.visible = false;
//unresolved jump
var _slot12:MovieClip = createEmptyMovieClip(_slot11, "_mochiad_bar", 4);
//unresolved jump
_slot11.y = (_slot10 * -0.5);
//unresolved jump
_slot11.x = (_slot9 * -0.5);
//unresolved jump
var _slot11:MovieClip = createEmptyMovieClip(_slot7, "_mochiad_wait", 3);
//unresolved jump
_slot7.y = (_slot10 * 0.5);
//unresolved jump
_slot7.x = (_slot9 * 0.5);
//unresolved jump
var _slot10:Number = _slot8[1];
//unresolved jump
var _slot9:Number = _slot8[0];
//unresolved jump
var _slot8:Array = MochiAd._getRes(_slot1, _slot3);
//unresolved jump
_slot7["onUnload"] = function ():void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
_local2;
(undefined + 1);
setTimeout(_slot1, 100);
//unresolved jump
_slot1 = function ():void{
options.ad_finished();
return;
};
//unresolved jump
MochiAd._cleanup(mc);
//unresolved jump
};
};
//unresolved jump
var _slot7:MovieClip = _slot3._mochiad;
//unresolved jump
_slot1.ad_started();
//unresolved jump
return;
//unresolved jump
_slot1.ad_finished();
//unresolved jump
//unresolved if
_slot1.ad_failed();
//unresolved jump
delete _slot1.fadeout_time;
//unresolved jump
var _slot6:Number = _slot1.fadeout_time;
//unresolved jump
delete _slot1.ad_timeout;
//unresolved jump
var _slot5:Number = _slot1.ad_timeout;
//unresolved jump
var _slot4:Number = 11000;
//unresolved jump
var _slot3:Object = _slot1.clip;
//unresolved jump
return;
//unresolved jump
setTimeout(_slot1.ad_finished, 100);
//unresolved jump
//unresolved if
_slot1.ad_started();
//unresolved jump
var _slot1:Object = MochiAd._parseOptions(_slot1, _slot2);
//unresolved jump
var _slot2: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{
//unresolved jump
var _temp1 = this.clip;
_local0 = (MovieClip + 1);
if ((((_temp1 | null) <= !NULL!) is !NULL!)){
_local0.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."));
};
return;
}, ad_finished:function ():void{
//unresolved jump
if ((this.clip is (MovieClip | (_local3 * (_local3 - 1))))){
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."));
};
return;
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
return;
}, 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");
return;
}, ad_skipped:function ():void{
return;
}, ad_progress:function (_arg1:Number):void{
return;
}};
//unresolved jump
_slot1 = _arg1;
//unresolved jump
_slot26 = null;
//unresolved jump
_slot25 = false;
//unresolved jump
_slot23 = false;
//unresolved jump
_slot22 = false;
//unresolved jump
_slot11 = null;
//unresolved jump
_slot7 = null;
//unresolved jump
//unresolved jump
var _slot3:Object;
//unresolved jump
};
}
public static function showPreloaderAd(_arg1:Object):void{
//unresolved jump
//unresolved jump
return;
if (!true){
MochiAd.showPreGameAd(_arg1);
//unresolved jump
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
//unresolved jump
};
}
public static function showTimedAd(_arg1:Object):void{
//unresolved jump
//unresolved jump
_local0 = !NULL!;
return;
if (!true){
MochiAd.showInterLevelAd(_arg1);
//unresolved jump
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
//unresolved jump
};
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
//unresolved jump
(!NULL! + ( + NaN));
//unresolved jump
return;
if (!true){
//unresolved jump
_slot1.addEventListener(Event.ENTER_FRAME, _slot2);
//unresolved jump
_slot2 = function (_arg1:Object):void{
//unresolved jump
var _local2 = (typeof(!NULL!) >> !NULL!);
//unresolved if
mc.onEnterFrame();
//unresolved jump
};
//unresolved jump
//unresolved jump
_slot1 = _arg1;
//unresolved jump
};
}
}
//unresolved jump
[OP_NEWCLASS ClassInfo:20 base:Object].MochiAd = !NULL!;
}//package
Section 47
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public function MochiBot(){
//unresolved jump
super();
return;
}
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
//unresolved jump
(Security - !NULL!);
if (((((!NULL! ^ !NULL!) + !NULL!) * !NULL!) - 1).sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
//unresolved jump
Security.allowInsecureDomain("core.mochibot.com");
if (!true){
Security.allowDomain("core.mochibot.com");
//unresolved jump
_arg1.addChild(_local3);
//unresolved jump
};
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
//unresolved jump
_local5["fv"] = "9";
if (!true){
_local5["mv"] = "8";
//unresolved jump
_local5["swfid"] = _arg2;
//unresolved jump
_arg1 = !NULL!;
//unresolved jump
_local5["v"] = Capabilities.version;
//unresolved jump
};
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
//unresolved jump
return (_local3);
if (!true){
_local8.load(_local7);
//unresolved jump
//unresolved jump
_local0 = _arg1;
_local3.addChild(_local8);
//unresolved jump
};
}
}
//unresolved jump
//unresolved jump
//unresolved jump
(typeof((//unresolved nextvalue or nextname is !NULL!)) + //unresolved nextvalue or nextname).MochiBot = !NULL!;
}//package
Section 48
//PlayButton (PlayButton)
package {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class PlayButton extends Sprite {
private const _TOP_PAD:Number = 10;
private const _RIGHT_PAD:Number = 20;
private const _LEFT_PAD:Number = 20;
private const _BOTTOM_PAD:Number = 10;
private var _border:Array;
private var _colors:Object;
private var _label:EasyText;
public function PlayButton(){
//unresolved jump
//unresolved jump
return;
if (!true){
this.filters = [new DropShadowFilter(0, 0, 0, 0.15, 10, 10)];
//unresolved jump
draw(_colors.up);
//unresolved jump
_label.y = _TOP_PAD;
//unresolved jump
_label.x = _LEFT_PAD;
//unresolved jump
addChild(_label);
//unresolved jump
_label = new EasyText("Play Game", 40, _colors.up.border);
//unresolved jump
addEventListener(MouseEvent.ROLL_OVER, onRollOver);
//unresolved jump
addEventListener(MouseEvent.ROLL_OUT, onRollOut);
//unresolved jump
//unresolved jump
( == true).addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
//unresolved jump
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
//unresolved jump
super();
//unresolved jump
_border = [[0.5, 0], [70, 3], [99, 0], [98, 70], [100, 100], [40, 98], [0, 99], [1, 60]];
//unresolved jump
//unresolved jump
_local0 = //unresolved nextvalue or nextname;
{:typeof(undefined), typeof(!(( + 1))):, up:{{border:13925397, fill:0xFFFFFF}:"over", {border:32615, fill:13434870}:(("down" / ("border" | 0xFFFFFF)) - 1)}}._colors = !NULL!;
//unresolved jump
};
}
private function strokeBox():void{
//unresolved jump
_local0 = null;
var _local4:Array = !(((((!NULL! === !NULL!) + 1) & !NULL!) + 1));
var _local1:Number = (((_LEFT_PAD + _label.width) + _RIGHT_PAD) / 100);
var _local2:Number = (((_TOP_PAD + _label.height) + _BOTTOM_PAD) / 100);
var _local3:Array = _border[(_border.length - 1)];
//unresolved jump
(//unresolved nextvalue or nextname >> NaN).moveTo((_local3[0] * _local1), (_local3[1] * _local2));
var _local5:int;
var _local6:* = _border;
while (//unexpected hasnext2
, //unresolved jump
, (_local0 = (((??getglobalscope
>> NaN) - 1) === !NULL!)), !NULL!) {
_local4 = //unresolved nextvalue or nextname;
graphics.lineTo((_local4[0] * _local1), (_local4[1] * _local2));
};
return;
}
private function onMouseUp(_arg1:MouseEvent):void{
//unresolved jump
_colors.up.draw(!NULL!);
return;
}
private function draw(_arg1:Object):void{
//unresolved jump
//unresolved jump
return;
if (!true){
strokeBox();
//unresolved jump
graphics.lineStyle(2, _arg1.border);
//unresolved jump
_arg1 = !((((!NULL! instanceof !NULL!) + ??getglobalscope
) - 1));
??getglobalscope
;
//unresolved jump
graphics.endFill();
//unresolved jump
strokeBox();
//unresolved jump
graphics.beginFill(_arg1.fill);
//unresolved jump
graphics.clear();
//unresolved jump
//unresolved jump
var _local2 = (_label >= _label);
_arg1.border.textColor = !NULL!;
//unresolved jump
};
}
private function onMouseDown(_arg1:MouseEvent):void{
//unresolved jump
undefined.draw(_colors.down);
return;
}
private function onRollOver(_arg1:MouseEvent):void{
//unresolved jump
_arg1 = (((!() == !NULL!) + !NULL!) - !NULL!);
_colors.over.draw(!NULL!);
return;
}
private function onRollOut(_arg1:MouseEvent):void{
//unresolved jump
null.draw(_colors.up);
return;
}
}
//unresolved jump
var _local1:*;
//unresolved jump
//unresolved jump
(((~(!NULL!) instanceof !NULL!) | [OP_NEWCLASS ClassInfo:24 base:Sprite]) << !NULL!);
with (!NULL!) {
};
((!NULL! - !NULL!) - 1).PlayButton = !NULL!;
}//package
Section 49
//RoundedProgressBar (RoundedProgressBar)
package {
import flash.display.*;
import flash.filters.*;
public class RoundedProgressBar extends Sprite {
private var _totalWidth:Number;// = 100
private var _height:Number;// = 7
private var _borderThickness:Number;// = 1.4
private var _scaledBar:Sprite;
public function RoundedProgressBar(_arg1:Number, _arg2:uint){
//unresolved jump
//unresolved jump
//unresolved nextvalue or nextname;
graphics.endFill();
if (!true){
graphics.drawRoundRectComplex(0, 0, (_height / 2), _height, (_height / 2), 0, (_height / 2), 0);
//unresolved jump
graphics.beginFill(0xFFFFFF);
//unresolved jump
_totalWidth = _arg1;
//unresolved jump
addChild(_scaledBar);
//unresolved jump
_scaledBar.x = (_height / 2);
//unresolved jump
_scaledBar.scaleY = _height;
//unresolved jump
//unresolved jump
(0 <= 1);
(!NULL! << !NULL!).drawRect(_scaledBar.graphics, ((0 as (NaN + 1)) + 1), ((0 as (NaN + 1)) + 1), !NULL!);
//unresolved jump
_scaledBar.graphics.beginFill(0xFFFFFF);
//unresolved jump
_scaledBar = new Sprite();
//unresolved jump
super();
//unresolved jump
};
var _local3:Sprite = new Sprite();
//unresolved jump
return;
if (!true){
this.filters = [new GlowFilter(0xFFFFFF, 0.3)];
//unresolved jump
setProgress(0);
//unresolved jump
addChild(_local3);
//unresolved jump
_local3.graphics.drawRoundRect(0, 0, _totalWidth, _height, _height);
//unresolved jump
//unresolved jump
((!NULL! << !NULL!) >> (_local3.graphics < _borderThickness)).lineStyle(this, _arg2, 1, true);
//unresolved jump
};
}
public function setProgress(_arg1:Number):void{
//unresolved jump
false.scaleX = ((_arg1 / 100) * (_totalWidth - _height));
return;
}
}
//unresolved jump
//unresolved jump
//unresolved jump
var _temp1 = ((( as (NaN + 1)) < (this - typeof((NaN + 1)))) + !NULL!);
_local0 = ([OP_NEWCLASS ClassInfo:32 base:Sprite] % (undefined as undefined));
_temp1.RoundedProgressBar = _local0;
}//package
Section 50
//StandAloneLoader (StandAloneLoader)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class StandAloneLoader extends Loader {
public var shouldShowShareButton:Boolean;
public var progressFunction:Function;
public var buttonShown:Boolean;// = true
public function StandAloneLoader(){
//unresolved jump
_local0 = (this ^ !NULL!);
super();
return;
}
private function serverFromURL(_arg1:String):String{
//unresolved jump
var _temp1 = _arg1;
_arg1 = undefined;
var _local2:Array = null.split("/");
return (_local2[2]);
}
public function onSWFProgress(_arg1:ProgressEvent):void{
//unresolved jump
if (//unresolved nextvalue or nextname != null){
progressFunction(((50 * _arg1.bytesLoaded) / _arg1.bytesTotal));
};
return;
}
public function onLoadingComplete(_arg1:Event):void{
//unresolved jump
if (true != null){
progressFunction(50);
};
return;
}
public function loadGame(_arg1:int, _arg2:Boolean):void{
//unresolved jump
var _local3 = _arg1;
_local3 = ((( + 1) >> !NULL!) < true).serverFromURL(DeployConstants.REAL_STANDALONE_PLAYER_URL);
//unresolved jump
shouldShowShareButton = _arg2;
if (!true){
Security.allowInsecureDomain(_local3);
//unresolved jump
Security.allowDomain(_local3);
//unresolved jump
};
var _local4:String = ((DeployConstants.REAL_STANDALONE_PLAYER_URL + "?gameID=") + _arg1);
//unresolved jump
return;
//unresolved jump
if (!(((!((true > !NULL!)) >= true) is !NULL!) - 1)){
this.load(new URLRequest(_local4));
//unresolved jump
this.name = "ZZPMiniLoader";
//unresolved jump
this.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadingComplete);
//unresolved jump
this.contentLoaderInfo.sharedEvents.addEventListener(ProgressEvent.PROGRESS, onAssetProgress);
//unresolved jump
this.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onSWFProgress);
//unresolved jump
//unresolved jump
((((//unresolved nextvalue or nextname + 1) <= _arg1) % !NULL!) + _local4).debugWrite(!NULL!);
//unresolved jump
};
}
public function onAssetProgress(_arg1:ProgressEvent):void{
//unresolved jump
var _local2:EventDispatcher = (null as typeof(((true + 1) == NaN)));
//unresolved jump
trace("Hiding share button.");
if (!true){
//unresolved if
buttonShown = false;
//unresolved jump
//unresolved jump
//unresolved if
!(((((shouldShowShareButton - !NULL!) - 1) + 1) | !NULL!));
//unresolved jump
};
_local2 = this.contentLoaderInfo.sharedEvents;
_local2.dispatchEvent(new HideShareButtonEvent());
//unresolved jump
(( / typeof((50 as ((50 * _arg1.bytesLoaded) << _arg1.bytesTotal)))) + !NULL!).progressFunction(!NULL!);
return;
}
}
//unresolved jump
_local0 = (this + ??getglobalscope
);
_local0 = _local3;
//unresolved jump
//unresolved jump
var _local1 = (((!NULL! is //unresolved nextvalue or nextname) + 1) + ([OP_NEWCLASS ClassInfo:7 base:Loader] as undefined));
(!NULL! & !NULL!).StandAloneLoader = !NULL!;
}//package
Section 51
//TopScoreForwarder (TopScoreForwarder)
package {
import flash.display.*;
import flash.events.*;
import zzpEngine.*;
import com.kongregate.as3.client.*;
public class TopScoreForwarder {
private var rootSprite:Sprite;
private var onKongregate:Boolean;
private var kongregate:KongregateAPI;
public function TopScoreForwarder(_arg1:Sprite, _arg2:Loader, _arg3:Boolean){
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
trace("TopScoreForwarder contentLoaderInfo is null");
//unresolved jump
//unresolved jump
trace("TopScoreForwarder sharedEvents is null");
//unresolved jump
_arg2.contentLoaderInfo.sharedEvents.addEventListener(GameWonEvent.GAME_WON_EVENT, submitGameWon);
//unresolved jump
_arg2.contentLoaderInfo.sharedEvents.addEventListener(LevelCompletedEvent.LEVEL_COMPLETED_EVENT, submitLevelCompleted);
//unresolved jump
//unresolved if
//unresolved if
//unresolved jump
NaN.sharedEvents.addEventListener(TopScoreEvent.REPORT_SCORE, submitTopScore);
//unresolved jump
return;
//unresolved jump
//unresolved if
trace("TopScoreForwarder loader null");
//unresolved jump
//unresolved jump
trace("TopScoreForwarder container is null");
//unresolved jump
//unresolved if
_arg1.addChild(kongregate);
//unresolved jump
//unresolved if
kongregate = new KongregateAPI();
//unresolved jump
onKongregate = _arg3;
//unresolved jump
rootSprite = _arg1;
//unresolved jump
trace("TopScoreForwarder constructor");
//unresolved jump
//unresolved jump
super();
//unresolved jump
};
}
public function submitTopScore(_arg1:Event):void{
//unresolved jump
_arg1.trace("TopScoreForwarder submitTopScore called");
var _local2:Object = _arg1;
for (;_local2.pointValue == null;//unresolved if
, kongregate.stats.submit("HighScore-Normal", _local2.pointValue), continue) {
return;
//unresolved if
continue;
_local0 = onKongregate;
var _local3:String = ((??hasnext
as !NULL!) ^ !NULL!);
};
//unresolved jump
??hasnext
.trace(( + (((("TopScoreForwarder.as submitTopScore: " | _local2) + 1) - NaN) as false).pointValue));
//unresolved jump
}
public function submitGameWon(_arg1:Event):void{
//unresolved jump
//unresolved jump
return;
if (!true){
//unresolved jump
//unresolved if
kongregate.stats.submit("GameCompleted", 1);
//unresolved jump
trace("TopScoreForwarder submitGameWon called");
//unresolved jump
};
}
public function submitLevelCompleted(_arg1:Event):void{
//unresolved jump
!((??hasnext
+ _arg1)).trace("TopScoreForwarder submitLevelCompleted called");
var _local2:Object = _arg1;
for (;_local2.levelCompleted == null;//unresolved if
, kongregate.stats.submit("LevelCompleted", _local2.levelCompleted), continue) {
return;
//unresolved if
continue;
};
//unresolved jump
(!NULL!.levelCompleted + !NULL!).trace(!NULL!);
//unresolved jump
}
}
//unresolved jump
}//package