Section 1
//Case01 (levels.Case01)
package levels {
import flash.events.*;
import flash.display.*;
import SWFStats.*;
import flash.utils.*;
import flash.net.*;
public class Case01 extends Sprite {
public var done:int;
private var currentCode:int;
private var mouseYMaxArray:Array;
private var timeStart:uint;
public var randomMovement:int;
private var mouseYMinArray:Array;
private var mouseYMin:int;
private var gfx_build:Bitmap;
private var mouseYMax:int;
private var timeLeft:int;
private var gfx:Bitmap;
private var gfx_timer:Bitmap;
private static const GFX_Num03:Class = Case01_GFX_Num03;
private static const GFX_SingletonBugBuild:Class = Case01_GFX_SingletonBugBuild;
private static const GFX_Num07:Class = Case01_GFX_Num07;
private static const GFX_Num01:Class = Case01_GFX_Num01;
private static const GFX_Num04:Class = Case01_GFX_Num04;
private static const GFX_MissingSemiColon:Class = Case01_GFX_MissingSemiColon;
private static const GFX_Title:Class = Case01_GFX_Title;
private static const GFX_HelpScreen:Class = Case01_GFX_HelpScreen;
private static const GFX_Num05:Class = Case01_GFX_Num05;
private static const GFX_Num06:Class = Case01_GFX_Num06;
private static const GFX_PriceInEurosBuild:Class = Case01_GFX_PriceInEurosBuild;
private static const GFX_Num09:Class = Case01_GFX_Num09;
private static const GFX_GameDone:Class = Case01_GFX_GameDone;
private static const GFX_AverageBug:Class = Case01_GFX_AverageBug;
private static const GFX_HelloWorld:Class = Case01_GFX_HelloWorld;
private static const GFX_HelloWorldBuild:Class = Case01_GFX_HelloWorldBuild;
private static const GFX_Num08:Class = Case01_GFX_Num08;
private static const GFX_FailExplode:Class = Case01_GFX_FailExplode;
private static const GFX_Num10:Class = Case01_GFX_Num10;
private static const GFX_SingletonBug:Class = Case01_GFX_SingletonBug;
private static const GFX_StringReplace:Class = Case01_GFX_StringReplace;
private static const GFX_Num02:Class = Case01_GFX_Num02;
private static const GFX_PriceInEuros:Class = Case01_GFX_PriceInEuros;
private static const GFX_MissingSemiColonBuild:Class = Case01_GFX_MissingSemiColonBuild;
public function Case01(){
done = 0;
currentCode = 8;
addEventListener(MouseEvent.CLICK, handleClick);
this.buttonMode = true;
mouseYMinArray = new Array(65, 198, 83, 303, 472, 287, 0, 0, 0, 0);
mouseYMaxArray = new Array(104, 222, 107, 327, 496, 308, 600, 600, 600, 600);
DoTheShit(currentCode);
}
private function handleClick(_arg1:MouseEvent):void{
trace("enemy clicked");
if ((((mouseY >= mouseYMin)) && ((mouseY <= mouseYMax)))){
if (currentCode == 8){
currentCode = 9;
} else {
if (currentCode >= 6){
currentCode = 0;
done = 0;
} else {
currentCode++;
};
};
DoTheShit(currentCode);
} else {
ClickedPastLine();
};
}
public function GetNumFor(_arg1:int):Bitmap{
if (_arg1 == 1){
return (new _slot1.GFX_Num01());
};
if (_arg1 == 2){
return (new _slot1.GFX_Num02());
};
if (_arg1 == 3){
return (new _slot1.GFX_Num03());
};
if (_arg1 == 4){
return (new _slot1.GFX_Num04());
};
if (_arg1 == 5){
return (new _slot1.GFX_Num05());
};
if (_arg1 == 6){
return (new _slot1.GFX_Num06());
};
if (_arg1 == 7){
return (new _slot1.GFX_Num07());
};
if (_arg1 == 8){
return (new _slot1.GFX_Num08());
};
if (_arg1 == 9){
return (new _slot1.GFX_Num09());
};
if (_arg1 == 10){
return (new _slot1.GFX_Num10());
};
return (null);
}
public function ClickedPastLine():void{
timeStart = (timeStart - 2000);
randomMovement = 15;
}
public function GetGraphicsBuild(_arg1:int):Bitmap{
if (_arg1 == 0){
return (new _slot1.GFX_HelloWorldBuild());
};
if (_arg1 == 1){
return (new _slot1.GFX_PriceInEurosBuild());
};
if (_arg1 == 2){
return (new _slot1.GFX_MissingSemiColonBuild());
};
if (_arg1 == 3){
return (new _slot1.GFX_SingletonBugBuild());
};
return (null);
}
public function GetGraphics(_arg1:int):Bitmap{
if (_arg1 == 0){
return (new _slot1.GFX_HelloWorld());
};
if (_arg1 == 1){
return (new _slot1.GFX_PriceInEuros());
};
if (_arg1 == 2){
return (new _slot1.GFX_MissingSemiColon());
};
if (_arg1 == 3){
return (new _slot1.GFX_SingletonBug());
};
if (_arg1 == 4){
return (new _slot1.GFX_AverageBug());
};
if (_arg1 == 5){
return (new _slot1.GFX_StringReplace());
};
if (_arg1 == 6){
return (new _slot1.GFX_GameDone());
};
if (_arg1 == 7){
return (new _slot1.GFX_FailExplode());
};
if (_arg1 == 8){
return (new _slot1.GFX_Title());
};
if (_arg1 == 9){
return (new _slot1.GFX_HelpScreen());
};
return (null);
}
public function UpdateClock(_arg1:int):void{
if (gfx_timer){
removeChild(gfx_timer);
};
gfx_timer = GetNumFor(_arg1);
if (gfx_timer){
addChild(gfx_timer);
gfx_timer.x = (800 - gfx_timer.width);
gfx_timer.y = 0;
};
}
public function DoTheShit(_arg1:int):void{
if (_arg1 == 0){
Log.Play();
};
if (_arg1 == 1){
Log.CustomMetric("level_1_done");
};
if (_arg1 == 2){
Log.CustomMetric("level_2_done");
};
if (_arg1 == 3){
Log.CustomMetric("level_3_done");
};
if (_arg1 == 4){
Log.CustomMetric("level_4_done");
};
if (_arg1 == 5){
Log.CustomMetric("level_5_done");
};
if (_arg1 == 6){
Log.CustomMetric("level_6_done");
};
if (_arg1 == 6){
navigateToURL(new URLRequest("http://www.kloonigames.com/heroprogrammer/you_sir_are_the_best.php"), "_self");
};
if (gfx){
removeChild(gfx);
};
this.gfx = GetGraphics(_arg1);
if (gfx){
addChild(gfx);
};
if (gfx_build){
removeChild(gfx_build);
};
this.gfx_build = GetGraphicsBuild(_arg1);
if (gfx_build){
addChild(gfx_build);
gfx_build.y = 600;
if (gfx_build.width < 800){
gfx_build.x = (800 - gfx_build.width);
};
};
mouseYMin = mouseYMinArray[_arg1];
mouseYMax = mouseYMaxArray[_arg1];
if (_arg1 < 6){
timeStart = GetCrappyTime();
timeLeft = 10;
UpdateClock(timeLeft);
} else {
timeLeft = -1;
UpdateClock(timeLeft);
timeStart = 0;
};
}
public function Update():void{
if (gfx_build){
if (gfx_build.y > (600 - gfx_build.height)){
gfx_build.y = (gfx_build.y - ((gfx_build.y - (600 - gfx_build.height)) * 0.25));
if (Math.abs((gfx_build.y - (600 - gfx_build.height))) < 2){
gfx_build.y = (600 - gfx_build.height);
};
};
};
var _local1:int = (GetCrappyTime() - timeStart);
_local1 = (_local1 / 1000);
_local1 = (10 - _local1);
if ((_local1 as int) != timeLeft){
timeLeft = (_local1 as int);
UpdateClock(timeLeft);
};
if ((((_local1 < 0)) && ((currentCode < 6)))){
done = 2;
DoTheShit(7);
randomMovement = 15;
currentCode = 7;
if (currentCode == 0){
Log.CustomMetric("level_1_failed");
};
if (currentCode == 1){
Log.CustomMetric("level_2_failed");
};
if (currentCode == 2){
Log.CustomMetric("level_3_failed");
};
if (currentCode == 3){
Log.CustomMetric("level_4_failed");
};
if (currentCode == 4){
Log.CustomMetric("level_5_failed");
};
if (currentCode == 5){
Log.CustomMetric("level_6_failed");
};
};
}
public function GetCrappyTime():uint{
return ((getTimer() + 20000));
}
}
}//package levels
Section 2
//Case01_GFX_AverageBug (levels.Case01_GFX_AverageBug)
package levels {
import mx.core.*;
public class Case01_GFX_AverageBug extends BitmapAsset {
}
}//package levels
Section 3
//Case01_GFX_FailExplode (levels.Case01_GFX_FailExplode)
package levels {
import mx.core.*;
public class Case01_GFX_FailExplode extends BitmapAsset {
}
}//package levels
Section 4
//Case01_GFX_GameDone (levels.Case01_GFX_GameDone)
package levels {
import mx.core.*;
public class Case01_GFX_GameDone extends BitmapAsset {
}
}//package levels
Section 5
//Case01_GFX_HelloWorld (levels.Case01_GFX_HelloWorld)
package levels {
import mx.core.*;
public class Case01_GFX_HelloWorld extends BitmapAsset {
}
}//package levels
Section 6
//Case01_GFX_HelloWorldBuild (levels.Case01_GFX_HelloWorldBuild)
package levels {
import mx.core.*;
public class Case01_GFX_HelloWorldBuild extends BitmapAsset {
}
}//package levels
Section 7
//Case01_GFX_HelpScreen (levels.Case01_GFX_HelpScreen)
package levels {
import mx.core.*;
public class Case01_GFX_HelpScreen extends BitmapAsset {
}
}//package levels
Section 8
//Case01_GFX_MissingSemiColon (levels.Case01_GFX_MissingSemiColon)
package levels {
import mx.core.*;
public class Case01_GFX_MissingSemiColon extends BitmapAsset {
}
}//package levels
Section 9
//Case01_GFX_MissingSemiColonBuild (levels.Case01_GFX_MissingSemiColonBuild)
package levels {
import mx.core.*;
public class Case01_GFX_MissingSemiColonBuild extends BitmapAsset {
}
}//package levels
Section 10
//Case01_GFX_Num01 (levels.Case01_GFX_Num01)
package levels {
import mx.core.*;
public class Case01_GFX_Num01 extends BitmapAsset {
}
}//package levels
Section 11
//Case01_GFX_Num02 (levels.Case01_GFX_Num02)
package levels {
import mx.core.*;
public class Case01_GFX_Num02 extends BitmapAsset {
}
}//package levels
Section 12
//Case01_GFX_Num03 (levels.Case01_GFX_Num03)
package levels {
import mx.core.*;
public class Case01_GFX_Num03 extends BitmapAsset {
}
}//package levels
Section 13
//Case01_GFX_Num04 (levels.Case01_GFX_Num04)
package levels {
import mx.core.*;
public class Case01_GFX_Num04 extends BitmapAsset {
}
}//package levels
Section 14
//Case01_GFX_Num05 (levels.Case01_GFX_Num05)
package levels {
import mx.core.*;
public class Case01_GFX_Num05 extends BitmapAsset {
}
}//package levels
Section 15
//Case01_GFX_Num06 (levels.Case01_GFX_Num06)
package levels {
import mx.core.*;
public class Case01_GFX_Num06 extends BitmapAsset {
}
}//package levels
Section 16
//Case01_GFX_Num07 (levels.Case01_GFX_Num07)
package levels {
import mx.core.*;
public class Case01_GFX_Num07 extends BitmapAsset {
}
}//package levels
Section 17
//Case01_GFX_Num08 (levels.Case01_GFX_Num08)
package levels {
import mx.core.*;
public class Case01_GFX_Num08 extends BitmapAsset {
}
}//package levels
Section 18
//Case01_GFX_Num09 (levels.Case01_GFX_Num09)
package levels {
import mx.core.*;
public class Case01_GFX_Num09 extends BitmapAsset {
}
}//package levels
Section 19
//Case01_GFX_Num10 (levels.Case01_GFX_Num10)
package levels {
import mx.core.*;
public class Case01_GFX_Num10 extends BitmapAsset {
}
}//package levels
Section 20
//Case01_GFX_PriceInEuros (levels.Case01_GFX_PriceInEuros)
package levels {
import mx.core.*;
public class Case01_GFX_PriceInEuros extends BitmapAsset {
}
}//package levels
Section 21
//Case01_GFX_PriceInEurosBuild (levels.Case01_GFX_PriceInEurosBuild)
package levels {
import mx.core.*;
public class Case01_GFX_PriceInEurosBuild extends BitmapAsset {
}
}//package levels
Section 22
//Case01_GFX_SingletonBug (levels.Case01_GFX_SingletonBug)
package levels {
import mx.core.*;
public class Case01_GFX_SingletonBug extends BitmapAsset {
}
}//package levels
Section 23
//Case01_GFX_SingletonBugBuild (levels.Case01_GFX_SingletonBugBuild)
package levels {
import mx.core.*;
public class Case01_GFX_SingletonBugBuild extends BitmapAsset {
}
}//package levels
Section 24
//Case01_GFX_StringReplace (levels.Case01_GFX_StringReplace)
package levels {
import mx.core.*;
public class Case01_GFX_StringReplace extends BitmapAsset {
}
}//package levels
Section 25
//Case01_GFX_Title (levels.Case01_GFX_Title)
package levels {
import mx.core.*;
public class Case01_GFX_Title extends BitmapAsset {
}
}//package levels
Section 26
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.0.0.0";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 27
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 28
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 29
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 30
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 31
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 32
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 33
//Log (SWFStats.Log)
package SWFStats {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public final class Log {
private static const PingR:Timer = new Timer(30000);
private static const Random:Number = Math.random();
private static const PingF:Timer = new Timer(60000);
public static var GUID:String = "";
private static var Plays:int = 0;
private static var Enabled:Boolean = false;
private static var FirstPing:Boolean = true;
private static var Pings:int = 0;
public static var SourceUrl:String;
private static var HighestGoal:int = 0;
public static var SWFID:int = 0;
private static function GetCookie(_arg1:String):int{
var _local2:SharedObject = SharedObject.getLocal("swfstats");
if (_local2.data[_arg1] == undefined){
return (0);
};
return (int(_local2.data[_arg1]));
}
private static function SaveCookie(_arg1:String, _arg2:int):void{
var _local3:SharedObject = SharedObject.getLocal("swfstats");
_local3.data[_arg1] = _arg2.toString();
_local3.flush();
}
public static function View(_arg1:int=0, _arg2:String="", _arg3:String=""):void{
SWFID = _arg1;
GUID = _arg2;
Enabled = true;
if ((((SWFID == 0)) || ((GUID == "")))){
Enabled = false;
return;
};
if (((((!((_arg3.indexOf("http://") == 0))) && (!((Security.sandboxType == "localWithNetwork"))))) && (!((Security.sandboxType == "localTrusted"))))){
Enabled = false;
return;
};
SourceUrl = GetUrl(_arg3);
if ((((SourceUrl == null)) || ((SourceUrl == "")))){
Enabled = false;
return;
};
Security.allowDomain("http://tracker.swfstats.com/");
Security.allowInsecureDomain("http://tracker.swfstats.com/");
Security.loadPolicyFile("http://tracker.swfstats.com/crossdomain.xml");
Security.allowDomain("http://utils.swfstats.com/");
Security.allowInsecureDomain("http://utils.swfstats.com/");
Security.loadPolicyFile("http://utils.swfstats.com/crossdomain.xml");
var _local4:int = GetCookie("views");
_local4++;
SaveCookie("views", _local4);
Send("View", ("views=" + _local4));
PingF.addEventListener(TimerEvent.TIMER, PingServer);
PingF.start();
}
public static function LevelCounterMetric(_arg1:String, _arg2):void{
if (!Enabled){
return;
};
Send("LevelMetric", ((("name=" + escape(_arg1)) + "&level=") + _arg2));
}
private static function Send(_arg1:String, _arg2:String):void{
var _local3:URLLoader = new URLLoader();
_local3.addEventListener(IOErrorEvent.IO_ERROR, ErrorHandler);
_local3.addEventListener(HTTPStatusEvent.HTTP_STATUS, StatusChange);
_local3.addEventListener(SecurityErrorEvent.SECURITY_ERROR, ErrorHandler);
_local3.load(new URLRequest(((((((((((("http://tracker.swfstats.com/Games/" + _arg1) + ".html?guid=") + GUID) + "&swfid=") + SWFID) + "&") + _arg2) + "&url=") + SourceUrl) + "&") + Random)));
}
public static function Play():void{
if (!Enabled){
return;
};
Plays++;
Send("Play", ("plays=" + Plays));
}
private static function GetUrl(_arg1:String):String{
var url:String;
var defaulturl = _arg1;
if (ExternalInterface.available){
try {
url = String(ExternalInterface.call("window.location.href.toString"));
} catch(s:Error) {
url = defaulturl;
};
} else {
if (defaulturl.indexOf("http://") == 0){
url = defaulturl;
};
};
if ((((((url == null)) || ((url == "")))) || ((url == "null")))){
if ((((Security.sandboxType == "localWithNetwork")) || ((Security.sandboxType == "localTrusted")))){
url = "http://local-testing/";
} else {
url = null;
};
};
return (url);
}
private static function ErrorHandler(... _args):void{
Enabled = false;
}
public static function LevelRangedMetric(_arg1:String, _arg2, _arg3:int):void{
if (!Enabled){
return;
};
Send("LevelMetricRanged", ((((("name=" + escape(_arg1)) + "&level=") + _arg2) + "&value=") + _arg3));
}
private static function StatusChange(... _args):void{
}
public static function Goal(_arg1:int, _arg2:String):void{
if (!Enabled){
return;
};
if (HighestGoal >= _arg1){
return;
};
HighestGoal = _arg1;
Send("Goal", ((("goal=" + _arg1) + "&name=") + escape(_arg2)));
}
private static function PingServer(... _args):void{
if (!Enabled){
return;
};
Pings++;
Send("Ping", (((FirstPing) ? "&firstping=yes" : "" + "&pings=") + Pings));
if (FirstPing){
PingF.stop();
PingR.addEventListener(TimerEvent.TIMER, PingServer);
PingR.start();
FirstPing = false;
};
}
public static function LevelAverageMetric(_arg1:String, _arg2, _arg3:int):void{
if (!Enabled){
return;
};
Send("LevelMetricAverage", ((((("name=" + escape(_arg1)) + "&level=") + _arg2) + "&value=") + _arg3));
}
public static function CustomMetric(_arg1:String):void{
if (!Enabled){
return;
};
Send("CustomMetric", ("name=" + escape(_arg1)));
}
}
}//package SWFStats
Section 34
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import levels.*;
import SWFStats.*;
public class Main extends Sprite {
public var case01:Case01;
public var case02:Case01;
public function Main():void{
addEventListener(Event.ENTER_FRAME, handleEnterFrame);
case01 = new Case01();
addChild(case01);
Log.View(265, "0e29cdc8-dabb-4f49-a485-7a13e6ea9ef0", root.loaderInfo.loaderURL);
}
private function handleEnterFrame(_arg1:Event):void{
var _local2:Number;
case01.Update();
if (case01.randomMovement > 0){
_local2 = (case01.randomMovement as Number);
_local2 = (_local2 / 20);
case01.randomMovement--;
case01.rotation = (((Math.random() * 10) - 5) * _local2);
case01.x = (((Math.random() * 30) - 15) * _local2);
case01.y = (((Math.random() * 30) - 15) * _local2);
} else {
case01.x = 0;
case01.y = 0;
};
if (case01.done == 2){
};
}
}
}//package