Section 1
//A3 (b3.A3)
package b3 {
import flash.events.*;
import flash.display.*;
import flash.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class A3 {
public static var failed:Boolean;
public function A3():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function getVersion():String{
return ("2.1");
}
public static function doOnEnterFrame(_arg1:Object):void{
var mc = _arg1;
var f = function (_arg1:Object):void{
if (!((mc.onEnterFrame == null))){
mc.onEnterFrame();
} else {
mc.removeEventListener(Event.ENTER_FRAME, f);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
public static function a22(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4 = (new MovieClip() as MovieClip);
if (false){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
Reflect.setField(_arg1, _arg2, _local4);
Reflect.setField(_local4, "_name", _arg2);
return (_local4);
}
public static function a92(_arg1:Object):void{
var _local20:* = null;
var options = _arg1;
var _local2:* = {clip:Lib.current, a169:3000, a104:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, a157:16777161, outline:13994812, a170:function ():void{
Lib.current.stop();
}, a119:function ():void{
Lib.current.play();
}};
(null as void);
options = A3.a99(options, _local2);
var clip:* = options.clip;
var _local3:Number = 11000;
var _local4:Number = options.a169;
options.a169 = null;
var _local5:Number = options.a104;
options.a104 = null;
if ((A3.load(options) == (null as MovieClip))){
options.a119();
return;
};
options.a170();
var mc:* = clip._mochiad;
var t = new Timer(100, 1);
mc.onUnload = function ():void{
var _local1:* = function (_arg1:Object=undefined):void{
options.a119();
};
t.addEventListener(TimerEvent.TIMER, _local1);
t.start();
};
var _local6 = (A3.getRes(options, clip) as Array);
var _local7:Number = _local6[0];
var _local8:Number = _local6[1];
mc.x = (_local7 * 0.5);
mc.y = (_local8 * 0.5);
var chk = A3.a22(mc, "_mochiad_wait", 3);
chk.x = (_local7 * -(0.5));
chk.y = (_local8 * -(0.5));
var _local9 = (A3.a22(chk, "_mochiad_bar", 4) as MovieClip);
_local9.x = 10;
_local9.y = (_local8 - 20);
var _local10:Number = options.color;
options.color = null;
var _local11:Number = options.a157;
options.a157 = null;
var _local12:Number = options.outline;
options.outline = null;
var _local13 = (A3.a22(_local9, "_outline", 1) as MovieClip);
var _local14:* = _local13.graphics;
_local14.beginFill(_local11);
_local14.moveTo(0, 0);
_local14.lineTo((_local7 - 20), 0);
_local14.lineTo((_local7 - 20), 10);
_local14.lineTo(0, 10);
_local14.lineTo(0, 0);
_local14.endFill();
var _local15 = (A3.a22(_local9, "_inside", 2) as MovieClip);
var _local16:* = _local15.graphics;
_local16.beginFill(_local10);
_local16.moveTo(0, 0);
_local16.lineTo((_local7 - 20), 0);
_local16.lineTo((_local7 - 20), 10);
_local16.lineTo(0, 10);
_local16.lineTo(0, 0);
_local16.endFill();
_local15.scaleX = 0;
var _local17 = (A3.a22(_local9, "_outline", 3) as MovieClip);
var _local18:* = _local17.graphics;
_local18.lineStyle(0, _local12, 100);
_local18.moveTo(0, 0);
_local18.lineTo((_local7 - 20), 0);
_local18.lineTo((_local7 - 20), 10);
_local18.lineTo(0, 10);
_local18.lineTo(0, 0);
chk.ad_msec = _local3;
chk.a169 = _local4;
chk.started = Lib.getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.a104 = _local5;
chk.a110 = function ():void{
var _local1:Number = (100 * (1 - ((Lib.getTimer() - chk.a91) / chk.a104)));
if ((_local1 > 0)){
chk.parent.alpha = (_local1 * 0.01);
} else {
A3.unload(clip);
chk.onEnterFrame = null;
};
};
var complete:Boolean;
var unloaded:Boolean;
var _local19:* = function (_arg1:Event):void{
complete = true;
if (unloaded){
A3.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, _local19);
if (Std.is(clip.root, MovieClip)){
_local20 = clip.root;
if ((_local20.framesLoaded >= _local20.totalFrames)){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
A3.unload(clip);
};
};
mc.a67 = function (_arg1:Number):void{
var _local2:* = mc._mochiad_wait;
_local2.a61 = true;
_local2.started = Lib.getTimer();
_local2.ad_msec = _arg1;
};
chk.onEnterFrame = function ():void{
var _local11:Number;
if (!(chk.parent.parent)){
chk.onEnterFrame = null;
return;
};
var _local1:* = chk.parent.parent.root;
var _local2:* = chk.parent._mochiad_ctr;
var _local3:Number = (Lib.getTimer() - chk.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:* = chk._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(_local7, _local8));
_local10 = Math.max(chk.last_pcnt, _local10);
chk.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
if (!(chk.showing)){
_local11 = _local2.loaderInfo.bytesTotal;
if (!(_local11 > 0)){
true;
};
if (true){
chk.showing = true;
chk.started = Lib.getTimer();
} else {
if ((_local3 > chk.a169)){
_local4 = true;
};
};
};
if (!(_local3 > chk.ad_msec)){
true;
};
if (true){
_local4 = true;
};
if (complete){
false;
};
if (false){
if (chk.a61){
chk.onEnterFrame = null;
} else {
chk.a91 = Lib.getTimer();
chk.onEnterFrame = chk.a110;
};
};
};
A3.doOnEnterFrame(chk);
}
public static function load(_arg1:Object):MovieClip{
var _local8:* = null;
var _local9:* = null;
var _local2:* = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
A3.failed = false;
_arg1 = A3.a99(_arg1, _local2);
_arg1.swfv = 9;
_arg1.mav = A3.getVersion();
var _local3:* = _arg1.clip;
if (!(!((Security.sandboxType == "localWithFile")))){
return ((null as MovieClip));
};
if (!((_local3._mochiad_loaded == null))){
false;
};
if (false){
return ((null as MovieClip));
};
var _local4:Number = _arg1.depth;
_arg1.depth = null;
var mc = A3.a22(_local3, "_mochiad", _local4);
var _local5 = (A3.getRes(_arg1, _local3) as Array);
_arg1.res = ((((_local5[0] + "x") as String) + _local5[1]) as String);
_arg1.server = (_arg1.server + _arg1.id);
_arg1.id = null;
_local3._mochiad_loaded = true;
var _local6:* = new URLVariables();
var _local7:* = Reflect.fields(_arg1).iterator();
do {
//unresolved if
_local8 = _local7.next();
_local9 = Reflect.field(_arg1, _local8);
if (!(Reflect.isFunction(_local9))){
Reflect.setField(_local6, _local8, _local9);
};
} while (true);
if (!((_local3.loaderInfo.loaderURL.indexOf("http") == 0))){
_arg1.no_page = true;
};
var _local10 = (_local6.server as String);
_local6.server = null;
var _local11 = (A3.allowDomains(_local10) as String);
mc.onEnterFrame = function ():void{
if (!(mc._mochiad_ctr)){
mc.onEnterFrame = null;
A3.unload(mc.parent);
};
};
A3.doOnEnterFrame(mc);
var _local12 = (new LocalConnection() as LocalConnection);
_local12.client = mc;
var _local13 = (["", Math.floor((Date.now() as Date).getTime()), Math.floor((Math.random() * 999999))].join("_") as String);
_local12.allowDomain("*", "localhost");
_local12.allowInsecureDomain("*", "localhost");
_local12.connect(_local13);
mc.lc = _local12;
_local6.lc = _local13;
_local6.st = Lib.getTimer();
var _local14 = (new Loader() as Loader);
_local7 = function (_arg1:Object):void{
var _local2:* = true;
mc._mochiad_ctr_failed = _local2;
A3.failed = _local2;
};
_local14.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _local7);
var _local15 = (new URLRequest(((_local10 + ".swf") as String)) as URLRequest);
_local15.contentType = "application/x-www-form-urlencoded";
_local15.method = URLRequestMethod.POST;
_local15.data = _local6;
var _local16 = (new LoaderContext(true) as LoaderContext);
_local14.load(_local15, _local16);
mc.addChild(_local14);
mc._mochiad_ctr = _local14;
return (mc);
}
public static function unload(_arg1:Object):Boolean{
if (_arg1.clip){
false;
};
if (false){
_arg1 = _arg1.clip;
};
if (!(_arg1._mochiad)){
return (false);
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
_arg1.removeChild(_arg1._mochiad);
_arg1._mochiad_loaded = null;
_arg1._mochiad = null;
return (true);
}
public static function allowDomains(_arg1:String):String{
var _local2 = (((_arg1.split("/")[2] as String).split(": ")[0] as String) as String);
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function getRes(_arg1:Object, _arg2:Object):Array{
var _local6 = (null as Array);
var _local3:* = _arg2.getBounds(_arg2.root);
var _local4:int;
var _local5:int;
if (!((Type.typeof(_arg1.res) == ValueType.TUnknown))){
_local6 = (_arg1.res.split("x") as Array);
_local4 = Std.parseInt((_local6[0] as String));
_local5 = Std.parseInt((_local6[1] as String));
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if (!(_local4 == 0)){
true;
};
if (true){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function a99(_arg1:Object, _arg2:Object):Object{
var _local5:* = null;
var _local6:* = null;
var _local7 = (null as Array);
var _local8:int;
var _local9:int;
var _local10:int;
var _local11 = (null as Array);
var _local3:* = Reflect.empty();
_local5 = Reflect.fields(_arg2).iterator();
do {
//unresolved if
_local6 = _local5.next();
Reflect.setField(_local3, _local6, Reflect.field(_arg2, _local6));
} while (true);
if (_arg1){
_local5 = Reflect.fields(_arg1).iterator();
do {
//unresolved if
_local6 = _local5.next();
Reflect.setField(_local3, _local6, Reflect.field(_arg1, _local6));
} while (true);
};
_arg1 = Reflect.field(_local3, "clip.loaderInfo.parameters.mochiad_options");
if (_arg1){
_local7 = (_arg1.split("&") as Array);
_local8 = 0;
_local9 = _local7.length;
do {
//unresolved if
_local10 = _local8;
_local8++;
_local11 = ((_local7[_local10] as String).split("=") as Array);
Reflect.setField(_local3, StringTools.htmlUnescape((_local11[0] as String)), StringTools.htmlUnescape((_local11[1] as String)));
} while (true);
};
return (_local3);
}
public static function a58(_arg1:Object):void{
A3.a92(_arg1);
}
public static function a135(_arg1:Object):void{
A3.a50(_arg1);
}
public static function a50(_arg1:Object):void{
var options = _arg1;
var _local2:* = {a169:2000, a104:250, regpt:"o", method:"showTimedAd", a170:function ():void{
this.clip.stop();
}, a119:function ():void{
this.clip.play();
}};
options = A3.a99(options, _local2);
var clip:* = options.clip;
var _local3:int = 11000;
var _local4:* = options.a169;
Reflect.deleteField(options, "ad_timeout");
var _local5:* = options.a104;
Reflect.deleteField(options, "fadeout_time");
if ((A3.load(options) == (null as MovieClip))){
options.a119();
return;
};
options.a170();
var mc:* = clip._mochiad;
Reflect.setField(mc, "onUnload", function ():void{
options.a119();
});
var _local6 = (A3.getRes(options, clip) as Array);
var _local7:int = _local6[0];
var _local8:int = _local6[1];
mc.x = (_local7 * 0.5);
mc.y = (_local8 * 0.5);
var chk = A3.a22(mc, "_mochiad_wait", 3);
chk.ad_msec = _local3;
chk.a169 = _local4;
chk.started = Lib.getTimer();
chk.showing = false;
chk.a104 = _local5;
chk.a110 = function ():void{
var _local1:Number = (100 * (1 - ((Lib.getTimer() - chk.a91) / chk.a104)));
if ((_local1 > 0)){
chk.parent.alpha = (_local1 * 0.01);
} else {
A3.unload(clip);
chk.onEnterFrame = null;
};
};
mc.unloadAd = function ():void{
A3.unload(clip);
};
mc.a67 = function (_arg1:Number):void{
var _local2:* = mc._mochiad_wait;
_local2.a61 = true;
_local2.started = Lib.getTimer();
_local2.ad_msec = (_arg1 - 250);
};
chk.onEnterFrame = function ():void{
var _local4:int;
var _local1:* = chk.parent._mochiad_ctr;
var _local2:Number = (Lib.getTimer() - chk.started);
var _local3:Boolean;
if (!(chk.showing)){
_local4 = _local1.loaderInfo.bytesTotal;
if (!(_local4 > 0)){
true;
};
if (true){
chk.showing = true;
chk.started = Lib.getTimer();
} else {
if ((_local2 > chk.a169)){
_local3 = true;
};
};
};
if (!(_local2 > chk.ad_msec)){
true;
};
if (true){
_local3 = true;
};
if (_local3){
if (chk.a61){
chk.onEnterFrame = null;
} else {
chk.a91 = Lib.getTimer();
chk.onEnterFrame = chk.a110;
};
};
};
A3.doOnEnterFrame(chk);
}
}
var _local1 = [OP_NEWCLASS ClassInfo:3 base:Object];
??getglobalscope
.Action = _local1;
var _slot1 = new Action("A17", 5, null);
var _slot2 = new Action("A20", 6, null);
var _slot3 = new Action("A22", 4, null);
var _slot4 = new Action("A25", 3, null);
var _slot5 = new Action("A28", 2, null);
var _slot6 = new Action("A29", 7, null);
var _slot7 = new Action("A34", 1, null);
var _slot8 = new Action("A38", 0, null);
var _slot9 = new Action("NONE", 8, null);
var _slot10 = ["A38", "A34", "A28", "A25", "A22", "A17", "A20", "A29", "NONE"];
_local1 = [OP_NEWCLASS ClassInfo:6 base:Object];
??getglobalscope
.A37 = _local1;
var _slot1 = new A37("A23", 3, null);
var _slot2 = new A37("GEM1", 0, null);
var _slot3 = new A37("GEM2", 1, null);
var _slot4 = new A37("GEM3", 2, null);
var _slot5 = new A37("NONE", 4, null);
var _slot6 = ["GEM1", "GEM2", "GEM3", "A23", "NONE"];
_local1 = [OP_NEWCLASS ClassInfo:7 base:Object];
??getglobalscope
.A16 = _local1;
var _slot1 = new A16("A26", 1, null);
var _slot2 = new A16("A31", 0, null);
var _slot3 = new A16("A32", 3, null);
var _slot4 = new A16("A41", 2, null);
var _slot5 = new A16("BOMB", 4, null);
var _slot6 = new A16("NOTHING", 5, null);
var _slot7 = ["A31", "A26", "A41", "A32", "BOMB", "NOTHING"];
_local1 = [OP_NEWCLASS ClassInfo:43 base:Object];
??getglobalscope
.ValueType = _local1;
var _slot1 = new ValueType("TBool", 3, null);
var _slot4 = new ValueType("TFloat", 2, null);
var _slot5 = new ValueType("TFunction", 5, null);
var _slot6 = new ValueType("TInt", 1, null);
var _slot7 = new ValueType("TNull", 0, null);
var _slot8 = new ValueType("TObject", 4, null);
var _slot9 = new ValueType("TUnknown", 8, null);
var _slot10 = ["TNull", "TInt", "TFloat", "TBool", "TObject", "TFunction", "TClass", "TEnum", "TUnknown"];
[OP_NEWCLASS ClassInfo:47 base:Object].trace = function (_arg1:Object, _arg2:Object=undefined):void{
Boot_939315.__trace(_arg1, _arg2);
};
[OP_NEWCLASS ClassInfo:47 base:Object].clear = function ():void{
Boot_939315.__clear_trace();
};
[OP_NEWCLASS ClassInfo:47 base:Object].setColor = function (_arg1:int):void{
Boot_939315.__set_trace_color(_arg1);
};
??getglobalscope
.Boot_939315.init = function ():void{
Math.NaN = Number.NaN;
Math.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
Math.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
Math.isFinite = function (_arg1:Number):Boolean{
return (isFinite(_arg1));
};
Math.isNaN = function (_arg1:Number):Boolean{
return (isNaN(_arg1));
};
Date.now = function ():Date{
return (new (Date));
};
Date.fromTime = function (_arg1:Number):Date{
var _local2 = (new (Date) as Date);
_local2.setTime(_arg1);
return (_local2);
};
Date.fromString = function (_arg1:String):Date{
var _local3 = (null as Array);
var _local4 = (null as Date);
var _local5 = (null as Array);
var _local6 = (null as Array);
var _local2:int = _arg1.length;
if (_local2 == 8){
_local3 = (_arg1.split(":") as Array);
_local4 = (new (Date) as Date);
_local4.setTime(0);
_local4.setUTCHours((_local3[0] as String));
_local4.setUTCMinutes((_local3[1] as String));
_local4.setUTCSeconds((_local3[2] as String));
return (_local4);
} else {
if (_local2 == 10){
_local3 = (_arg1.split("-") as Array);
return (new Date(_local3[0], ((_local3[1] as String) - 1), _local3[2], 0, 0, 0));
} else {
if (_local2 == 19){
_local3 = (_arg1.split(" ") as Array);
_local5 = ((_local3[0] as String).split("-") as Array);
_local6 = ((_local3[1] as String).split(":") as Array);
return (new Date(_local5[0], ((_local5[1] as String) - 1), _local5[2], _local6[0], _local6[1], _local6[2]));
} else {
throw ((("Invalid date format : " + _arg1) as String));
};
};
};
};
Date.prototype["toString"] = function ():String{
var _local1:int = (this.getMonth() + 1);
var _local2:int = this.getDate();
var _local3:int = this.getHours();
var _local4:int = this.getMinutes();
var _local5:int = this.getSeconds();
return (((((((((((((((((((((this.getFullYear() + "-") as String) + ((_local1 < 10)) ? (("0" + _local1) as String) : (("" + _local1) as String)) as String) + "-") as String) + ((_local2 < 10)) ? (("0" + _local2) as String) : (("" + _local2) as String)) as String) + " ") as String) + ((_local3 < 10)) ? (("0" + _local3) as String) : (("" + _local3) as String)) as String) + ":") as String) + ((_local4 < 10)) ? (("0" + _local4) as String) : (("" + _local4) as String)) as String) + ":") as String) + ((_local5 < 10)) ? (("0" + _local5) as String) : (("" + _local5) as String)) as String));
};
var _local1 = ??getglobalscope
.A3;
var _slot1:Boolean;
_local1 = ??getglobalscope
.Log;
var _slot1 = function (_arg1:Object, _arg2:Object=undefined):void{
Boot_939315.__trace(_arg1, _arg2);
};
var _slot2 = function ():void{
Boot_939315.__clear_trace();
};
var _slot3 = function (_arg1:int):void{
Boot_939315.__set_trace_color(_arg1);
};
_local1 = ??getglobalscope
.Boot_939315;
var _slot5:Boolean;
_local1 = ??getglobalscope
.@Main;
var _slot1 = A11.main();
};
var _local2 = (new Dictionary() as Dictionary);
??getglobalscope
.Boot_939315.__res = _local2;
}//package b3
import flash.events.*;
import flash.display.*;
import flash.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import b2.*;
import b0.*;
import b5.*;
import b1.*;
import flash.text.*;
import haxe.*;
import flash.filters.*;
import flash.media.*;
import b4.*;
import flash.external.*;
import flash.geom.*;
class A42 extends Sprite {
public var a49:Sprite;
public var a224:A2;
public var a165:Number;
public var a157:Sprite;
public var a127:Number;
public var a122:Array;
public var _width:int;
public var _height:int;
public function A42(_arg1:A2=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
super();
a224 = _arg1;
_width = 330;
_height = Math.floor(((_arg1.height / _arg1.width) * _width));
a165 = (_width / a224.width);
a127 = (_height / a224.height);
a49 = new Sprite();
a157 = new Sprite();
addChild(a49);
addChild(a157);
a122 = [];
}
public function update():void{
var _local1 = (new Background() as Background);
_local1.x = -200;
_local1.y = -20;
a157.addChild(_local1);
}
public function a87(_arg1:Array, _arg2:Array):void{
var _local6:* = null;
var _local7 = (null as A0);
var _local3 = ([] as Array);
var _local4 = (a224.a10() as Array);
var _local5:* = _arg1.iterator();
do {
//unresolved if
_local6 = _local5.next();
(_local4[_local6.a198()] as Array)[_local6.a197()] = 1;
} while (true);
_local5 = _arg2.iterator();
do {
//unresolved if
_local6 = _local5.next();
(_local4[_local6.a198()] as Array)[_local6.a197()] = 2;
} while (true);
_local5 = a122.iterator();
do {
//unresolved if
_local6 = _local5.next();
_local7 = (_local6.a219 as A0);
if (((_local4[_local7.a198()] as Array)[_local7.a197()] == 2)){
A27.a63(new A15(_local6, this, a224.width, a224.height));
};
if (!(((_local4[_local7.a198()] as Array)[_local7.a197()] == 0))){
_local3.push(_local6);
};
} while (true);
_local5 = _local3.iterator();
do {
//unresolved if
_local6 = _local5.next();
a32(_local6);
} while (true);
}
public function a71(_arg1:A35):void{
a49.addChild(_arg1);
a122.push(_arg1);
}
public function a32(_arg1:A35):void{
a122.remove(_arg1);
a49.removeChild(_arg1);
}
}
class A2 {
public var width:int;
public var height:int;
public var a96:Array;
public var a38:A21;
public var a211:Array;
public function A2(_arg1:int=undefined, _arg2:int=undefined):void{
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
if (Boot_939315.skip_constructor){
return;
};
width = _arg1;
height = _arg2;
a96 = [];
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int = width;
do {
//unresolved if
_local7 = _local5;
_local5++;
a96.unshift([]);
_local8 = 0;
_local9 = height;
do {
//unresolved if
_local10 = _local8;
_local8++;
(a96[0] as Array).push((null as A0));
} while (true);
} while (true);
a38 = new A21(false);
}
public function unique(_arg1:Array):Array{
var _local5:* = null;
var _local2 = (a10() as Array);
var _local3 = ([] as Array);
var _local4:* = _arg1.iterator();
do {
//unresolved if
_local5 = _local4.next();
if (!((_local5 == null))){
if (((_local2[_local5.a198()] as Array)[_local5.a197()] == 0)){
_local3.push(_local5);
};
(_local2[_local5.a198()] as Array)[_local5.a197()] = 1;
};
} while (true);
return (_local3);
}
public function a97(_arg1:int, _arg2:int, _arg3:Array, _arg4:A37):Boolean{
if ((_arg1 >= 0)){
false;
if ((_arg1 < width)){
false;
if ((_arg2 >= 0)){
false;
if ((_arg2 < height)){
false;
if (!((((_arg3[_arg1] as Array)[_arg2] as A0) == (null as A0)))){
false;
};
};
};
};
};
return (false);
}
public function a94(_arg1:Array):Array{
var _local4:* = null;
var _local5:* = null;
var _local6:* = null;
var _local2 = ([] as Array);
var _local3:* = _arg1.iterator();
do {
//unresolved if
_local4 = _local3.next();
_local2.unshift([]);
_local5 = _local4.iterator();
do {
//unresolved if
_local6 = _local5.next();
(_local2[0] as Array).push(_local6.clone());
} while (true);
} while (true);
return (_local2);
}
public function a87(_arg1:Array):Array{
var _local6:int;
var _local8:* = null;
var _local9:Boolean;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local2 = ([] as Array);
var _local3 = ([] as Array);
var _local4:int;
var _local5:int = width;
do {
//unresolved if
_local6 = _local4;
_local4++;
_local3.push(0);
} while (true);
var _local7:* = _arg1.iterator();
do {
//unresolved if
_local8 = _local7.next();
if ((_local8.a197() > _local3[_local8.a198()])){
_local3[_local8.a198()] = _local8.a197();
};
if (!(a38.value)){
false;
if (!_local8.a101.a123()){
true;
if (!_local8.a105.a123()){
true;
if (!_local8.a31.a123()){
true;
};
};
};
};
if (false){
a38 = a38.change(true);
};
(a96[_local8.a198()] as Array)[_local8.a197()] = (null as A0);
} while (true);
_local4 = 1;
_local5 = height;
do {
//unresolved if
_local6 = _local4;
_local4++;
_local9 = true;
_local10 = 0;
_local11 = width;
do {
//unresolved if
_local12 = _local10;
_local10++;
if (!((((a96[_local12] as Array)[_local6] as A0) == (null as A0)))){
_local9 = false;
break;
};
} while (true);
if (_local9){
_local10 = _local6;
do {
//unresolved if
_local11 = 0;
_local12 = width;
do {
//unresolved if
_local13 = _local11;
_local11++;
_local2.push(((a96[_local13] as Array)[(_local10 - 1)] as A0));
a29(((a96[_local13] as Array)[(_local10 - 1)] as A0), _local13, _local10);
} while (true);
_local10--;
} while (true);
};
} while (true);
return (unique(_local2));
}
public function a86(_arg1:int, _arg2:int):Array{
var _local6 = (null as A37);
var _local8 = (null as Array);
var _local9:* = null;
var _local10:* = null;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local3 = (a10() as Array);
var _local4 = ([] as Array);
var _local5 = (a96 as Array);
if (!(((_local5[_arg1] as Array)[_arg2] as A0) == (null as A0))){
true;
};
if (true){
return ([]);
} else {
_local6 = (((_local5[_arg1] as Array)[_arg2] as A0).a66() as A37);
};
(_local3[_arg1] as Array)[_arg2] = 1;
_local4.push(((_local5[_arg1] as Array)[_arg2] as A0));
var _local7 = ([] as Array);
_local7.push(((_local5[_arg1] as Array)[_arg2] as A0));
do {
//unresolved if
_local8 = ([] as Array);
_local9 = _local4.iterator();
do {
//unresolved if
_local10 = _local9.next();
_local11 = _local10.a198();
_local12 = _local10.a197();
_local13 = (_local11 - 1);
_local14 = _local12;
if (a97(_local13, _local14, _local5, _local6)){
false;
};
if (false){
_local8.push(((_local5[_local13] as Array)[_local14] as A0));
(_local3[_local13] as Array)[_local14] = 1;
_local7.push(((_local5[_local13] as Array)[_local14] as A0));
};
_local13 = (_local11 + 1);
_local14 = _local12;
if (a97(_local13, _local14, _local5, _local6)){
false;
};
if (false){
_local8.push(((_local5[_local13] as Array)[_local14] as A0));
(_local3[_local13] as Array)[_local14] = 1;
_local7.push(((_local5[_local13] as Array)[_local14] as A0));
};
_local13 = _local11;
_local14 = (_local12 + 1);
if (a97(_local13, _local14, _local5, _local6)){
false;
};
if (false){
_local8.push(((_local5[_local13] as Array)[_local14] as A0));
(_local3[_local13] as Array)[_local14] = 1;
_local7.push(((_local5[_local13] as Array)[_local14] as A0));
};
_local13 = _local11;
_local14 = (_local12 - 1);
if (a97(_local13, _local14, _local5, _local6)){
false;
};
if (false){
_local8.push(((_local5[_local13] as Array)[_local14] as A0));
(_local3[_local13] as Array)[_local14] = 1;
_local7.push(((_local5[_local13] as Array)[_local14] as A0));
};
} while (true);
_local4 = (_local8 as Array);
} while (true);
return (_local7);
}
public function a85():Array{
var _local4:int;
var _local5 = (null as Array);
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:* = null;
var _local1 = ([] as Array);
var _local2:int;
var _local3:int = width;
do {
//unresolved if
_local4 = _local2;
_local2++;
_local5 = ([] as Array);
_local6 = 0;
_local7 = height;
do {
//unresolved if
_local8 = _local6;
_local6++;
if (!((((a96[_local4] as Array)[_local8] as A0) == (null as A0)))){
_local5.push(((a96[_local4] as Array)[_local8] as A0));
};
} while (true);
_local6 = height;
do {
//unresolved if
_local6--;
_local9 = _local5.pop();
if (!((_local9.a197() == _local6))){
_local1.push(_local9);
a29(_local9, _local4, _local6);
};
} while (true);
} while (true);
return (_local1);
}
public function a53(_arg1:Array):Array{
var _local5:* = null;
var _local6 = (null as A16);
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local2 = ([] as Array);
var _local3 = (a10() as Array);
var _local4:* = _arg1.iterator();
do {
//unresolved if
_local5 = _local4.next();
(_local3[_local5.a198()] as Array)[_local5.a197()] = 1;
} while (true);
_local4 = _arg1.iterator();
do {
//unresolved if
_local5 = _local4.next();
_local6 = (_local5.a17() as A16);
if (_local6 == (A16.BOMB as A16)){
_local7 = (_local5.a198() - 1);
_local8 = (_local5.a197() - 1);
_local9 = (_local7 + 3);
_local10 = (_local8 + 3);
if ((_local7 < 0)){
_local7 = 0;
};
if ((_local8 < 0)){
_local8 = 0;
};
if ((_local9 > width)){
_local9 = (width - 1);
};
if ((_local10 > height)){
_local10 = height;
};
_local11 = _local7;
_local12 = _local9;
do {
//unresolved if
_local13 = _local11;
_local11++;
_local14 = _local8;
_local15 = _local10;
do {
//unresolved if
_local16 = _local14;
_local14++;
if (((_local3[_local13] as Array)[_local16] == 0)){
false;
};
if (false){
_local2.push(((a96[_local13] as Array)[_local16] as A0));
};
} while (true);
} while (true);
} else {
if (_local6 == (A16.A31 as A16)){
_local7 = _local5.a198();
_local8 = _local5.a197();
_local9 = _local8;
_local10 = 0;
_local11 = _local7;
do {
//unresolved if
_local12 = _local10;
_local10++;
if (((_local3[_local12] as Array)[_local9] == 0)){
false;
};
if (false){
_local2.push(((a96[_local12] as Array)[_local9] as A0));
};
} while (true);
} else {
if (_local6 == (A16.A26 as A16)){
_local7 = _local5.a198();
_local8 = _local5.a197();
_local9 = _local8;
_local10 = _local7;
_local11 = width;
do {
//unresolved if
_local12 = _local10;
_local10++;
if (((_local3[_local12] as Array)[_local9] == 0)){
false;
};
if (false){
_local2.push(((a96[_local12] as Array)[_local9] as A0));
};
} while (true);
} else {
if (_local6 == (A16.A32 as A16)){
_local7 = _local5.a198();
_local8 = _local5.a197();
_local9 = _local7;
_local10 = _local8;
_local11 = height;
do {
//unresolved if
_local12 = _local10;
_local10++;
if (((_local3[_local9] as Array)[_local12] == 0)){
false;
};
if (false){
_local2.push(((a96[_local9] as Array)[_local12] as A0));
};
} while (true);
} else {
if (_local6 == (A16.A41 as A16)){
_local7 = _local5.a198();
_local8 = _local5.a197();
_local9 = _local7;
_local10 = 0;
_local11 = _local8;
do {
//unresolved if
_local12 = _local10;
_local10++;
if (((_local3[_local9] as Array)[_local12] == 0)){
false;
};
if (false){
_local2.push(((a96[_local9] as Array)[_local12] as A0));
};
} while (true);
} else {
if (_local6 == (A16.NOTHING as A16)){
//unresolved jump
};
};
};
};
};
};
} while (true);
return (unique(_local2));
}
public function a29(_arg1:A0, _arg2:int, _arg3:int):void{
if (!((_arg1 == (null as A0)))){
(a96[_arg1.a198()] as Array)[_arg1.a197()] = (null as A0);
_arg1.a200(_arg2);
_arg1.a196(_arg3);
(a96[_arg1.a198()] as Array)[_arg1.a197()] = _arg1;
};
}
public function a23(_arg1:A43):Boolean{
var _local3:* = null;
var _local2:* = _arg1.a211.iterator();
do {
//unresolved if
_local3 = _local2.next();
if (!(_local3.a198() >= width)){
true;
if (!(_local3.a198() < 0)){
true;
};
};
if (true){
return (false);
} else {
if ((_local3.a197() >= 0)){
false;
};
if (false){
return (false);
};
};
} while (true);
return (true);
}
public function a179(_arg1:A43):Boolean{
var _local3:* = null;
var _local2:* = _arg1.a211.iterator();
do {
//unresolved if
_local3 = _local2.next();
if ((_local3.a197() < 0)){
return (false);
};
(a96[_local3.a198()] as Array)[_local3.a197()] = _local3;
} while (true);
return (true);
}
public function a159():Array{
var _local3:* = null;
var _local4:* = null;
var _local5:* = null;
var _local1 = ([] as Array);
var _local2:* = a96.iterator();
do {
//unresolved if
_local3 = _local2.next();
_local4 = _local3.iterator();
do {
//unresolved if
_local5 = _local4.next();
if (!((_local5 == null))){
_local1.push(_local5);
};
} while (true);
} while (true);
return (_local1);
}
public function a10():Array{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local1 = ([] as Array);
var _local2:int;
var _local3:int = width;
do {
//unresolved if
_local4 = _local2;
_local2++;
_local1.unshift([]);
_local5 = 0;
_local6 = height;
do {
//unresolved if
_local7 = _local5;
_local5++;
(_local1[0] as Array).push(0);
} while (true);
} while (true);
return (_local1);
}
}
class Action {
public const __enum__ = true;
public var tag;
public var index;
public var params;
public static const __isenum = true;
public static var __constructs__;
public static var NONE:Action;
public static var A38:Action;
public static var A34:Action;
public static var A29:Action;
public static var A28:Action;
public static var A25:Action;
public static var A22:Action;
public static var A20:Action;
public static var A17:Action;
public function Action(_arg1:String, _arg2:int, _arg3:Object):void{
tag = _arg1;
index = _arg2;
params = _arg3;
}
public function toString():String{
return (Boot_939315.enum_to_string(this));
}
}
class A1 {
public var website:String;
public var username:A19;
public var stage:Stage;
public var sounds:Sounds;
public var rng:A13;
public var particle:Sprite;
public var menu:Sprite;
public var keys:Array;
public var figures:Array;
public var combo:Boolean;
public var a93:Array;
public var a89:A9;
public var a84:A9;
public var a80:Array;
public var a76:A18;
public var a52:int;
public var a46:A19;
public var a45:A21;
public var a34:A12;
public var a33:A4;
public var a30:int;
public var a26:int;
public var a224:A2;
public var a221:int;
public var a218:A43;
public var a211:Array;
public var a189:Boolean;
public var a176:A42;
public var a173:A43;
public var a166:TextField;
public var a163:A7;
public var a154:Sprite;
public var a151:TextField;
public var a148:int;
public var a115:A18;
public var a11:int;
public var a107:Array;
public function A1(_arg1:A4=undefined):void{
var _local4:int;
var _local6:* = null;
if (Boot_939315.skip_constructor){
return;
};
a33 = _arg1;
website = "twistedline.com";
sounds = new Sounds();
stage = Lib.current.stage;
A27.init();
keys = [];
var _local2:int;
var _local3:int = 0xFF;
do {
//unresolved if
_local4 = _local2;
_local2++;
keys[_local4] = false;
} while (true);
a80 = [];
a80[87] = Action.A25;
a80[65] = Action.A34;
a80[83] = Action.A38;
a80[68] = Action.A28;
a80[38] = Action.A25;
a80[37] = Action.A34;
a80[40] = Action.A38;
a80[39] = Action.A28;
a80[27] = Action.A29;
a80[80] = Action.A29;
a154 = new Sprite();
a154.x = 25;
a154.y = 90;
a115 = new A18(function (_arg1:Function, _arg2:Action):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(action, Action.A29));
a115.set_text("Pause/Menu");
a115.x = 25;
a115.y = 300;
menu = new Sprite();
a30 = a192(40);
var _local5:* = 20;
a52 = _local5;
a11 = _local5;
A43.sounds = sounds;
a151 = new TextField();
Text.a60(a151, 17, 0xFFFFFF);
a151.x = 30;
a151.y = 10;
a166 = new TextField();
Text.a60(a166, 17, 0xFFFFFF);
a166.x = 30;
a166.y = 35;
a201();
_local5 = a176.a122.iterator();
do {
//unresolved if
_local6 = _local5.next();
_local6.visible = false;
} while (true);
_local2 = 0;
_local3 = a154.numChildren;
do {
//unresolved if
_local4 = _local2;
_local2++;
a154.removeChildAt(0);
} while (true);
display_new_menu();
}
public function update(_arg1:Object=undefined):void{
var _local2 = (null as Action);
var _local4:* = null;
A27.update();
do {
//unresolved if
a93.shift();
} while (true);
if (combo){
if ((a11 <= 0)){
a11 = a52;
a121();
};
a11 = (a11 - 1);
} else {
if ((a30 <= 0)){
a30 = a186();
a220();
} else {
a30 = (a30 - 1);
if (!(a189)){
do {
//unresolved if
_local2 = (a152() as Action);
if (_local2 == (Action.A25 as Action)){
a218.a141();
} else {
if (_local2 == (Action.A22 as Action)){
a218.a103();
} else {
if (_local2 == (Action.A38 as Action)){
a218.move(0, 1);
} else {
if (_local2 == (Action.A28 as Action)){
a218.move(1, 0);
} else {
if (_local2 == (Action.A34 as Action)){
a218.move(-1, 0);
} else {
if (_local2 == (Action.A17 as Action)){
a218.a59();
} else {
if (_local2 == (Action.A20 as Action)){
a218.a81();
} else {
if (_local2 == (Action.A29 as Action)){
a28();
//unresolved jump
};
};
};
};
};
};
};
};
a93.shift();
} while (true);
} else {
do {
//unresolved if
a93.shift();
} while (true);
a16();
};
};
};
var _local3:* = a176.a122.iterator();
do {
//unresolved if
_local4 = _local3.next();
_local4.update();
} while (true);
}
public function popup(_arg1:String):void{
Lib.getURL(new URLRequest((("http://" + _arg1) as String)), "_blank");
}
public function level():int{
return ((Math.floor((a184() / 250)) + 1));
}
public function key_up(_arg1:Object):void{
keys[_arg1.keyCode] = false;
}
public function key_down(_arg1:Object):void{
var _local2:int = _arg1.keyCode;
if (!(keys[_local2])){
keys[_local2] = true;
a93.push((a80[_local2] as Action));
};
}
public function display_new_menu():void{
a162();
a98();
menu.graphics.beginFill(0, 0.4);
menu.graphics.drawRect(0, 0, 640, 480);
var _local1 = (new TextField() as TextField);
Text.a60(_local1, 30, 0xFFFFFF);
_local1.text = "Blocky blocks";
_local1.x = 200;
menu.addChild(_local1);
var _local2 = (a199() as Sprite);
var _local3 = (new Sprite() as Sprite);
_local3.addChild(new MainMenu());
var _local4:int = 30;
var _local5:int = 5;
var _local6 = (new A18(a201) as A18);
_local6.set_text("New");
_local6.x = _local4;
_local6.y = (35 + _local5);
_local3.addChild(_local6);
var _local7 = (new A18(a36) as A18);
_local7.set_text("Help");
_local7.x = _local4;
_local7.y = (70 + _local5);
_local3.addChild(_local7);
var _local8 = (new A18(function (_arg1:Function, _arg2:String):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(popup, ((website + "/blockyblocks/highscores") as String))) as A18);
_local8.set_text("Highscores");
_local8.x = _local4;
_local8.y = (105 + _local5);
_local3.addChild(_local8);
var _local9 = (new A18(function (_arg1:Function, _arg2:String):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(popup, website)) as A18);
_local9.set_text("More games");
_local9.x = _local4;
_local9.y = (140 + _local5);
_local3.addChild(_local9);
_local3.x = 210;
_local3.y = 70;
menu.addChild(_local3);
}
public function action(_arg1:Action):void{
a93.push(_arg1);
}
public function a98():void{
do {
//unresolved if
menu.removeChildAt(0);
} while (true);
menu.graphics.clear();
}
public function a95():void{
var _local6:int;
var _local7:int;
var _local1 = (username.a160.text as String);
var _local2 = (a46.a160.text as String);
if (a46.a160.a134){
_local2 = ("" as String);
};
var version = 1;
var message = "";
message = ((((((((_local1 + ",") as String) + _local2) as String) + ",") as String) + version) as String);
var _local3 = (new A13() as A13);
_local3.seed = _local3.a187((version ^ -208426188));
var _local4:int = _local3.a158();
var _local5:int;
if (a224.a38.value){
_local5 = 422074168;
};
if (a45.value){
_local5 = -1743247035;
};
if (a84.a123()){
_local6 = (_local3.a187(a184()) ^ 79686);
} else {
_local6 = (_local3.a187(a184()) ^ _local5);
};
if (a89.a123()){
_local7 = (_local3.a187(a186()) ^ 79686);
} else {
_local7 = (_local3.a187(a186()) ^ _local5);
};
var _local8:int = _local3.a187((version ^ 3446137));
_local7 = (_local7 ^ _local3.a187((_local6 ^ _local8)));
_local6 = (_local6 ^ _local3.a187((_local7 ^ _local8)));
var _local9 = (new Http((((("http://" + website) as String) + "/blockyblocks/highscore/highscore.php") as String)) as Http);
message = ((message + (((((((((((((((((("," + _local8) as String) + ",") as String) + a186()) as String) + ",") as String) + _local7) as String) + ",") as String) + a184()) as String) + ",") as String) + _local6) as String)) as String);
var a15 = new Http((((("http://" + website) as String) + "/blockyblocks/highscore/highscore.php") as String));
a15.onData = function (_arg1:String):void{
(null as void);
};
_local9.onData = function (_arg1:String):void{
var _local2 = (Md5.encode(((((message + "lalaland2938") as String) + _arg1) as String)) as String);
message = ((message + (("," + _local2) as String)) as String);
a15.setParameter("version", Std.string(version));
a15.setParameter("data", message);
a15.setParameter("submit", "POST");
a15.request(true);
};
_local9.onError = function (_arg1:String):void{
(null as void);
(null as void);
};
_local9.setParameter("salt", "GET");
_local9.request(true);
a163.clear();
a33.a7(a201);
a33.a62();
}
public function a77():void{
a98();
a201();
}
public function a54():void{
figures = [];
var _local1:* = {a211:[a108(0, 0), a108(1, 0), a108(1, 1), a108(2, 1)], a214:1, a213:1};
figures.push(_local1);
_local1 = {a211:[a108(2, 0), a108(1, 0), a108(1, 1), a108(0, 1)], a214:1, a213:1};
figures.push(_local1);
_local1 = {a211:[a108(0, 0), a108(1, 0), a108(2, 0), a108(0, 1), a108(0, 2)], a214:1, a213:1};
figures.push(_local1);
_local1 = {a211:[a108(1, 0), a108(0, 1), a108(1, 1), a108(1, 2), a108(2, 1)], a214:1, a213:1};
figures.push(_local1);
}
public function a43():void{
var _local1:int = level();
a192(Math.floor((40 - (_local1 * 2))));
if ((a186() < 10)){
a192(10);
};
}
public function a42(_arg1:Array, _arg2:Array):void{
var _local5:* = null;
var _local6 = (null as Array);
_arg1 = (a224.unique(_arg1) as Array);
_arg2 = (a224.unique(_arg2) as Array);
var _local3 = (this as A1);
_local3.a185((_local3.a184() + (2 * a26)));
_local3 = (this as A1);
_local3.a185((_local3.a184() + ((_arg1.length * 5) + (_arg2.length * 5))));
a138();
a176.a87(_arg2, _arg1);
a107 = a224.a87(_arg1.concat(_arg2));
combo = false;
var _local4:* = a107.iterator();
do {
//unresolved if
_local5 = _local4.next();
_local6 = (a224.a86(_local5.a198(), _local5.a197()) as Array);
if ((_local6.length >= 3)){
combo = true;
break;
};
} while (true);
}
public function a39():void{
a98();
stage.addEventListener("enterFrame", update, false, 0, true);
stage.addEventListener("keyDown", key_down, false, 0, true);
stage.addEventListener("keyUp", key_up, false, 0, true);
}
public function a36():void{
var _local1 = (new Sprite() as Sprite);
_local1.addChild(new BigMenu());
var _local2:* = function (_arg1:Number, _arg2:Number, _arg3:int, _arg4:uint, _arg5:String):TextField{
var _local6 = (new TextField() as TextField);
_local6.x = _arg1;
_local6.y = _arg2;
Text.a60(_local6, _arg3, _arg4);
_local6.text = _arg5;
return (_local6);
};
_local1.addChild(_local2(20, 15, 20, 0xFFFFFF, "Description"));
_local1.addChild(_local2(20, 45, 13, 0xFFFFFF, "- Match three or more blocks to increase your score"));
_local1.addChild(_local2(20, 65, 13, 0xFFFFFF, "- Match bonus blocks to remove more blocks"));
_local1.addChild(_local2(20, 85, 13, 0xFFFFFF, "- Broken blocks can only be removed with bonuses"));
_local1.addChild(_local2(20, 115, 20, 0xFFFFFF, "Controls"));
_local1.addChild(_local2(20, 145, 13, 0xFFFFFF, "- w or up arrow:"));
_local1.addChild(_local2(220, 145, 13, 0xFFFFFF, "rotate"));
_local1.addChild(_local2(20, 165, 13, 0xFFFFFF, "- a/s or right/left arrow:"));
_local1.addChild(_local2(220, 165, 13, 0xFFFFFF, "move left/right"));
_local1.addChild(_local2(20, 185, 13, 0xFFFFFF, "- d or down arrow:"));
_local1.addChild(_local2(220, 185, 13, 0xFFFFFF, "move down"));
_local1.addChild(_local2(20, 205, 13, 0xFFFFFF, "- p or escape:"));
_local1.addChild(_local2(220, 205, 13, 0xFFFFFF, "pause"));
var _local3 = (new A18(function (_arg1:Function, _arg2:DisplayObject):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(a125, _local1)) as A18);
_local3.set_text("Return");
_local3.x = 150;
_local3.y = 300;
_local1.addChild(_local3);
_local1.x = 170;
_local1.y = 50;
menu.addChild(_local1);
}
public function a28():void{
a162();
a98();
menu.graphics.beginFill(0, 0.4);
menu.graphics.drawRect(0, 0, 640, 480);
var _local1 = (new TextField() as TextField);
Text.a60(_local1, 30, 0xFFFFFF);
_local1.text = "Blocky blocks";
_local1.x = 200;
menu.addChild(_local1);
var _local2 = (a199() as Sprite);
var _local3 = (new Sprite() as Sprite);
_local3.addChild(new MainMenu());
var _local4:int = 30;
var _local5:int = 40;
var _local6 = (new A18(a39) as A18);
_local6.set_text("Resume");
_local6.x = _local4;
_local6.y = _local5;
_local3.addChild(_local6);
var _local7 = (new A18(a201) as A18);
_local7.set_text("New");
_local7.x = _local4;
_local7.y = (35 + _local5);
_local3.addChild(_local7);
var _local8 = (new A18(a36) as A18);
_local8.set_text("Help");
_local8.x = _local4;
_local8.y = (70 + _local5);
_local3.addChild(_local8);
var _local9 = (new A18(function (_arg1:Function, _arg2:String):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(popup, ((website + "/blockyblocks/highscores") as String))) as A18);
_local9.set_text("Highscores");
_local9.x = _local4;
_local9.y = (105 + _local5);
_local3.addChild(_local9);
var _local10 = (new A18(function (_arg1:Function, _arg2:String):Function{
var f = _arg1;
var a1 = _arg2;
return (function ():void{
return (f(a1));
});
}(popup, website)) as A18);
_local10.set_text("More games");
_local10.x = _local4;
_local10.y = (140 + _local5);
_local3.addChild(_local10);
_local3.x = 210;
_local3.y = 70;
menu.addChild(_local3);
}
public function a220():void{
var _local1:* = null;
var _local2 = (null as Array);
a43();
if (!(a218.move(0, 1))){
_local1 = !(a224.a179(a218));
a189 = _local1;
if (!(_local1)){
_local2 = (a218.a211 as Array);
a177();
a26 = 0;
_local1 = a133(_local2);
a42((_local1.a190 as Array), (_local1.a40 as Array));
};
};
}
public function a201():void{
if ((a163 == (null as A7))){
a163 = new A7(10);
} else {
a163.clear();
a98();
stage.removeEventListener("enterFrame", update);
stage.removeEventListener("keyDown", key_down);
stage.removeEventListener("keyUp", key_up);
};
a163.add(4, a154);
a163.add(a163.top, a115);
a45 = new A21(false);
a224 = new A2(11, 14);
A43.a18 = a224.a23;
a211 = [];
rng = new A13();
rng.a136();
a93 = [];
a176 = new A42(a224);
a176.x = 200;
a176.y = 20;
a163.add(3, a176);
stage.addChild(a163);
a163.add(a163.top, menu);
a39();
a173 = (null as A43);
a218 = (null as A43);
a177();
a177();
a176.update();
a163.add((a163.top - 1), a151);
a163.add((a163.top - 1), a166);
var _local1:* = 0;
a26 = _local1;
a185(_local1);
var _local2 = (new AudioIcon() as AudioIcon);
_local2.x = 10;
_local2.y = 380;
var _local3 = (new Disabled() as Disabled);
a34 = new A12(a113, _local2, _local3);
a163.add(6, a34);
a189 = false;
a138();
a43();
}
public function a199():Sprite{
var _local1 = (new Sprite() as Sprite);
menu.addChild(_local1);
return (_local1);
}
public function a192(_arg1:int):int{
if ((a89 == (null as A9))){
a89 = new A9(_arg1);
};
var _local2:* = ((a186() > 0)) ? -(_arg1) : _arg1;
a148 = _local2;
return (_local2);
}
public function a186():int{
return (((a148 > 0)) ? a148 : -(a148));
}
public function a185(_arg1:int):int{
if ((a84 == (null as A9))){
a84 = new A9(_arg1);
};
var _local2:* = ((a184() > 0)) ? -(_arg1) : _arg1;
a221 = _local2;
return (_local2);
}
public function a184():int{
return (((a221 > 0)) ? a221 : -(a221));
}
public function a177():void{
var _local5:int;
var _local6:* = null;
var _local7:* = null;
var _local8 = (null as A35);
a54();
var _local1:int = (((figures.length - 1) < level())) ? (figures.length - 1) : level();
var _local2:* = figures[rng.a102(0, _local1)];
if (!((a218 == (null as A43)))){
if (!a218.a101.a123()){
true;
};
if (true){
a45 = a45.change(true);
};
};
a218 = a173;
a173 = new A43(_local2);
var _local3:int;
var _local4:int = a154.numChildren;
do {
//unresolved if
_local5 = _local3;
_local3++;
a154.removeChildAt(0);
} while (true);
_local6 = a173.a211.iterator();
do {
//unresolved if
_local7 = _local6.next();
_local8 = (new A35(_local7, a176.a165, a176.a127) as A35);
_local8.update(true);
a154.addChild(_local8);
} while (true);
if (!((a218 == (null as A43)))){
_local6 = a218.a211.iterator();
do {
//unresolved if
_local7 = _local6.next();
_local8 = (new A35(_local7, a176.a165, a176.a127) as A35);
a176.a71(_local8);
} while (true);
a218.move(((a224.width >> 1) - (a218.width >> 1)), -(a218.height));
};
_local6 = a176.a122.iterator();
do {
//unresolved if
_local7 = _local6.next();
_local7.update(true);
} while (true);
}
public function a162():void{
stage.removeEventListener("enterFrame", update);
stage.removeEventListener("keyDown", key_down);
stage.removeEventListener("keyUp", key_up);
}
public function a16():void{
a98();
a162();
var _local1 = (new Sprite() as Sprite);
_local1.x = 170;
_local1.y = 70;
menu.graphics.beginFill(0, 0.4);
menu.graphics.drawRect(0, 0, 640, 480);
_local1.addChild(new BigMenu());
a76 = new A18(a95);
a76.set_text("Submit");
a76.x = 90;
a76.y = 290;
_local1.addChild(a76);
var _local2 = (new A18(a77) as A18);
_local2.set_text("Cancel");
_local2.x = 220;
_local2.y = 290;
_local1.addChild(_local2);
var _local3 = (new TextField() as TextField);
Text.a60(_local3, 25, 16777096);
_local3.x = 40;
_local3.y = 20;
_local3.text = "Submit your highscore!";
_local1.addChild(_local3);
username = new A19();
username.set_text("Yourname");
username.x = 30;
username.y = 140;
_local1.addChild(username);
a46 = new A19();
a46.set_text("Groupsname");
a46.x = 30;
a46.y = 190;
_local1.addChild(a46);
menu.addChild(_local1);
}
public function a152():Action{
if ((a93.length > 0)){
return ((a93[0] as Action));
} else {
return (Action.NONE);
};
}
public function a138():void{
a151.text = (("Score: " + Std.string(a184())) as String);
a166.text = (("Level: " + Std.string(level())) as String);
}
public function a133(_arg1:Array):Object{
var _local7:* = null;
var _local8 = (null as Array);
var _local9 = (null as A16);
var _local2 = ([] as Array);
var _local3 = ([] as Array);
var _local4:Boolean;
var _local5:Boolean;
var _local6:* = _arg1.iterator();
do {
//unresolved if
_local7 = _local6.next();
_local8 = (a224.a86(_local7.a198(), _local7.a197()) as Array);
if ((_local8.length >= 3)){
a26 = (a26 + 1);
_local2 = (_local2.concat(_local8) as Array);
_local3 = (_local3.concat(a224.a53(_local2)) as Array);
combo = true;
};
} while (true);
_local6 = _local2.concat(_local3).iterator();
do {
//unresolved if
_local7 = _local6.next();
_local9 = (_local7.a17() as A16);
if (_local9 == (A16.BOMB as A16)){
_local4 = true;
} else {
if (_local9 == (A16.A31 as A16)){
_local5 = true;
} else {
if (_local9 == (A16.A26 as A16)){
_local5 = true;
} else {
if (_local9 == (A16.A32 as A16)){
_local5 = true;
} else {
if (_local9 == (A16.A41 as A16)){
_local5 = true;
//unresolved jump
};
};
};
};
};
if (_local4){
false;
};
if (false){
break;
};
} while (true);
if (_local4){
sounds.bomb();
};
if (_local5){
sounds.arrow();
};
if (combo){
sounds.a69();
};
return ({a190:_local2, a40:_local3});
}
public function a125(_arg1:DisplayObject):void{
menu.removeChild(_arg1);
}
public function a121():void{
var _local1:* = null;
if (combo){
combo = false;
_local1 = a133(a107);
if (combo){
a26 = (a26 + 1);
a42((_local1.a190 as Array), (_local1.a40 as Array));
};
};
}
public function a113():void{
sounds.enabled = !(sounds.enabled);
if (sounds.enabled){
a34.enable();
} else {
a34.disable();
};
}
public function a108(_arg1:int, _arg2:int):A0{
var _local12:int;
var _local3:int = level();
var _local4:int = (_local3 - 2);
if ((_local4 < 0)){
_local4 = 0;
};
var _local5:int = (Math.floor((10 / ((0.5 * _local3) + 1))) + 10);
if ((_local5 < 0)){
_local5 = 0;
};
var _local6:int = 20;
var _local7:int = ((_local4 + _local5) + _local6);
var _local8:Number = (_local4 / _local7);
var _local9:Number = ((_local5 / _local7) + _local8);
var _local10:Number = rng.a195();
var _local11 = (new A0(_arg1, _arg2) as A0);
if ((_local10 < _local8)){
_local11.a70(A37.A23);
} else {
_local12 = rng.a102(0, 2);
if (_local12 == 0){
_local11.a70(A37.GEM1);
} else {
if (_local12 == 1){
_local11.a70(A37.GEM2);
} else {
_local11.a70(A37.GEM3);
};
};
if ((_local10 < _local9)){
_local12 = rng.a102(0, 4);
if (_local12 == 0){
_local11.a14(A16.A31);
} else {
if (_local12 == 1){
_local11.a14(A16.A26);
} else {
if (_local12 == 2){
_local11.a14(A16.A41);
} else {
if (_local12 == 3){
_local11.a14(A16.A32);
} else {
_local11.a14(A16.BOMB);
};
};
};
};
};
};
return (_local11);
}
}
class Http {
public var url:String;
public var params:Hash;
public var onStatus;
public var onError;
public var onData;
public var headers:Hash;
public function Http(_arg1:String=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
onData = function (_arg1:String):void{
};
onError = function (_arg1:String):void{
};
onStatus = function (_arg1:int):void{
};
url = _arg1;
headers = new Hash();
params = new Hash();
}
public function setParameter(_arg1:String, _arg2:String):void{
params.set(_arg1, _arg2);
}
public function setHeader(_arg1:String, _arg2:String):void{
headers.set(_arg1, _arg2);
}
public function request(_arg1:Boolean):void{
var _local5:* = null;
var _local6 = (null as String);
var _local7 = (null as Array);
var _local9 = (null as String);
var _local10:* = null;
var me = this;
var loader = new URLLoader();
loader.addEventListener("complete", function (_arg1:Object):void{
me.onData(loader.data);
});
loader.addEventListener("httpStatus", function (_arg1:Object):void{
if (!((_arg1.status == 0))){
me.onStatus(_arg1.status);
};
});
loader.addEventListener("ioError", function (_arg1:Object):void{
me.onError((_arg1.text as String));
});
loader.addEventListener("securityError", function (_arg1:Object):void{
me.onError((_arg1.text as String));
});
var _local3:Boolean;
var _local4 = (new URLVariables() as URLVariables);
_local5 = params.keys();
do {
//unresolved if
_local6 = (_local5.next() as String);
_local3 = true;
Reflect.setField(_local4, _local6, params.get(_local6));
} while (true);
_local6 = (url as String);
if (_local3){
false;
};
if (false){
_local7 = (url.split("?") as Array);
if ((_local7.length > 1)){
_local6 = (_local7.shift() as String);
_local4.decode(_local7.join("?"));
};
};
_local7 = (_local6.split("xxx") as Array);
var _local8 = (new URLRequest(_local6) as URLRequest);
_local5 = headers.keys();
do {
//unresolved if
_local9 = (_local5.next() as String);
_local8.requestHeaders.push(new URLRequestHeader(_local9, headers.get(_local9)));
} while (true);
_local8.data = _local4;
_local8.method = (_arg1) ? "POST" : "GET";
try {
loader.load(_local8);
} catch(#InvalidMultinameIndex#) {
_local10 = !NULL!;
_local5 = _local10;
onError((("Exception: " + Std.string(_local5)) as String));
};
}
}
class A37 {
public const __enum__ = true;
public var tag;
public var index;
public var params;
public static const __isenum = true;
public static var __constructs__;
public static var NONE:A37;
public static var GEM3:A37;
public static var GEM2:A37;
public static var GEM1:A37;
public static var A23:A37;
public function A37(_arg1:String, _arg2:int, _arg3:Object):void{
tag = _arg1;
index = _arg2;
params = _arg3;
}
public function toString():String{
return (Boot_939315.enum_to_string(this));
}
}
class A16 {
public const __enum__ = true;
public var tag;
public var index;
public var params;
public static const __isenum = true;
public static var __constructs__;
public static var NOTHING:A16;
public static var BOMB:A16;
public static var A41:A16;
public static var A32:A16;
public static var A31:A16;
public static var A26:A16;
public function A16(_arg1:String, _arg2:int, _arg3:Object):void{
tag = _arg1;
index = _arg2;
params = _arg3;
}
public function toString():String{
return (Boot_939315.enum_to_string(this));
}
}
interface A33 {
}
interface A10 {
}
class A15 implements A10, A33 {
public var tstart:int;
public var dpo:DisplayObjectContainer;
public var child:Sprite;
public var a47:Sprite;
public var a25:A16;
public var a223:Number;
public var a222:Number;
public var a193:int;
public var a168:A35;
public var a143:int;
public var a130:int;
public function A15(_arg1:A35=undefined, _arg2:DisplayObjectContainer=undefined, _arg3:int=undefined, _arg4:int=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a143 = _arg3;
a130 = _arg4;
a168 = _arg1;
a25 = a168.a219.a17();
tstart = 20;
a193 = tstart;
dpo = _arg2;
a47 = new Sprite();
dpo.addChild(a47);
a200(((a168.a219.a198() * A35.a118) + (A35.a118 * 0.5)));
a196(((a168.a219.a197() * A35.a116) + (A35.a116 * 0.5)));
}
public function update():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4 = (null as A16);
var _local5 = (null as ColorMatrixFilter);
if ((a193 >= 0)){
a47.graphics.clear();
_local1 = a168.a219.a198();
_local2 = a168.a219.a197();
_local3 = (a193 / tstart);
_local4 = (a25 as A16);
if (_local4 == (A16.BOMB as A16)){
if ((child == (null as Sprite))){
child = new Explosion();
child.blendMode = BlendMode.ADD;
a47.addChild(child);
};
child.x = ((_local3 * 85) - 86);
child.y = ((_local3 * 85) - 87);
child.height = (170 * (1 - _local3));
child.width = (170 * (1 - _local3));
} else {
if (_local4 == (A16.A31 as A16)){
if ((child == (null as Sprite))){
child = new Beam();
child.height = ((A35.a116 * _local1) + (A35.a118 * 0.5));
child.y = -4;
child.x = 0;
child.blendMode = BlendMode.ADD;
child.rotation = 90;
a47.addChild(child);
};
} else {
if (_local4 == (A16.A26 as A16)){
if ((child == (null as Sprite))){
child = new Beam();
child.height = ((A35.a116 * (a143 - _local1)) - (A35.a118 * 0.5));
child.y = 5;
child.x = 0;
child.blendMode = BlendMode.ADD;
child.rotation = -90;
a47.addChild(child);
};
} else {
if (_local4 == (A16.A32 as A16)){
if ((child == (null as Sprite))){
child = new Beam();
child.height = ((A35.a116 * (a130 - _local2)) - (A35.a116 * 0.5));
child.y = 0;
child.x = -5;
child.blendMode = BlendMode.ADD;
a47.addChild(child);
};
} else {
if (_local4 == (A16.A41 as A16)){
if ((child == (null as Sprite))){
child = new Beam();
child.height = ((A35.a116 * _local2) + (A35.a116 * 0.5));
child.y = ((A35.a116 * -(_local2)) - (A35.a116 * 0.5));
child.x = -5;
child.blendMode = BlendMode.ADD;
a47.addChild(child);
};
} else {
if ((child == (null as Sprite))){
child = new Explosion();
a47.addChild(child);
};
child.x = ((_local3 * 20) - 20);
child.y = ((_local3 * 20) - 20);
child.height = (40 * (1 - _local3));
child.width = (40 * (1 - _local3));
};
};
};
};
};
if (!((child == (null as Sprite)))){
_local3 = (_local3 * _local3);
_local5 = (new ColorMatrixFilter() as ColorMatrixFilter);
_local5.matrix = [1, 0, 0, 0, 0.6, 0.6, 0.6, 0, 0, 0.6, 0.3, 0, 0.3, 0, 0.6, 0, 0, 0, _local3, 0];
child.filters = [_local5];
};
if ((a193 == 0)){
dpo.removeChild(a47);
};
a193 = (a193 - 1);
};
}
public function a202():Boolean{
return ((a193 >= 0));
}
public function a200(_arg1:Number):Number{
a47.x = _arg1;
var _local2:* = _arg1;
a222 = _local2;
return (_local2);
}
public function a198():Number{
return (a222);
}
public function a197():Number{
return (a223);
}
public function a196(_arg1:Number):Number{
a47.y = _arg1;
var _local2:* = _arg1;
a223 = _local2;
return (_local2);
}
}
class A35 extends Sprite {
public var ylast:int;
public var a223:Number;
public var a222:Number;
public var a219:A0;
public var a217:int;
public var a21:Sprite;
public var a109:Sprite;
public static var a118:Number;
public static var a116:Number;
public function A35(_arg1:A0=undefined, _arg2:Number=undefined, _arg3:Number=undefined):void{
var _local6:int;
var _local7:int;
if (Boot_939315.skip_constructor){
return;
};
super();
a219 = _arg1;
A35.a118 = _arg2;
A35.a116 = _arg3;
var _local4 = (new A13() as A13);
_local4.a136();
var _local5 = (a219.a66() as A37);
if (_local5 == (A37.GEM1 as A37)){
a109 = new Gem2();
} else {
if (_local5 == (A37.GEM3 as A37)){
a109 = new Gem3();
} else {
if (_local5 == (A37.A23 as A37)){
_local6 = _local4.a102(0, 2);
_local7 = _local6;
if (_local7 == 0){
a109 = new CrackedGem1();
} else {
if (_local7 == 1){
a109 = new CrackedGem2();
} else {
a109 = new CrackedGem3();
};
};
} else {
a109 = new Gem1();
};
};
};
addChild(a109);
var _local8 = (a219.a17() as A16);
if (_local8 == (A16.A26 as A16)){
a21 = new RightArrow();
a21.x = 11;
a21.y = 10;
} else {
if (_local8 == (A16.A31 as A16)){
a21 = new LeftArrow();
a21.x = 9;
a21.y = 10;
} else {
if (_local8 == (A16.A32 as A16)){
a21 = new DownArrow();
a21.x = 10;
a21.y = 12;
} else {
if (_local8 == (A16.A41 as A16)){
a21 = new UpArrow();
a21.x = 10;
a21.y = 10;
} else {
if (_local8 == (A16.BOMB as A16)){
a21 = new Bomb();
a21.x = 10;
a21.y = 10;
} else {
a21 = new Sprite();
};
};
};
};
};
var _local9 = (new ColorMatrixFilter() as ColorMatrixFilter);
a21.filters = [_local9];
_local9.matrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
addChild(a21);
}
public function update(_arg1:Object=undefined):void{
var _local3 = (null as ColorMatrixFilter);
var _local4 = (null as A37);
var _local2:Number = 0.7;
if (Math.isNaN(a222)){
a222 = a219.a198();
};
if (Math.isNaN(a223)){
a223 = a219.a197();
};
a222 = ((a219.a198() * (1 - _local2)) + (a222 * _local2));
a223 = ((a219.a197() * (1 - _local2)) + (a223 * _local2));
if (!(Math.abs((a222 - a219.a198())) > 0.01)){
true;
if (!(Math.abs((a223 - a219.a197())) > 0.01)){
true;
};
};
if (true){
_local3 = (new ColorMatrixFilter() as ColorMatrixFilter);
_local4 = (a219.a66() as A37);
if (_local4 == (A37.GEM1 as A37)){
_local3.matrix = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
} else {
if (_local4 == (A37.GEM2 as A37)){
_local3.matrix = [0.2, 0, 0, 0, 0, 0, 0.2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
} else {
if (_local4 == (A37.GEM3 as A37)){
_local3.matrix = [0, 0, 0, 0, 0, 0, 0.9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
} else {
if (_local4 == (A37.A23 as A37)){
} else {
if (_local4 == (A37.NONE as A37)){
//unresolved jump
};
};
};
};
};
a109.filters = [_local3];
x = Math.floor((a222 * A35.a118));
y = Math.floor((a223 * A35.a116));
};
}
}
class A0 {
public var a9:A9;
public var a31:A9;
public var a25:A16;
public var a223:int;
public var a222:int;
public var a164:A37;
public var a105:A9;
public var a101:A9;
public function A0(_arg1:int=undefined, _arg2:int=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a200(_arg1);
a196(_arg2);
a70(A37.GEM1);
a14(A16.NOTHING);
}
public function equals(_arg1:Object):Boolean{
if ((_arg1.a222 == a198())){
false;
if ((_arg1.a223 == a197())){
false;
};
};
return (false);
}
public function clone():A0{
var _local1 = (new A0(a198(), a197()) as A0);
_local1.a70(a66());
_local1.a14(a17());
return (_local1);
}
public function a70(_arg1:A37):A37{
if ((a31 == (null as A9))){
a31 = new A9(_arg1);
};
a164 = _arg1;
return (_arg1);
}
public function a66():A37{
return (a164);
}
public function a200(_arg1:int):int{
if ((a101 == (null as A9))){
a101 = new A9(_arg1);
};
a222 = _arg1;
return (_arg1);
}
public function a198():int{
return (a222);
}
public function a197():int{
return (a223);
}
public function a196(_arg1:int):int{
if ((a105 == (null as A9))){
a105 = new A9(_arg1);
};
a223 = _arg1;
return (_arg1);
}
public function a17():A16{
return (a25);
}
public function a14(_arg1:A16):A16{
if ((a9 == (null as A9))){
a9 = new A9(_arg1);
};
a25 = _arg1;
return (_arg1);
}
}
class A43 {
public var width:int;
public var height:int;
public var a223:int;
public var a222:int;
public var a211:Array;
public var a206:int;
public var a205:int;
public var a105:A9;
public var a101:A9;
public static var a18:Function;
public static var sounds:Sounds;
public function A43(_arg1:Object=undefined):void{
var _local3:* = null;
if (Boot_939315.skip_constructor){
return;
};
a211 = [];
a200(0);
a196(0);
var _local2:* = (_arg1.a211 as Array).iterator();
do {
//unresolved if
_local3 = _local2.next();
a211.push(_local3.clone());
if (((_local3.a198() + 1) > width)){
width = (_local3.a198() + 1);
};
if (((_local3.a197() + 1) > height)){
height = (_local3.a197() + 1);
};
} while (true);
a206 = _arg1.a214;
a205 = _arg1.a213;
}
public function move(_arg1:int, _arg2:int):Boolean{
var _local3 = (null as A43);
var _local4:* = null;
var _local5:* = null;
var _local6:* = null;
_local3 = (this as A43);
_local3.a200((_local3.a198() + _arg1));
_local3 = (this as A43);
_local3.a196((_local3.a197() + _arg2));
a206 = (a206 + _arg1);
a205 = (a205 + _arg2);
_local4 = a211.iterator();
do {
//unresolved if
_local5 = _local4.next();
_local6 = _local5;
_local6.a200((_local6.a198() + _arg1));
_local6 = _local5;
_local6.a196((_local6.a197() + _arg2));
} while (true);
if (!(a23())){
A43.sounds.bump();
_local3 = (this as A43);
_local3.a200((_local3.a198() - _arg1));
_local3 = (this as A43);
_local3.a196((_local3.a197() - _arg2));
a206 = (a206 - _arg1);
a205 = (a205 - _arg2);
_local4 = a211.iterator();
do {
//unresolved if
_local5 = _local4.next();
_local6 = _local5;
_local6.a200((_local6.a198() - _arg1));
_local6 = _local5;
_local6.a196((_local6.a197() - _arg2));
} while (true);
return (false);
};
return (true);
}
public function empty():void{
var _local1:* = a200(a196(0));
a205 = _local1;
a206 = _local1;
a211 = [];
}
public function a81():void{
var _local2:* = null;
var _local3:int;
var _local4:int;
var _local1:* = a211.iterator();
do {
//unresolved if
_local2 = _local1.next();
_local3 = (_local2.a198() - a198());
_local4 = ((height - 1) - (_local2.a197() - a197()));
_local2.a200((a198() + _local3));
_local2.a196((a197() + _local4));
} while (true);
a205 = (((height - 1) - (a205 - a197())) + a197());
if (!(a23())){
a81();
};
}
public function a59():void{
var _local2:* = null;
var _local3:int;
var _local4:int;
var _local1:* = a211.iterator();
do {
//unresolved if
_local2 = _local1.next();
_local3 = ((width - 1) - (_local2.a198() - a198()));
_local4 = (_local2.a197() - a197());
_local2.a200((a198() + _local3));
_local2.a196((a197() + _local4));
} while (true);
a206 = (((width - 1) - (a206 - a198())) + a198());
if (!(a23())){
a59();
};
}
public function a37(_arg1:int):A37{
var _local2:int = _arg1;
if (_local2 == 0){
return (A37.NONE);
} else {
if (_local2 == 1){
return (A37.GEM1);
} else {
if (_local2 == 2){
return (A37.GEM2);
} else {
if (_local2 == 3){
return (A37.GEM3);
} else {
if (_local2 == 8){
return (A37.A23);
//unresolved jump
};
};
};
};
};
return (A37.NONE);
}
public function a23():Boolean{
return (A43.a18(this));
}
public function a200(_arg1:int):int{
if ((a101 == (null as A9))){
a101 = new A9(_arg1);
};
a222 = _arg1;
return (_arg1);
}
public function a198():int{
return (a222);
}
public function a197():int{
return (a223);
}
public function a196(_arg1:int):int{
if ((a105 == (null as A9))){
a105 = new A9(_arg1);
};
a223 = _arg1;
return (_arg1);
}
public function a141():void{
var _local2:* = null;
var _local3:int;
var _local4:int;
var _local1:* = a211.iterator();
do {
//unresolved if
_local2 = _local1.next();
_local3 = (a205 - _local2.a197());
_local4 = (a206 - _local2.a198());
_local2.a200((a206 - _local3));
_local2.a196((a205 + _local4));
} while (true);
var _local5 = (this as A43);
_local5.a200((_local5.a198() + (width - 1)));
_local3 = (a206 - (a205 - a197()));
_local4 = (a205 + (a206 - a198()));
a200(_local3);
a196(_local4);
var _local6:int = width;
width = height;
height = _local6;
if (!(a23())){
a103();
};
}
public function a103():void{
var _local2:* = null;
var _local3:int;
var _local4:int;
var _local1:* = a211.iterator();
do {
//unresolved if
_local2 = _local1.next();
_local3 = (a205 - _local2.a197());
_local4 = (a206 - _local2.a198());
_local2.a200((a206 + _local3));
_local2.a196((a205 - _local4));
} while (true);
var _local5 = (this as A43);
_local5.a196((_local5.a197() + (height - 1)));
_local3 = (a206 + (a205 - a197()));
_local4 = (a205 - (a206 - a198()));
a200(_local3);
a196(_local4);
var _local6:int = width;
width = height;
height = _local6;
if (!(a23())){
a141();
};
}
}
class Lib {
public static var current:MovieClip;
public function Lib():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function getTimer():Number{
return (getTimer());
}
public static function eval(_arg1:String):Object{
var _local6:* = null;
var _local7:* = null;
var _local3 = (_arg1.split(".") as Array);
var _local4 = (new Array() as Array);
var _local5:* = null;
do {
//unresolved if
try {
_local5 = getDefinitionByName(_local3.join("."));
} catch(#InvalidMultinameIndex#) {
_local7 = !NULL!;
_local6 = _local7;
_local4.unshift(_local3.pop());
};
if (!((_local5 == null))){
break;
};
} while (true);
if ((_local5 == null)){
if ((_arg1 == "api")){
return (api);
};
return (null);
};
_local6 = _local4.iterator();
do {
//unresolved if
_local7 = _local6.next();
_local5 = _local5[_local7];
} while (true);
return (_local5);
}
public static function getURL(_arg1:URLRequest, _arg2:String=undefined):void{
var _local3:* = navigateToURL;
if ((_arg2 == (null as String))){
_local3(_arg1);
} else {
_local3(_arg1, _arg2);
};
}
public static function fscommand(_arg1:String, _arg2:Object=undefined):void{
fscommand(_arg1, _arg2);
}
public static function trace(_arg1:Object):void{
trace(_arg1);
}
}
class Gem1 extends Sprite {
public function Gem1():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Gem2 extends Sprite {
public function Gem2():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Gem3 extends Sprite {
public function Gem3():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class CrackedGem1 extends Sprite {
public function CrackedGem1():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class CrackedGem2 extends Sprite {
public function CrackedGem2():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class CrackedGem3 extends Sprite {
public function CrackedGem3():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Rock extends Sprite {
public function Rock():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Background extends Sprite {
public function Background():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Beam extends Sprite {
public function Beam():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Explosion extends Sprite {
public function Explosion():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class RightArrow extends Sprite {
public function RightArrow():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class LeftArrow extends Sprite {
public function LeftArrow():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class UpArrow extends Sprite {
public function UpArrow():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Bomb extends Sprite {
public function Bomb():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class DownArrow extends Sprite {
public function DownArrow():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class MainMenu extends Sprite {
public function MainMenu():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class BigMenu extends Sprite {
public function BigMenu():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class AudioIcon extends Sprite {
public function AudioIcon():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Disabled extends Sprite {
public function Disabled():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Sounds {
public var enabled:Boolean;
public function Sounds():void{
if (Boot_939315.skip_constructor){
return;
};
enabled = true;
}
public function bump():void{
var _local1 = (null as Bump);
if (enabled){
_local1 = (new Bump() as Bump);
_local1.play();
};
}
public function bomb():void{
var _local1 = (null as Bomb01);
if (enabled){
_local1 = (new Bomb01() as Bomb01);
_local1.play();
};
}
public function arrow():void{
var _local1 = (null as Arrow);
if (enabled){
_local1 = (new Arrow() as Arrow);
_local1.play();
};
}
public function a69():void{
var _local1 = (null as BlocksRemoved);
if (enabled){
_local1 = (new BlocksRemoved() as BlocksRemoved);
_local1.play();
};
}
}
class Bomb01 extends Sound {
public function Bomb01():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Bump extends Sound {
public function Bump():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class Arrow extends Sound {
public function Arrow():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class BlocksRemoved extends Sound {
public function BlocksRemoved():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
}
class A40 extends MovieClip {
public var _mochiad_loaded:Boolean;
public function A40():void{
if (Boot_939315.skip_constructor){
return;
};
super();
_mochiad_loaded = false;
}
}
class A11 {
public static var game:A1;
public static var a33:A4;
public function A11():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function start():void{
var _local4:* = null;
var _local5:* = null;
var _local2 = (Lib.current.stage.loaderInfo.url as String);
var _local3 = ("" as String);
(null as void);
if (!(_local2.indexOf(_local3) >= 0)){
true;
if (!(_local2.indexOf((("http://www." + _local3) as String)) >= 0)){
true;
};
};
if (true){
(null as void);
try {
A11.game = new A1(A11.a33);
A5.track(Lib.current, "1de77b6b");
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
(null as void);
};
} else {
(null as void);
Lib.getURL(new URLRequest((("http://" + _local3) as String)), "_blank");
};
}
public static function tst():void{
}
public static function main():void{
Firebug.redirectTraces();
var _local2:int = 1;
var _local3 = (new MovieClip() as MovieClip);
_local3 = (Lib.current as MovieClip);
Lib.current.stage.addChild(_local3);
A11.a33 = new A4("6bdd5b1bc9ca9a6d", "640x480", A11.start, A11.tst, 600000, _local3);
A11.a33.a65();
}
}
class Reflect {
public function Reflect():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function empty():Object{
return (new (Object));
}
public static function hasField(_arg1:Object, _arg2:String):Boolean{
return (_arg1.hasOwnProperty(_arg2));
}
public static function field(_arg1:Object, _arg2:String):Object{
return (_arg1[_arg2]);
}
public static function setField(_arg1:Object, _arg2:String, _arg3:Object):void{
_arg1[_arg2] = _arg3;
}
public static function callMethod(_arg1:Object, _arg2:Object, _arg3:Array):Object{
return (_arg2.apply(_arg1, _arg3));
}
public static function fields(_arg1:Object):Array{
if ((_arg1 == null)){
return (new Array());
};
var _local4:int;
var _local3 = ([] as Array);
var _local5:* = _arg1;
for (/*?*/in _arg1) {
_local3.push(//unresolved nextvalue or nextname);
};
var _local2 = (_local3 as Array);
_local4 = 0;
do {
//unresolved if
if (!(_arg1.hasOwnProperty((_local2[_local4] as String)))){
_local2.splice(_local4, 1);
} else {
_local4++;
};
} while (true);
return (_local2);
}
public static function isFunction(_arg1:Object):Boolean{
return ((typeof(_arg1) == "function"));
}
public static function compareMethods(_arg1:Object, _arg2:Object):Boolean{
if ((_arg1 == _arg2)){
return (true);
};
if (!!(Reflect.isFunction(_arg1))){
true;
};
if (true){
return (false);
};
return (false);
}
public static function isObject(_arg1:Object):Boolean{
var _local4:* = null;
var _local5:* = null;
if ((_arg1 == null)){
return (false);
};
var _local3 = (typeof(_arg1) as String);
if ((_local3 == "object")){
try {
if ((_arg1.__enum__ == true)){
return (false);
};
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
};
return (true);
};
return ((_local3 == "string"));
}
public static function deleteField(_arg1:Object, _arg2:String):Boolean{
if (!((_arg1.hasOwnProperty(_arg2) == true))){
return (false);
};
delete _arg1[_arg2];
return (true);
}
public static function copy(_arg1:Object):Object{
var _local4:* = null;
var _local2 = (Reflect.empty() as Object);
var _local3:* = Reflect.fields(_arg1).iterator();
do {
//unresolved if
_local4 = _local3.next();
Reflect.setField(_local2, _local4, Reflect.field(_arg1, _local4));
} while (true);
return (_local2);
}
public static function makeVarArgs(_arg1:Function):Object{
var f = _arg1;
return (function (... _args):Object{
return (f(_args));
});
}
}
class IntIter {
public var min:int;
public var max:int;
public function IntIter(_arg1:int=undefined, _arg2:int=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
min = _arg1;
max = _arg2;
}
public function next():int{
var _local1:* = min;
min = (_local1 + 1);
return (_local1);
}
public function hasNext():Boolean{
return ((min < max));
}
}
class ValueType {
public const __enum__ = true;
public var tag;
public var index;
public var params;
public static const __isenum = true;
public static var __constructs__;
public static var TUnknown:ValueType;
public static var TObject:ValueType;
public static var TNull:ValueType;
public static var TInt:ValueType;
public static var TFunction:ValueType;
public static var TFloat:ValueType;
public static var TBool:ValueType;
public function ValueType(_arg1:String, _arg2:int, _arg3:Object):void{
tag = _arg1;
index = _arg2;
params = _arg3;
}
public function toString():String{
return (Boot_939315.enum_to_string(this));
}
public static function TEnum(_arg1:Class):ValueType{
return (new ValueType("TEnum", 7, [_arg1]));
}
public static function TClass(_arg1:Class):ValueType{
return (new ValueType("TClass", 6, [_arg1]));
}
}
class Type {
public function Type():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function toEnum(_arg1:Object):Class{
var _local3:* = null;
var _local4:* = null;
try {
if (!(_arg1.__isenum)){
return ((null as Class));
};
return (_arg1);
} catch(#InvalidMultinameIndex#) {
_local4 = !NULL!;
_local3 = _local4;
};
return ((null as Class));
}
public static function toClass(_arg1:Object):Class{
var _local3:* = null;
var _local4:* = null;
try {
if (!(_arg1.hasOwnProperty("prototype"))){
return ((null as Class));
};
return (_arg1);
} catch(#InvalidMultinameIndex#) {
_local4 = !NULL!;
_local3 = _local4;
};
return ((null as Class));
}
public static function getClass(_arg1:Object):Class{
var _local2 = (getQualifiedClassName(_arg1) as String);
if (!(_local2 == "null")){
true;
if (!(_local2 == "Object")){
true;
if (!(_local2 == "int")){
true;
if (!(_local2 == "Number")){
true;
};
};
};
};
if (true){
return ((null as Class));
};
if (_arg1.hasOwnProperty("prototype")){
return ((null as Class));
};
var _local3:* = (getDefinitionByName(_local2) as Class);
if (_local3.__isenum){
return ((null as Class));
};
return (_local3);
}
public static function getEnum(_arg1:Object):Class{
var _local2 = (getQualifiedClassName(_arg1) as String);
if (!(_local2 == "null")){
true;
};
if (true){
return ((null as Class));
};
if (_arg1.hasOwnProperty("prototype")){
return ((null as Class));
};
var _local3:* = (getDefinitionByName(_local2) as Class);
if (!(_local3.__isenum)){
return ((null as Class));
};
return (_local3);
}
public static function getSuperClass(_arg1:Class):Class{
var _local2 = (getQualifiedSuperclassName(_arg1) as String);
if ((_local2 == "Object")){
return ((null as Class));
};
return ((getDefinitionByName(_local2) as Class));
}
public static function getClassName(_arg1:Class):String{
if ((_arg1 == (null as Class))){
return ((null as String));
};
var _local2 = (getQualifiedClassName(_arg1) as String);
return (_local2.split("::").join("."));
}
public static function getEnumName(_arg1:Class):String{
var _local2 = (getQualifiedClassName(_arg1) as String);
return (_local2);
}
public static function resolveClass(_arg1:String):Class{
var _local3 = (null as Class);
var _local4:* = null;
var _local5:* = null;
try {
_local3 = ((getDefinitionByName(_arg1) as Class) as Class);
if (_local3.__isenum){
return ((null as Class));
};
return (_local3);
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
return ((null as Class));
};
if (!(_local3 == (null as Class))){
true;
};
if (true){
return ((null as Class));
} else {
null;
};
return (_local3);
}
public static function resolveEnum(_arg1:String):Class{
var _local3:* = null;
var _local4:* = null;
var _local5:* = null;
try {
_local3 = getDefinitionByName(_arg1);
if (!(_local3.__isenum)){
return ((null as Class));
};
return (_local3);
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
return ((null as Class));
};
if (!(_local3 == null)){
true;
};
if (true){
return ((null as Class));
} else {
null;
};
return (_local3);
}
public static function createInstance(_arg1:Class, _arg2:Array):Object{
var _local3:int = _arg2.length;
if (_local3 == 0){
} else {
if (_local3 == 1){
} else {
if (_local3 == 2){
} else {
if (_local3 == 3){
} else {
if (_local3 == 4){
} else {
if (_local3 == 5){
} else {
throw ("Too many arguments");
};
};
};
};
};
};
return (!NULL!);
}
public static function createEmptyInstance(_arg1:Class):Object{
var _local3 = (null as Object);
var _local4:* = null;
var _local5:* = null;
try {
Boot_939315.skip_constructor = true;
_local3 = (new (_arg1) as Object);
Boot_939315.skip_constructor = false;
return (_local3);
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
Boot_939315.skip_constructor = false;
throw (_local4);
};
return ((null as Object));
}
public static function describe(_arg1:Object, _arg2:Boolean):Array{
var _local8:int;
var _local3 = (new Array() as Array);
var _local4:* = describeType(_arg1);
if (_arg2){
_local4 = _local4.factory;
};
var _local5:* = _local4.child("method");
var _local6:int;
var _local7:int = _local5.length();
do {
//unresolved if
_local8 = _local6;
_local6++;
_local3.push(Std.string(_local5[_local8].attribute("name")));
} while (true);
var _local9:* = _local4.child("variable");
_local6 = 0;
_local7 = _local9.length();
do {
//unresolved if
_local8 = _local6;
_local6++;
_local3.push(Std.string(_local9[_local8].attribute("name")));
} while (true);
return (_local3);
}
public static function getInstanceFields(_arg1:Class):Array{
return (Type.describe(_arg1, true));
}
public static function getClassFields(_arg1:Class):Array{
var _local2 = (Type.describe(_arg1, false) as Array);
_local2.remove("__construct__");
return (_local2);
}
public static function getEnumConstructs(_arg1:Class):Array{
return (_arg1.__constructs__);
}
public static function typeof(_arg1:Object):ValueType{
var _local5:* = null;
var _local6:* = null;
var _local7:* = null;
var _local3 = (getQualifiedClassName(_arg1) as String);
var _local4 = (_local3 as String);
if (_local4 == "null"){
return (ValueType.TNull);
} else {
if (_local4 == "void"){
return (ValueType.TNull);
} else {
if (_local4 == "int"){
return (ValueType.TInt);
} else {
if (_local4 == "Number"){
return (ValueType.TFloat);
} else {
if (_local4 == "Boolean"){
return (ValueType.TBool);
} else {
if (_local4 == "Object"){
return (ValueType.TObject);
} else {
try {
_local5 = getDefinitionByName(_local3);
if (_arg1.hasOwnProperty("prototype")){
return (ValueType.TObject);
};
if (_local5.__isenum){
return (ValueType.TEnum(_local5));
};
return (ValueType.TClass(_local5));
} catch(#InvalidMultinameIndex#) {
_local7 = !NULL!;
_local6 = _local7;
if (!(_local3 == "builtin.as$0::MethodClosure")){
true;
};
if (true){
return (ValueType.TFunction);
};
return (((_local5 == null)) ? ValueType.TFunction : ValueType.TClass(_local5));
};
};
};
};
};
};
};
return ((null as ValueType));
}
public static function enumEq(_arg1:Object, _arg2:Object):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:* = null;
var _local8:* = null;
if ((_arg1 == _arg2)){
return (true);
};
try {
if (!((_arg1.tag == _arg2.tag))){
return (false);
};
_local4 = 0;
_local5 = _arg1.params.length;
do {
//unresolved if
_local6 = _local4;
_local4++;
if (!(Type.enumEq(_arg1.params[_local6], _arg2.params[_local6]))){
return (false);
};
} while (true);
} catch(#InvalidMultinameIndex#) {
_local8 = !NULL!;
_local7 = _local8;
return (false);
};
return (true);
}
public static function enumConstructor(_arg1:Object):String{
return (_arg1.tag);
}
public static function enumParameters(_arg1:Object):Array{
return (((_arg1.params == null)) ? [] : _arg1.params);
}
public static function enumIndex(_arg1:Object):int{
return (_arg1.index);
}
}
class Firebug {
public function Firebug():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function detect():Boolean{
if (!(ExternalInterface.available)){
return (false);
};
return (!((ExternalInterface.call("console.error.toString") == null)));
}
public static function redirectTraces():void{
Log.trace = Firebug.trace;
}
public static function onError(_arg1:String, _arg2:Array):void{
var _local5:* = null;
var _local3 = (((_arg1 + "\n") as String) as String);
var _local4:* = _arg2.iterator();
do {
//unresolved if
_local5 = _local4.next();
_local3 = (((_local3 + ((("Called from " + _local5) + "\n") as String)) as String) as String);
} while (true);
Firebug.trace(_local3, null);
}
public static function trace(_arg1:Object, _arg2:Object=undefined):void{
var _local6:* = null;
var _local7:* = null;
if (!((_arg2 == null))){
false;
};
var _local4 = ((false) ? ((_arg2.customParams as Array)[0] as String) : (null as String) as String);
if (!((_local4 == "warn"))){
false;
if (!((_local4 == "info"))){
false;
if (!((_local4 == "debug"))){
false;
};
};
};
if (false){
_local4 = (((_arg2 == null)) ? "error" : "log" as String);
};
var _local5 = (((_arg2 == null)) ? "" : (((((((_arg2.fileName as String) + ":") as String) + _arg2.lineNumber) as String) + " : ") as String) as String);
try {
_local5 = (((_local5 + Std.string(_arg1)) as String) as String);
} catch(#InvalidMultinameIndex#) {
_local7 = !NULL!;
_local6 = _local7;
_local5 = (((_local5 + "????") as String) as String);
};
_local5 = (_local5.split("\\").join("\\\\") as String);
ExternalInterface.call((("console." + _local4) as String), _local5);
}
}
class StringBuf {
public var b:Object;
public function StringBuf():void{
if (Boot_939315.skip_constructor){
return;
};
b = "";
}
public function toString():String{
return (b);
}
public function addSub(_arg1:String, _arg2:int, _arg3:Object=undefined):void{
if ((_arg3 == null)){
b = (b + _arg1.substr(_arg2));
} else {
b = (b + _arg1.substr(_arg2, _arg3));
};
}
public function addChar(_arg1:int):void{
b = (b + String["fromCharCode"](_arg1));
}
public function add(_arg1:Object=undefined):void{
b = (b + _arg1);
}
}
class Log {
public static var trace;
public static var clear;
public static var setColor;
public function Log():void{
if (Boot_939315.skip_constructor){
return;
};
}
}
class Hash {
public var h:Object;
public function Hash():void{
if (Boot_939315.skip_constructor){
return;
};
h = new Dictionary();
}
public function toString():String{
var _local4 = (null as String);
var _local1 = (new StringBuf() as StringBuf);
_local1.add("{");
var _local2:* = keys();
var _local3:* = _local2;
do {
//unresolved if
_local4 = (_local3.next() as String);
_local1.add(_local4);
_local1.add(" => ");
_local1.add(Std.string(get(_local4)));
if (_local2.hasNext()){
_local1.add(", ");
};
} while (true);
_local1.add("}");
return (_local1.toString());
}
public function set(_arg1:String, _arg2:Object):void{
h[_arg1] = _arg2;
}
public function remove(_arg1:String):Boolean{
if (!(h.hasOwnProperty(_arg1))){
return (false);
};
delete h[_arg1];
return (true);
}
public function keys():Object{
var _local2:int;
var _local1 = ([] as Array);
var _local3:* = h;
for (/*?*/in h) {
_local1.push(//unresolved nextvalue or nextname);
};
return (_local1.iterator());
}
public function iterator():Object{
return ({ref:h, it:keys(), hasNext:function ():Object{
return (this.it.hasNext());
}, next:function ():Object{
var _local1:* = this.it.next();
return (this.ref[_local1]);
}});
}
public function get(_arg1:String):Object{
return (h[_arg1]);
}
public function exists(_arg1:String):Boolean{
return (h.hasOwnProperty(_arg1));
}
}
class Std {
public function Std():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function is(_arg1:Object, _arg2:Object):Boolean{
return (Boot_939315.__instanceof(_arg1, _arg2));
}
public static function string(_arg1:Object):String{
return (Boot_939315.__string_rec(_arg1, ""));
}
public static function int(_arg1:Number):int{
return (int(_arg1));
}
public static function bool(_arg1:Object):Boolean{
if (!((_arg1 === 0))){
false;
if (!((_arg1 == null))){
false;
};
};
return (false);
}
public static function parseInt(_arg1:String):Object{
var _local2:* = parseInt(_arg1);
if (isNaN(_local2)){
return (null);
};
return (_local2);
}
public static function parseFloat(_arg1:String):Number{
return (parseFloat(_arg1));
}
public static function chr(_arg1:int):String{
return (String.fromCharCode(_arg1));
}
public static function ord(_arg1:String):Object{
if ((_arg1 == "")){
return (null);
} else {
return (_arg1.charCodeAt(0));
};
}
public static function random(_arg1:int):int{
return (Math.floor((Math.random() * _arg1)));
}
public static function resource(_arg1:String):String{
return ((Boot_939315.__res[_arg1] as String));
}
}
class A21 {
public var value:Object;
public function A21(_arg1:Object=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
value = _arg1;
}
public function change(_arg1:Object):A21{
return (new A21(_arg1));
}
}
class A9 {
public var value:Object;
public var a210:Boolean;
public var a203:int;
public function A9(_arg1:Object=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a203 = 0;
value = _arg1;
}
public function set(_arg1:Object, _arg2:Object):A9{
var _local3 = (new A9(_arg2) as A9);
if (!!((value == _arg1))){
true;
};
_local3.a139(true);
return (_local3);
}
public function a139(_arg1:Boolean):Boolean{
a203 = (_arg1) ? 1 : 0;
return (_arg1);
}
public function a123():Boolean{
return ((a203 == 1));
}
}
class A27 {
public static var a117:Array;
public function A27():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function init():void{
A27.a117 = [];
}
public static function update():void{
var _local3:* = null;
var _local1 = ([] as Array);
var _local2:* = A27.a117.iterator();
do {
//unresolved if
_local3 = _local2.next();
_local3.update();
if (!(_local3.a202())){
_local1.push(_local3);
};
} while (true);
_local2 = _local1.iterator();
do {
//unresolved if
_local3 = _local2.next();
A27.a117.remove(_local3);
} while (true);
}
public static function a63(_arg1:A10):void{
A27.a117.push(_arg1);
}
}
class A13 {
public var seed:int;
public function A13():void{
if (Boot_939315.skip_constructor){
return;
};
seed = 1;
}
public function a195():Number{
seed = a187(seed);
if ((seed == 2147483647)){
seed = (seed - 1);
};
return ((seed / 2147483647));
}
public function a187(_arg1:int):int{
_arg1 = (_arg1 ^ 2007247053);
_arg1 = (_arg1 + ~((_arg1 << 15)));
_arg1 = (_arg1 ^ (_arg1 >> 10));
_arg1 = (_arg1 + (_arg1 << 3));
_arg1 = (_arg1 ^ (_arg1 >> 6));
_arg1 = (_arg1 + ~((_arg1 << 11)));
_arg1 = (_arg1 ^ (_arg1 >> 16));
return (_arg1);
}
public function a158():int{
var _local1:* = a187(seed);
seed = _local1;
return ((_local1 ^ -987038095));
}
public function a136():void{
seed = Math.floor((Math.random() * 134217727));
}
public function a102(_arg1:int, _arg2:int):int{
seed = a187(seed);
var _local3:int = ((_arg2 - _arg1) + 1);
return ((_arg1 + (seed % _local3)));
}
}
class Timing {
public var s:Number;
public var last:Number;
public var current:int;
public var a1:Array;
public function Timing():void{
if (Boot_939315.skip_constructor){
return;
};
if ((a1 == (null as Array))){
a1 = [0, 0, 0, 0, 0];
};
}
public function update():void{
var _local5:int;
var _local1:int = 5;
var _local2:Number = 0;
var _local3:int;
var _local4:int = _local1;
do {
//unresolved if
_local5 = _local3;
_local3++;
_local2 = (_local2 + a1[_local5]);
} while (true);
_local2 = (_local2 / _local1);
if ((current == 0)){
(null as void);
};
a1[current] = (Lib.getTimer() - last);
last = Lib.getTimer();
current = (current + 1);
if ((current > _local1)){
current = 0;
};
}
public function set():void{
s = Lib.getTimer();
}
public function get():void{
(null as void);
}
}
class Md5 {
public function Md5():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function encode(_arg1:String):String{
return (Md5.__jsflash_encode(_arg1));
}
public static function bitOR(_arg1:int, _arg2:int):int{
var _local3:int = ((_arg1 & 1) | (_arg2 & 1));
var _local4:int = ((_arg1 >>> 1) | (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
public static function bitXOR(_arg1:int, _arg2:int):int{
var _local3:int = ((_arg1 & 1) ^ (_arg2 & 1));
var _local4:int = ((_arg1 >>> 1) ^ (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
public static function bitAND(_arg1:int, _arg2:int):int{
var _local3:int = ((_arg1 & 1) & (_arg2 & 1));
var _local4:int = ((_arg1 >>> 1) & (_arg2 >>> 1));
return (((_local4 << 1) | _local3));
}
public static function addme(_arg1:int, _arg2:int):int{
var _local3:int = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:int = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function rhex(_arg1:int):String{
var _local6:int;
var _local2 = ("" as String);
var _local3 = ("0123456789abcdef" as String);
var _local4:int;
var _local5:int = 4;
do {
//unresolved if
_local6 = _local4;
_local4++;
_local2 = (((_local2 + ((_local3.charAt(((_arg1 >> ((_local6 * 8) + 4)) & 15)) + _local3.charAt(((_arg1 >> (_local6 * 8)) & 15))) as String)) as String) as String);
} while (true);
return (_local2);
}
public static function str2blks(_arg1:String):Array{
var _local6:int;
var _local2:int = (((_arg1.length + 8) >> 6) + 1);
var _local3 = (new Array() as Array);
var _local4:int;
var _local5:int = (_local2 * 16);
do {
//unresolved if
_local6 = _local4;
_local4++;
_local3[_local6] = 0;
} while (true);
_local4 = 0;
do {
//unresolved if
_local3[(_local4 >> 2)] = (_local3[(_local4 >> 2)] | (_arg1.charCodeAt(_local4) << ((((_arg1.length * 8) + _local4) % 4) * 8)));
_local4++;
} while (true);
_local3[(_local4 >> 2)] = (_local3[(_local4 >> 2)] | (128 << ((((_arg1.length * 8) + _local4) % 4) * 8)));
_local5 = (_arg1.length * 8);
_local3[((_local2 * 16) - 2)] = (_local5 & 0xFF);
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 8) & 0xFF) << 8));
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 16) & 0xFF) << 16));
_local3[((_local2 * 16) - 2)] = (_local3[((_local2 * 16) - 2)] | (((_local5 >>> 24) & 0xFF) << 24));
return (_local3);
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function cmn(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):int{
return (Md5.addme(Md5.rol(Md5.addme(Md5.addme(_arg2, _arg1), Md5.addme(_arg4, _arg6)), _arg5), _arg3));
}
public static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (Md5.cmn(Md5.bitOR(Md5.bitAND(_arg2, _arg3), Md5.bitAND(~(_arg2), _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (Md5.cmn(Md5.bitOR(Md5.bitAND(_arg2, _arg4), Md5.bitAND(_arg3, ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (Md5.cmn(Md5.bitXOR(Md5.bitXOR(_arg2, _arg3), _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (Md5.cmn(Md5.bitXOR(_arg3, Md5.bitOR(_arg2, ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function __jsflash_encode(_arg1:String):String{
var _local7:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local2 = (Md5.str2blks(_arg1) as Array);
var _local3:int = 1732584193;
var _local4:int = -271733879;
var _local5:int = -1732584194;
var _local6:int = 271733878;
var _local8:int;
do {
//unresolved if
_local9 = _local3;
_local10 = _local4;
_local11 = _local5;
_local12 = _local6;
_local7 = 0;
_local3 = Md5.ff(_local3, _local4, _local5, _local6, _local2[(_local8 + 0)], 7, -680876936);
_local6 = Md5.ff(_local6, _local3, _local4, _local5, _local2[(_local8 + 1)], 12, -389564586);
_local5 = Md5.ff(_local5, _local6, _local3, _local4, _local2[(_local8 + 2)], 17, 606105819);
_local4 = Md5.ff(_local4, _local5, _local6, _local3, _local2[(_local8 + 3)], 22, -1044525330);
_local3 = Md5.ff(_local3, _local4, _local5, _local6, _local2[(_local8 + 4)], 7, -176418897);
_local6 = Md5.ff(_local6, _local3, _local4, _local5, _local2[(_local8 + 5)], 12, 1200080426);
_local5 = Md5.ff(_local5, _local6, _local3, _local4, _local2[(_local8 + 6)], 17, -1473231341);
_local4 = Md5.ff(_local4, _local5, _local6, _local3, _local2[(_local8 + 7)], 22, -45705983);
_local3 = Md5.ff(_local3, _local4, _local5, _local6, _local2[(_local8 + 8)], 7, 1770035416);
_local6 = Md5.ff(_local6, _local3, _local4, _local5, _local2[(_local8 + 9)], 12, -1958414417);
_local5 = Md5.ff(_local5, _local6, _local3, _local4, _local2[(_local8 + 10)], 17, -42063);
_local4 = Md5.ff(_local4, _local5, _local6, _local3, _local2[(_local8 + 11)], 22, -1990404162);
_local3 = Md5.ff(_local3, _local4, _local5, _local6, _local2[(_local8 + 12)], 7, 1804603682);
_local6 = Md5.ff(_local6, _local3, _local4, _local5, _local2[(_local8 + 13)], 12, -40341101);
_local5 = Md5.ff(_local5, _local6, _local3, _local4, _local2[(_local8 + 14)], 17, -1502002290);
_local4 = Md5.ff(_local4, _local5, _local6, _local3, _local2[(_local8 + 15)], 22, 1236535329);
_local3 = Md5.gg(_local3, _local4, _local5, _local6, _local2[(_local8 + 1)], 5, -165796510);
_local6 = Md5.gg(_local6, _local3, _local4, _local5, _local2[(_local8 + 6)], 9, -1069501632);
_local5 = Md5.gg(_local5, _local6, _local3, _local4, _local2[(_local8 + 11)], 14, 643717713);
_local4 = Md5.gg(_local4, _local5, _local6, _local3, _local2[(_local8 + 0)], 20, -373897302);
_local3 = Md5.gg(_local3, _local4, _local5, _local6, _local2[(_local8 + 5)], 5, -701558691);
_local6 = Md5.gg(_local6, _local3, _local4, _local5, _local2[(_local8 + 10)], 9, 38016083);
_local5 = Md5.gg(_local5, _local6, _local3, _local4, _local2[(_local8 + 15)], 14, -660478335);
_local4 = Md5.gg(_local4, _local5, _local6, _local3, _local2[(_local8 + 4)], 20, -405537848);
_local3 = Md5.gg(_local3, _local4, _local5, _local6, _local2[(_local8 + 9)], 5, 568446438);
_local6 = Md5.gg(_local6, _local3, _local4, _local5, _local2[(_local8 + 14)], 9, -1019803690);
_local5 = Md5.gg(_local5, _local6, _local3, _local4, _local2[(_local8 + 3)], 14, -187363961);
_local4 = Md5.gg(_local4, _local5, _local6, _local3, _local2[(_local8 + 8)], 20, 1163531501);
_local3 = Md5.gg(_local3, _local4, _local5, _local6, _local2[(_local8 + 13)], 5, -1444681467);
_local6 = Md5.gg(_local6, _local3, _local4, _local5, _local2[(_local8 + 2)], 9, -51403784);
_local5 = Md5.gg(_local5, _local6, _local3, _local4, _local2[(_local8 + 7)], 14, 1735328473);
_local4 = Md5.gg(_local4, _local5, _local6, _local3, _local2[(_local8 + 12)], 20, -1926607734);
_local3 = Md5.hh(_local3, _local4, _local5, _local6, _local2[(_local8 + 5)], 4, -378558);
_local6 = Md5.hh(_local6, _local3, _local4, _local5, _local2[(_local8 + 8)], 11, -2022574463);
_local5 = Md5.hh(_local5, _local6, _local3, _local4, _local2[(_local8 + 11)], 16, 1839030562);
_local4 = Md5.hh(_local4, _local5, _local6, _local3, _local2[(_local8 + 14)], 23, -35309556);
_local3 = Md5.hh(_local3, _local4, _local5, _local6, _local2[(_local8 + 1)], 4, -1530992060);
_local6 = Md5.hh(_local6, _local3, _local4, _local5, _local2[(_local8 + 4)], 11, 1272893353);
_local5 = Md5.hh(_local5, _local6, _local3, _local4, _local2[(_local8 + 7)], 16, -155497632);
_local4 = Md5.hh(_local4, _local5, _local6, _local3, _local2[(_local8 + 10)], 23, -1094730640);
_local3 = Md5.hh(_local3, _local4, _local5, _local6, _local2[(_local8 + 13)], 4, 681279174);
_local6 = Md5.hh(_local6, _local3, _local4, _local5, _local2[(_local8 + 0)], 11, -358537222);
_local5 = Md5.hh(_local5, _local6, _local3, _local4, _local2[(_local8 + 3)], 16, -722521979);
_local4 = Md5.hh(_local4, _local5, _local6, _local3, _local2[(_local8 + 6)], 23, 76029189);
_local3 = Md5.hh(_local3, _local4, _local5, _local6, _local2[(_local8 + 9)], 4, -640364487);
_local6 = Md5.hh(_local6, _local3, _local4, _local5, _local2[(_local8 + 12)], 11, -421815835);
_local5 = Md5.hh(_local5, _local6, _local3, _local4, _local2[(_local8 + 15)], 16, 530742520);
_local4 = Md5.hh(_local4, _local5, _local6, _local3, _local2[(_local8 + 2)], 23, -995338651);
_local3 = Md5.ii(_local3, _local4, _local5, _local6, _local2[(_local8 + 0)], 6, -198630844);
_local6 = Md5.ii(_local6, _local3, _local4, _local5, _local2[(_local8 + 7)], 10, 1126891415);
_local5 = Md5.ii(_local5, _local6, _local3, _local4, _local2[(_local8 + 14)], 15, -1416354905);
_local4 = Md5.ii(_local4, _local5, _local6, _local3, _local2[(_local8 + 5)], 21, -57434055);
_local3 = Md5.ii(_local3, _local4, _local5, _local6, _local2[(_local8 + 12)], 6, 1700485571);
_local6 = Md5.ii(_local6, _local3, _local4, _local5, _local2[(_local8 + 3)], 10, -1894986606);
_local5 = Md5.ii(_local5, _local6, _local3, _local4, _local2[(_local8 + 10)], 15, -1051523);
_local4 = Md5.ii(_local4, _local5, _local6, _local3, _local2[(_local8 + 1)], 21, -2054922799);
_local3 = Md5.ii(_local3, _local4, _local5, _local6, _local2[(_local8 + 8)], 6, 1873313359);
_local6 = Md5.ii(_local6, _local3, _local4, _local5, _local2[(_local8 + 15)], 10, -30611744);
_local5 = Md5.ii(_local5, _local6, _local3, _local4, _local2[(_local8 + 6)], 15, -1560198380);
_local4 = Md5.ii(_local4, _local5, _local6, _local3, _local2[(_local8 + 13)], 21, 1309151649);
_local3 = Md5.ii(_local3, _local4, _local5, _local6, _local2[(_local8 + 4)], 6, -145523070);
_local6 = Md5.ii(_local6, _local3, _local4, _local5, _local2[(_local8 + 11)], 10, -1120210379);
_local5 = Md5.ii(_local5, _local6, _local3, _local4, _local2[(_local8 + 2)], 15, 718787259);
_local4 = Md5.ii(_local4, _local5, _local6, _local3, _local2[(_local8 + 9)], 21, -343485551);
_local3 = Md5.addme(_local3, _local9);
_local4 = Md5.addme(_local4, _local10);
_local5 = Md5.addme(_local5, _local11);
_local6 = Md5.addme(_local6, _local12);
_local8 = (_local8 + 16);
} while (true);
return (((((((Md5.rhex(_local3) + Md5.rhex(_local4)) as String) + Md5.rhex(_local5)) as String) + Md5.rhex(_local6)) as String));
}
}
class A7 extends Sprite {
public var yc:Number;
public var xc:Number;
public var top:int;
public var layers:Array;
public var a140:int;
public var a112:int;
public function A7(_arg1:int=undefined):void{
var _local4:int;
if (Boot_939315.skip_constructor){
return;
};
super();
layers = [];
top = (_arg1 - 1);
var _local2:int;
var _local3:int = _arg1;
do {
//unresolved if
_local4 = _local2;
_local2++;
layers[_local4] = new Sprite();
addChild((layers[_local4] as Sprite));
} while (true);
xc = 0;
yc = 0;
a140 = 640;
a112 = 480;
}
public function remove(_arg1:Sprite):void{
var _local4:int;
var _local2:int;
var _local3:int = (top + 1);
do {
//unresolved if
_local4 = _local2;
_local2++;
if ((layers[_local4] as Sprite).contains(_arg1)){
(layers[_local4] as Sprite).removeChild(_arg1);
break;
};
} while (true);
}
public function clear():void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local8:* = null;
var _local1:int;
var _local2:int = (top + 1);
do {
//unresolved if
_local3 = _local1;
_local1++;
_local4 = 0;
_local5 = (layers[_local3] as Sprite).numChildren;
do {
//unresolved if
_local6 = _local4;
_local4++;
(layers[_local3] as Sprite).removeChildAt(0);
} while (true);
} while (true);
_local1 = 0;
_local2 = numChildren;
do {
//unresolved if
_local3 = _local1;
_local1++;
removeChildAt(0);
} while (true);
var _local7:* = layers.iterator();
do {
//unresolved if
_local8 = _local7.next();
addChild(_local8);
} while (true);
scrollRect = new Rectangle(0, 0, a140, a112);
x = 0;
y = 0;
}
public function center(_arg1:Number, _arg2:Number):void{
var _local3:Number = 0.7;
xc = ((_local3 * xc) + ((1 - _local3) * _arg1));
yc = ((_local3 * yc) + ((1 - _local3) * _arg2));
scrollRect = new Rectangle((xc - (a140 / 2)), (yc - (a112 / 2)), a140, a112);
}
public function add(_arg1:int, _arg2:DisplayObject):void{
(layers[_arg1] as Sprite).addChild(_arg2);
}
public function a90():Sprite{
return ((layers[top] as Sprite));
}
}
dynamic class Boot_939315 extends MovieClip {
public static var init:Function;
public static var tf:TextField;
public static var lines:Array;
public static var __res:Dictionary;
public static var skip_constructor:Boolean;
public function Boot_939315(_arg1:MovieClip=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
super();
var _local2:* = Array.prototype;
_local2.copy = function ():Object{
return (this.slice());
};
_local2.insert = function (_arg1:Object, _arg2:Object):void{
this.splice(_arg1, 0, _arg2);
};
_local2.remove = function (_arg1:Object):Boolean{
var _local4:int;
var _local2:int;
var _local3:int = this.length;
do {
//unresolved if
_local4 = _local2;
_local2++;
if ((this[_local4] == _arg1)){
this.splice(_local4, 1);
return (true);
};
} while (true);
return (false);
};
_local2.iterator = function ():Object{
return ({cur:0, arr:this, hasNext:function ():Boolean{
return ((this.cur < this.arr.length));
}, next:function ():Object{
var _local1:* = this.cur;
this.cur = (_local1 + 1);
return (this.arr[_local1]);
}});
};
??getglobalscope
.Boolean = Boolean;
??getglobalscope
.int = int;
??getglobalscope
.Number = Number;
??getglobalscope
.Dynamic = {toString:function ():String{
return ("Dynamic");
}};
var cca:* = String.prototype.charCodeAt;
String.prototype.charCodeAt = function (_arg1:Object):Object{
var _local2:* = cca.call(this, _arg1);
if (isNaN(_local2)){
return (null);
};
return (_local2);
};
Boot_939315.lines = new Array();
Lib.current = ((_arg1 == (null as MovieClip))) ? (this as MovieClip) : _arg1;
if (!((Boot_939315.init == null))){
Boot_939315.init();
};
}
public static function enum_to_string(_arg1:Object):String{
if ((_arg1.params == null)){
return ((_arg1.tag as String));
};
return ((((((((_arg1.tag as String) + "(") as String) + _arg1.params.join(",")) as String) + ")") as String));
}
public static function __instanceof(_arg1:Object, _arg2:Object):Boolean{
var _local4:* = null;
var _local5:* = null;
try {
if ((_arg2 === Dynamic)){
return (true);
};
return ((_arg1 is _arg2));
} catch(#InvalidMultinameIndex#) {
_local5 = !NULL!;
_local4 = _local5;
};
return (false);
}
public static function __clear_trace():void{
if ((Boot_939315.tf == (null as TextField))){
return;
};
Lib.current.removeChild(Boot_939315.tf);
Boot_939315.tf = (null as TextField);
Boot_939315.lines = new Array();
}
public static function __set_trace_color(_arg1:uint):void{
Boot_939315.getTrace().textColor = _arg1;
}
public static function getTrace():TextField{
var _local2 = (null as TextFormat);
var _local1 = (Lib.current as MovieClip);
if ((Boot_939315.tf == (null as TextField))){
Boot_939315.tf = new TextField();
_local2 = (Boot_939315.tf.getTextFormat() as TextFormat);
_local2.font = "_sans";
Boot_939315.tf.defaultTextFormat = _local2;
Boot_939315.tf.selectable = false;
Boot_939315.tf.width = _local1.stage.stageWidth;
Boot_939315.tf.autoSize = TextFieldAutoSize.LEFT;
Boot_939315.tf.mouseEnabled = false;
};
_local1.addChild(Boot_939315.tf);
return (Boot_939315.tf);
}
public static function __trace(_arg1:Object, _arg2:Object):void{
var _local3 = (Boot_939315.getTrace() as TextField);
var _local4 = (((_arg2 == null)) ? "(null)" : (((((_arg2.fileName as String) + ":") as String) + _arg2.lineNumber) as String) as String);
Boot_939315.lines = Boot_939315.lines.concat(((((_local4 + ": ") as String) + Boot_939315.__string_rec(_arg1, "")) as String).split("\n"));
_local3.text = Boot_939315.lines.join("\n");
var _local5 = (Lib.current.stage as Stage);
if ((_local5 == (null as Stage))){
throw ("Loaded movie not ready to trace, wait a few frames");
};
do {
//unresolved if
Boot_939315.lines.shift();
_local3.text = Boot_939315.lines.join("\n");
} while (true);
}
public static function __string_rec(_arg1:Object, _arg2:String):String{
var _local4 = (null as String);
var _local5 = (null as Array);
var _local6 = (null as Array);
var _local7:int;
var _local8:* = null;
var _local9 = (null as String);
var _local10:Boolean;
var _local11:int;
var _local12:int;
var _local13 = (null as String);
var _local14:* = null;
var _local3 = (getQualifiedClassName(_arg1) as String);
_local4 = (_local3 as String);
if (_local4 == "Object"){
_local7 = 0;
_local6 = ([] as Array);
_local8 = _arg1;
for (/*?*/in _arg1) {
_local6.push(//unresolved nextvalue or nextname);
};
_local5 = (_local6 as Array);
_local9 = ("{" as String);
_local10 = true;
_local7 = 0;
_local11 = _local5.length;
do {
//unresolved if
_local12 = _local7;
_local7++;
_local13 = ((_local5[_local12] as String) as String);
if (_local10){
_local10 = false;
} else {
_local9 = (((_local9 + ",") as String) as String);
};
_local9 = (((_local9 + ((((((" " + _local13) as String) + " : ") as String) + Boot_939315.__string_rec(_arg1[_local13], _arg2)) as String)) as String) as String);
} while (true);
if (!(_local10)){
_local9 = (((_local9 + " ") as String) as String);
};
_local9 = (((_local9 + "}") as String) as String);
return (_local9);
} else {
if (_local4 == "Array"){
_local9 = ("[" as String);
_local10 = true;
_local7 = 0;
_local14 = _arg1.length;
do {
//unresolved if
_local11 = _local7;
_local7++;
if (_local10){
_local10 = false;
} else {
_local9 = (((_local9 + ",") as String) as String);
};
_local9 = (((_local9 + Boot_939315.__string_rec(_arg1[_local11], _arg2)) as String) as String);
} while (true);
return (((_local9 + "]") as String));
} else {
_local4 = (typeof(_arg1) as String);
if (_local4 == "function"){
return ("<function>");
//unresolved jump
};
};
};
return (new String(_arg1));
}
}
interface A24 {
}
class A30 extends Sprite {
public var on_click:Function;
public var a83:Boolean;
public function A30(_arg1:Function=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
super();
on_click = _arg1;
a83 = false;
addEventListener(MouseEvent.MOUSE_DOWN, mdown, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mup, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mover, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mout, false, 0, true);
Lib.current.stage.addEventListener("mouseUp", a13, false, 0, true);
a178();
}
public function mup(_arg1:Object=undefined):void{
if (a83){
mouse_up();
a83 = false;
on_click();
};
}
public function mover(_arg1:Object=undefined):void{
a172();
if (a83){
a149();
};
}
public function mout(_arg1:Object=undefined):void{
a178();
}
public function mouse_up():void{
}
public function mdown(_arg1:Object=undefined):void{
a149();
a83 = true;
}
public function a178():void{
}
public function a172():void{
}
public function a149():void{
}
public function a13(_arg1:Object=undefined):void{
a83 = false;
}
}
class Text {
public function Text():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function a60(_arg1:TextField, _arg2:int, _arg3:uint):void{
_arg1.embedFonts = true;
_arg1.defaultTextFormat = new TextFormat("Font01", _arg2);
_arg1.textColor = _arg3;
_arg1.autoSize = "left";
_arg1.mouseEnabled = false;
}
public static function a19(_arg1:TextField, _arg2:int, _arg3:uint):void{
_arg1.embedFonts = true;
_arg1.defaultTextFormat = new TextFormat("Font01", _arg2);
_arg1.textColor = _arg3;
_arg1.autoSize = "left";
}
}
class A36 extends TextField {
public var over:Function;
public var out:Function;
public var a134:Boolean;
public var _width:int;
public var _height:int;
public function A36():void{
if (Boot_939315.skip_constructor){
return;
};
super();
addEventListener(MouseEvent.MOUSE_OVER, a172, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, a178, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, a149, false, 0, true);
var _local1:* = 25;
_height = _local1;
height = _local1;
_local1 = 200;
_width = _local1;
width = _local1;
embedFonts = true;
defaultTextFormat = new TextFormat("Font01", 20);
textColor = 0xFFFFFF;
a134 = true;
maxChars = 15;
restrict = "a-zA-Z0-9";
type = TextFieldType.INPUT;
}
public function a178(_arg1:Object=undefined):void{
}
public function a172(_arg1:Object=undefined):void{
}
public function a149(_arg1:Object=undefined):void{
if (a134){
a134 = false;
text = "";
};
}
}
class A19 extends A30 {
public var a216:int;
public var a215:int;
public var a160:A36;
public var _width:int;
public function A19():void{
if (Boot_939315.skip_constructor){
return;
};
a160 = new A36();
Text.a19(a160, 15, 0xFFFF00);
a160.y = (a160.y + 5);
addChild(a160);
_width = 340;
super(a171);
}
public function set_text(_arg1:String):void{
a160.text = _arg1;
a178();
}
override public function mouse_up():void{
}
override public function a178():void{
filters = [];
graphics.clear();
graphics.beginFill(0xCC7700);
graphics.drawRect(-5, 5, (_width + 10), (a160.height + 5));
graphics.endFill();
graphics.lineStyle(1, 0xEE9900);
graphics.moveTo(-5, 5);
graphics.lineTo(-5, (a160.height + 10));
graphics.moveTo((_width + 5), 5);
graphics.lineTo((_width + 5), (a160.height + 10));
graphics.lineStyle(1, 0x995500);
graphics.moveTo((_width + 5), 5);
graphics.lineTo(-5, 5);
graphics.lineStyle(1, 16764040);
graphics.moveTo((_width + 5), (a160.height + 10));
graphics.lineTo(-5, (a160.height + 10));
graphics.moveTo(0, 0);
filters = [];
}
override public function a172():void{
var _local1 = (new GlowFilter() as GlowFilter);
_local1.strength = 2;
_local1.blurX = 3;
_local1.blurY = 3;
_local1.color = 0xFFAA00;
_local1.quality = 10;
filters = [_local1];
}
public function a171():void{
}
override public function a149():void{
}
}
class A12 extends A30 {
public var a157:Sprite;
public var a154:Sprite;
public function A12(_arg1:Function=undefined, _arg2:Sprite=undefined, _arg3:Sprite=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a157 = _arg2;
a154 = _arg3;
a154.visible = false;
addChild(a157);
a157.addChild(a154);
super(_arg1);
}
public function enable():void{
a154.visible = false;
}
public function disable():void{
a154.visible = true;
}
override public function a178():void{
}
override public function a172():void{
}
}
class A18 extends A30 {
public var a216:int;
public var a215:int;
public var a167:TextField;
public function A18(_arg1:Function=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a167 = new TextField();
Text.a60(a167, 20, 0xFFFF00);
addChild(a167);
super(_arg1);
}
public function set_text(_arg1:String):void{
a167.text = _arg1;
a178();
}
override public function mouse_up():void{
a178();
}
override public function a178():void{
filters = [];
graphics.clear();
graphics.beginFill(0xB06000);
graphics.drawRect(-5, 5, (a167.width + 10), (a167.height - 5));
graphics.endFill();
graphics.lineStyle(1, 0xEE9900);
graphics.moveTo(-5, 5);
graphics.lineTo(-5, a167.height);
graphics.moveTo((a167.width + 5), 5);
graphics.lineTo((a167.width + 5), a167.height);
graphics.lineStyle(1, 16764040);
graphics.moveTo((a167.width + 5), 5);
graphics.lineTo(-5, 5);
graphics.lineStyle(1, 0x995500);
graphics.moveTo((a167.width + 5), a167.height);
graphics.lineTo(-5, a167.height);
graphics.moveTo(0, 0);
}
override public function a172():void{
var _local1 = (new GlowFilter() as GlowFilter);
_local1.strength = 2;
_local1.blurX = 3;
_local1.blurY = 3;
_local1.color = 0xFFAA00;
_local1.quality = 10;
filters = [_local1];
}
override public function a149():void{
graphics.clear();
graphics.beginFill(0xCC7700);
graphics.drawRect(-5, 5, (a167.width + 10), (a167.height - 5));
graphics.endFill();
graphics.lineStyle(1, 0xEE9900);
graphics.moveTo(-5, 5);
graphics.lineTo(-5, a167.height);
graphics.moveTo((a167.width + 5), 5);
graphics.lineTo((a167.width + 5), a167.height);
graphics.lineStyle(1, 0x995500);
graphics.moveTo((a167.width + 5), 5);
graphics.lineTo(-5, 5);
graphics.lineStyle(1, 16764040);
graphics.moveTo((a167.width + 5), a167.height);
graphics.lineTo(-5, a167.height);
graphics.moveTo(0, 0);
filters = [];
}
}
class A14 extends A30 {
public function A14(_arg1:Function=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
super(_arg1);
new Sprite();
graphics.beginFill(0xFF0000);
graphics.drawRect(10, 10, 10, 10);
}
override public function mouse_up():void{
(null as void);
}
override public function a178():void{
(null as void);
}
override public function a172():void{
(null as void);
}
override public function a149():void{
(null as void);
}
}
class A5 extends Sprite {
public function A5():void{
if (Boot_939315.skip_constructor){
return;
};
super();
}
public static function track(_arg1:Sprite, _arg2:String):A5{
if ((Security.sandboxType == "localWithFile")){
return ((null as A5));
};
var _local3 = (new A5() as A5);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = ("http://core.mochibot.com/my/core.swf" as String);
var _local5:* = new URLVariables();
_local5.sb = Security.sandboxType;
_local5.v = Capabilities.version;
_local5.swfid = _arg2;
_local5.mv = "8";
_local5.fv = "9";
var _local6 = (_local3.root.loaderInfo.loaderURL as String);
if ((_local6.indexOf("http") == 0)){
_local5.url = _local6;
} else {
_local5.url = "local";
};
var _local7 = (new URLRequest(_local4) as URLRequest);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8 = (new Loader() as Loader);
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
class A4 {
public var ad_timer:Timer;
public var a88:Object;
public var a8:Boolean;
public var a51:int;
public var a3:Function;
public var a27:Timer;
public var a131:TextField;
public var a119:Function;
public function A4(_arg1:String=undefined, _arg2:String=undefined, _arg3:Function=undefined, _arg4:Function=undefined, _arg5:int=undefined, _arg6:MovieClip=undefined):void{
if (Boot_939315.skip_constructor){
return;
};
a88 = {id:_arg1, res:_arg2};
a88.clip = _arg6;
a88.a119 = a55;
a51 = _arg5;
a8 = false;
a100();
a119 = _arg3;
a3 = _arg4;
}
public function a72():void{
ad_timer.removeEventListener(TimerEvent.TIMER, a4);
}
public function a7(_arg1:Function):void{
a3 = _arg1;
}
public function a65():void{
a27 = new Timer(12000);
a27.addEventListener(TimerEvent.TIMER, a114);
a27.start();
A3.a92(a88);
}
public function a62():void{
if (a8){
a8 = false;
a100();
a27 = new Timer(12000);
a27.addEventListener(TimerEvent.TIMER, a12);
a27.start();
A3.a50(a88);
} else {
(null as void);
a2();
};
}
public function a6():void{
a119();
}
public function a55():void{
a88.a119 = a5;
if (a156()){
a106();
};
}
public function a5():void{
if (a156()){
a106();
};
}
public function a4(_arg1:Object=undefined):void{
a8 = true;
a72();
}
public function a2():void{
a3();
}
public function a156():Boolean{
return (A3.failed);
}
public function a128():void{
if (!((a131 == (null as TextField)))){
Lib.current.stage.removeChild(a131);
a131 = (null as TextField);
};
}
public function a12(_arg1:Object=undefined):void{
a27.removeEventListener(TimerEvent.TIMER, a114);
a128();
A3.unload(a88.clip);
a2();
}
public function a114(_arg1:Object=undefined):void{
a27.removeEventListener(TimerEvent.TIMER, a114);
a128();
(null as void);
A3.unload(a88.clip);
a119();
}
public function a106():void{
a131 = new TextField();
a131.embedFonts = true;
a131.defaultTextFormat = new TextFormat("Font01", 20);
a131.textColor = 0xFFFFFF;
a131.autoSize = "left";
a131.mouseEnabled = false;
a131.text = "Failed to load ads, please wait 15 seconds.";
Lib.current.stage.addChild(a131);
}
public function a100():void{
if (!(a8)){
if (!((ad_timer == (null as Timer)))){
ad_timer.removeEventListener(TimerEvent.TIMER, a4);
};
ad_timer = new Timer(a51);
ad_timer.addEventListener(TimerEvent.TIMER, a4);
ad_timer.start();
};
}
}
class StringTools {
public function StringTools():void{
if (Boot_939315.skip_constructor){
return;
};
}
public static function urlEncode(_arg1:String):String{
return (encodeURIComponent(_arg1));
}
public static function urlDecode(_arg1:String):String{
return (decodeURIComponent(_arg1.split("+").join(" ")));
}
public static function htmlEscape(_arg1:String):String{
return (_arg1.split("&").join("&").split("<").join("<").split(">").join(">"));
}
public static function htmlUnescape(_arg1:String):String{
return (_arg1.split(">").join(">").split("<").join("<").split("&").join("&"));
}
public static function startsWith(_arg1:String, _arg2:String):Boolean{
if ((_arg1.length >= _arg2.length)){
false;
};
return (false);
}
public static function endsWith(_arg1:String, _arg2:String):Boolean{
var _local3:int = _arg2.length;
var _local4:int = _arg1.length;
if ((_local4 >= _local3)){
false;
};
return (false);
}
public static function isSpace(_arg1:String, _arg2:int):Boolean{
var _local3:* = _arg1.charCodeAt(_arg2);
if ((_local3 >= 9)){
false;
};
if (!false){
true;
};
return (true);
}
public static function ltrim(_arg1:String):String{
var _local2:int = _arg1.length;
var _local3:int;
do {
if ((_local3 < _local2)){
false;
};
//unresolved if
_local3++;
} while (true);
if ((_local3 > 0)){
return (_arg1.substr(_local3, (_local2 - _local3)));
} else {
return (_arg1);
};
}
public static function rtrim(_arg1:String):String{
var _local2:int = _arg1.length;
var _local3:int;
do {
if ((_local3 < _local2)){
false;
};
//unresolved if
_local3++;
} while (true);
if ((_local3 > 0)){
return (_arg1.substr(0, (_local2 - _local3)));
} else {
return (_arg1);
};
}
public static function trim(_arg1:String):String{
return (StringTools.ltrim(StringTools.rtrim(_arg1)));
}
public static function rpad(_arg1:String, _arg2:String, _arg3:int):String{
var _local4:int = _arg1.length;
var _local5:int = _arg2.length;
do {
//unresolved if
if (((_arg3 - _local4) < _local5)){
_arg1 = (((_arg1 + _arg2.substr(0, (_arg3 - _local4))) as String) as String);
_local4 = _arg3;
} else {
_arg1 = (((_arg1 + _arg2) as String) as String);
_local4 = (_local4 + _local5);
};
} while (true);
return (_arg1);
}
public static function lpad(_arg1:String, _arg2:String, _arg3:int):String{
var _local4 = ("" as String);
var _local5:int = _arg1.length;
if ((_local5 >= _arg3)){
return (_arg1);
};
var _local6:int = _arg2.length;
do {
//unresolved if
if (((_arg3 - _local5) < _local6)){
_local4 = (((_local4 + _arg2.substr(0, (_arg3 - _local5))) as String) as String);
_local5 = _arg3;
} else {
_local4 = (((_local4 + _arg2) as String) as String);
_local5 = (_local5 + _local6);
};
} while (true);
return (((_local4 + _arg1) as String));
}
public static function replace(_arg1:String, _arg2:String, _arg3:String):String{
return (_arg1.split(_arg2).join(_arg3));
}
public static function baseEncode(_arg1:String, _arg2:String):String{
var _local11:* = null;
var _local12:* = null;
var _local3:int = _arg2.length;
var _local4:int = 1;
do {
//unresolved if
_local4++;
} while (true);
if (!(_local4 > 8)){
true;
};
if (true){
throw ("baseEncode: base must be a power of two.");
};
var _local5:int = Std.int(((((_arg1.length * 8) + _local4) - 1) / _local4));
var _local6 = (new StringBuf() as StringBuf);
var _local7:int;
var _local8:int;
var _local9:int = ((1 << _local4) - 1);
var _local10:int;
do {
_local11 = _local5;
_local5 = (_local11 - 1);
//unresolved if
do {
//unresolved if
_local8 = (_local8 + 8);
_local7 = (_local7 << 8);
_local12 = _local10;
_local10 = (_local12 + 1);
_local11 = _arg1.charCodeAt(_local12);
if ((_local11 > 0xFF)){
throw ("baseEncode: bad chars");
};
_local7 = (_local7 | _local11);
} while (true);
_local8 = (_local8 - _local4);
_local6.addChar(_arg2.charCodeAt(((_local7 >> _local8) & _local9)));
} while (true);
return (_local6.toString());
}
public static function baseDecode(_arg1:String, _arg2:String):String{
var _local9:int;
var _local12:* = null;
var _local13:int;
var _local3:int = _arg2.length;
var _local4:int = 1;
do {
//unresolved if
_local4++;
} while (true);
if (!(_local4 > 8)){
true;
};
if (true){
throw ("baseDecode: base must be a power of two.");
};
var _local5:Number = ((((_arg1.length * 8) + _local4) - 1) / _local4);
var _local6 = (new Array() as Array);
var _local7:int;
var _local8:int = 0x0100;
do {
//unresolved if
_local9 = _local7;
_local7++;
_local6[_local9] = -1;
} while (true);
_local7 = 0;
_local8 = _local3;
do {
//unresolved if
_local9 = _local7;
_local7++;
_local6[_arg2.charCodeAt(_local9)] = _local9;
} while (true);
var _local10:Number = ((_arg1.length * _local4) / 8);
var _local11 = (new StringBuf() as StringBuf);
_local7 = 0;
_local8 = 0;
_local9 = 0;
do {
_local12 = _local10;
_local10 = (_local12 - 1);
//unresolved if
do {
//unresolved if
_local8 = (_local8 + _local4);
_local7 = (_local7 << _local4);
_local12 = _local9;
_local9 = (_local12 + 1);
_local13 = _local6[_arg1.charCodeAt(_local12)];
if ((_local13 == -1)){
throw ("baseDecode: bad chars");
};
_local7 = (_local7 | _local13);
} while (true);
_local8 = (_local8 - 8);
_local11.addChar(((_local7 >> _local8) & 0xFF));
} while (true);
return (_local11.toString());
}
public static function hex(_arg1:int, _arg2:Object=undefined):String{
var _local3:Boolean;
if ((_arg1 < 0)){
_local3 = true;
_arg1 = -(_arg1);
};
var _local4 = (_arg1.toString(16) as String);
_local4 = (_local4.toUpperCase() as String);
if (!((_arg2 == null))){
do {
//unresolved if
_local4 = ((("0" + _local4) as String) as String);
} while (true);
};
if (_local3){
_local4 = ((("-" + _local4) as String) as String);
};
return (_local4);
}
}
class @Main {
public static var init:Object;
public function @Main():void{
if (Boot_939315.skip_constructor){
return;
};
}
}