STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/42142831?noj=FRM42142831-14DC" width="1" height="1"></div>

Mysteriez!2.swf

This is the info page for
Flash #47646

(Click the ID number above for more basic data on this flash file.)


Text
wellgames.com

<p align="center"><font face="Arial" size="34" color="#000000" letterSpacing="4.000000" kerning="0">TEXT</font></p>

wellgames.com

Mysteriez!

Mysteriez!

+

<p align="center"><font face="Bankir-Retro" size="34" color="#000000" letterSpacing="4.000000" kerning="0">TEXT</font></p>

Mysteriez!

Mysteriez! 2

-

17

2

1

3

4

40

35

22

7

26

11

17

ActionScript [AS3]

Section 1
//OAdBanner (ENGINE.AD.OAdBanner) package ENGINE.AD { import flash.events.*; import flash.display.*; import flash.net.*; public class OAdBanner { private var iManager:DisplayObject; private var iID:String; private var iBanner:DisplayObject; private var iPrefix:String; private var iLoader:Loader; private static const strURL:String = "http://wellgames.com/ad/"; public function OAdBanner(_arg1:String, _arg2:String){ this.iPrefix = _arg1; this.iID = _arg2; this.iLoader = new Loader(); this.iLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, OnIOError); this.iLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, OnComplete); this.iLoader.load(new URLRequest(this.prURL)); } private function OnIOError(_arg1:IOErrorEvent):void{ } public function DeleteBanner():void{ this.iBanner = null; } private function get prURL():String{ return ((((((OAdBanner.strURL + this.iPrefix) + "AdBanner.swf?r=") + this.iPrefix) + this.iID) + "&i=-1")); } public function get prBanner():DisplayObject{ return (this.iBanner); } public function CreateBanner():void{ if (this.iManager){ this.iBanner = this.iManager["prBanner"]; }; } private function OnComplete(_arg1:Event):void{ this.iManager = this.iLoader.content; } } }//package ENGINE.AD
Section 2
//OAdBanners (ENGINE.AD.OAdBanners) package ENGINE.AD { import flash.display.*; import ENGINE.CORE.*; public class OAdBanners { public static var iBBanner:OAdBanner; public static var iTBanner:OAdBanner; public static function InitTBanner(_arg1:String, _arg2:String):void{ _slot1.iTBanner = new OAdBanner(_arg1, _arg2); } public static function RemoveBBanner(_arg1:DisplayObjectContainer):void{ var _local2:Sprite; _local2 = (_slot1.iBBanner.prBanner as Sprite); if (((_local2) && (_arg1.contains(_local2)))){ _arg1.removeChild(_local2); }; _slot1.iBBanner.DeleteBanner(); } public static function AddBBanner(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):void{ var _local6:Sprite; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; _slot1.iBBanner.CreateBanner(); _local6 = (_slot1.iBBanner.prBanner as Sprite); if (!_local6){ return; }; _local7 = OGlobal.ToGlobal(_arg2); _local8 = OGlobal.ToGlobal(_arg3); _local9 = OGlobal.ToGlobal(_arg4); _local10 = OGlobal.ToGlobal(_arg5); _local6.x = Math.floor((_local7 + ((_local9 - _local6.width) / 2))); _local6.y = Math.floor((_local8 + ((_local10 - _local6.height) / 2))); _arg1.addChild(_local6); } public static function RemoveTBanner(_arg1:DisplayObjectContainer):void{ var _local2:Sprite; _local2 = (_slot1.iTBanner.prBanner as Sprite); if (((_local2) && (_arg1.contains(_local2)))){ _arg1.removeChild(_local2); }; _slot1.iTBanner.DeleteBanner(); } public static function InitBBanner(_arg1:String, _arg2:String):void{ _slot1.iBBanner = new OAdBanner(_arg1, _arg2); } public static function AddTBanner(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):void{ var _local6:Sprite; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; _slot1.iTBanner.CreateBanner(); _local6 = (_slot1.iTBanner.prBanner as Sprite); if (!_local6){ return; }; _local7 = OGlobal.ToGlobal(_arg2); _local8 = OGlobal.ToGlobal(_arg3); _local9 = OGlobal.ToGlobal(_arg4); _local10 = OGlobal.ToGlobal(_arg5); _local6.x = Math.floor((_local7 + ((_local9 - _local6.width) / 2))); _local6.y = Math.floor((_local8 + ((_local10 - _local6.height) / 2))); _arg1.addChild(_local6); } } }//package ENGINE.AD
Section 3
//OCache (ENGINE.CORE.OCache) package ENGINE.CORE { import flash.utils.*; public dynamic class OCache { public function Pack():ByteArray{ var _local1:ByteArray; _local1 = new ByteArray(); _local1.writeObject(this); _local1.compress(); return (_local1); } public function AddCategoryArr(_arg1:String, _arg2:String):Array{ var _local3:OCache; _local3 = ((this[_arg1])==undefined) ? AddCategory(_arg1) : this[_arg1]; return (_local3.AddArr(_arg2)); } public function GetArrItem(_arg1:String, _arg2:int){ if ((((this[_arg1] == undefined)) || ((this[_arg1][_arg2] == undefined)))){ return (null); }; return (this[_arg1][_arg2]); } public function DeleteArrItem(_arg1:String, _arg2:int):void{ if (this[_arg1] == undefined){ return; }; this[_arg1].splice(_arg2, 1); } public function IsCategoryArrItem(_arg1:String, _arg2:String, _arg3:int):Boolean{ if (this[_arg1] == undefined){ return (false); }; return (this[_arg1].IsArrItem(_arg2, _arg3)); } public function GetCategoryItem(_arg1:String, _arg2:String){ if (this[_arg1] == undefined){ return (null); }; return (this[_arg1].GetItem(_arg2)); } public function SetCategoryItem(_arg1:String, _arg2:String, _arg3):void{ if (this[_arg1] == undefined){ this[_arg1] = new OCache(); }; this[_arg1].SetItem(_arg2, _arg3); } public function SetCategoryArrItem(_arg1:String, _arg2:String, _arg3:int, _arg4):void{ if (this[_arg1] == undefined){ this[_arg1] = new OCache(); }; this[_arg1].SetArrItem(_arg2, _arg3, _arg4); } public function IsCategoryItem(_arg1:String, _arg2:String):Boolean{ if (this[_arg1] == undefined){ return (false); }; return (this[_arg1].IsItem(_arg2)); } public function DeleteCategoryItem(_arg1:String, _arg2:String):void{ if (this[_arg1] == undefined){ return; }; this[_arg1].DeleteItem(_arg2); } public function AddCategory(_arg1:String):OCache{ this[_arg1] = new OCache(); return (this[_arg1]); } public function GetCategoryArrItem(_arg1:String, _arg2:String, _arg3:int){ if (this[_arg1] == undefined){ return (null); }; return (GetArrItem(_arg2, _arg3)); } public function GetCategoryNames(_arg1:String):Array{ var _local2:Array; var _local3:String; if (this[_arg1] == undefined){ return (null); }; _local2 = new Array(); for (_local3 in this[_arg1]) { _local2.push(_local3); }; return ((_local2.length) ? _local2.sort() : null); } public function AddArr(_arg1:String):Array{ this[_arg1] = new Array(); return (this[_arg1]); } public function GetItem(_arg1:String){ if (this[_arg1] == undefined){ return (null); }; return (this[_arg1]); } public function IsArrItem(_arg1:String, _arg2:int):Boolean{ return (((!((this[_arg1] == undefined))) && (!((this[_arg1][_arg2] == undefined))))); } public function DeleteCategoryArrItem(_arg1:String, _arg2:String, _arg3:int):void{ if (this[_arg1] == undefined){ return; }; this[_arg1].DeleteArrItem(_arg2, _arg3); } public function Clear():void{ var _local1:String; for (_local1 in this) { delete this[_local1]; }; } public function SetArrItem(_arg1:String, _arg2:int, _arg3):void{ if (this[_arg1] == undefined){ this[_arg1] = new Array(); }; this[_arg1][_arg2] = _arg3; } public function SetItem(_arg1:String, _arg2):void{ this[_arg1] = _arg2; } public function GetNames():Array{ var _local1:Array; var _local2:String; _local1 = new Array(); for (_local2 in this) { _local1.push(_local2); }; return ((_local1.length) ? _local1.sort() : null); } public function IsItem(_arg1:String):Boolean{ return (!((this[_arg1] == undefined))); } public function DeleteItem(_arg1:String):void{ if (this[_arg1] == undefined){ return; }; delete this[_arg1]; } } }//package ENGINE.CORE
Section 4
//OGlobal (ENGINE.CORE.OGlobal) package ENGINE.CORE { import flash.display.*; import flash.geom.*; import flash.net.*; public class OGlobal { private static var iFPS:int = 60; private static var iDomain:String; private static var iSRect:Rectangle = new Rectangle(); private static var iVRect:Rectangle = new Rectangle(0, 0, 800, 600); private static var iStage:Stage; private static var iScale:Number = 1; private static var iAppName:String; private static var iOldScale:Number = 1; public static function get FPS():int{ return (OGlobal.iFPS); } public static function CheckDomain(_arg1:String):Boolean{ var _local2:int; _local2 = OGlobal.iDomain.indexOf(_arg1); return ((((_local2 >= 0)) && ((_local2 <= 4)))); } public static function ToLocal(_arg1:Number):Number{ return ((_arg1 / OGlobal.iScale)); } public static function set FPS(_arg1:int):void{ OGlobal.iFPS = _arg1; if (OGlobal.iStage){ OGlobal.iStage.frameRate = _arg1; }; } public static function Rescale(_arg1:Sprite, _arg2:Boolean=true):void{ var _local3:Number; _local3 = (((OGlobal.iStage.stageWidth / OGlobal.iStage.stageHeight))<=(800 / 600)) ? (OGlobal.iStage.stageWidth / 800) : (OGlobal.iStage.stageHeight / 600); OGlobal.iSRect.x = 0; OGlobal.iSRect.y = 0; OGlobal.iSRect.width = OGlobal.iStage.stageWidth; OGlobal.iSRect.height = OGlobal.iStage.stageHeight; OGlobal.iVRect.width = Math.round((800 * _local3)); OGlobal.iVRect.height = Math.round((600 * _local3)); OGlobal.iVRect.x = Math.floor(((OGlobal.iStage.stageWidth - OGlobal.iVRect.width) / 2)); OGlobal.iVRect.y = Math.floor(((OGlobal.iStage.stageHeight - OGlobal.iVRect.height) / 2)); if (_arg2){ _arg1.x = OGlobal.iVRect.x; _arg1.y = OGlobal.iVRect.y; }; OGlobal.iScale = _local3; } public static function get prStage():Stage{ return (OGlobal.iStage); } public static function ClearScale():void{ OGlobal.iOldScale = OGlobal.iScale; OGlobal.iScale = 1; OGlobal.iVRect = OGlobal.iSRect.clone(); } public static function ToGlobal(_arg1:Number):Number{ return ((_arg1 * OGlobal.iScale)); } public static function set AppName(_arg1:String):void{ OGlobal.iAppName = ("WellGames_" + _arg1); } public static function get Domain():String{ return (OGlobal.iDomain); } public static function SetDomain():void{ var _local1:LocalConnection; _local1 = new LocalConnection(); OGlobal.iDomain = _local1.domain; } public static function get StageRect():Rectangle{ return (OGlobal.iSRect); } public static function ScaleFloor(_arg1:Number):Number{ return ((Math.floor((_arg1 * OGlobal.iScale)) / OGlobal.iScale)); } public static function get Scale():Number{ return (OGlobal.iScale); } public static function get ViewporRect():Rectangle{ return (OGlobal.iVRect); } public static function get AppName():String{ return (OGlobal.iAppName); } public static function set prStage(_arg1:Stage):void{ OGlobal.iStage = _arg1; } public static function RestoreScale():void{ OGlobal.iScale = OGlobal.iOldScale; } public static function ScaleMod(_arg1:Number):Number{ var _local2:Number; _local2 = (_arg1 * OGlobal.iScale); return (((_local2 - Math.floor(_local2)) / OGlobal.iScale)); } } }//package ENGINE.CORE
Section 5
//OSound (ENGINE.CORE.OSound) package ENGINE.CORE { import flash.events.*; import flash.utils.*; import flash.net.*; import flash.media.*; public class OSound { private static var iMusicInd:int = 0; private static var iSoundsObjects:Array; private static var iSounds:Dictionary = new Dictionary(true); private static var iMusicPlayList:Array = new Array(); private static var iSoundVolume:Number = 1; private static var iMusicChannel:SoundChannel; private static var iMusicVolume:Number = 1; private static var iMusic:Sound; public static function PlaySoundInd(_arg1:int, _arg2:Number=0):Boolean{ if (OSound.iSoundVolume == 0){ return (false); }; _arg1 = Math.max(_arg1, 0); _arg1 = Math.min(_arg1, (OSound.iSoundsObjects.length - 1)); return (OSound.PlaySound(OSound.iSoundsObjects[_arg1], _arg2)); } public static function set MusicVolume(_arg1:Number):void{ var _local2:SoundTransform; OSound.iMusicVolume = _arg1; if (OSound.iMusicChannel){ if (_arg1 == 0){ OSound.StopMusic(); } else { _local2 = OSound.iMusicChannel.soundTransform; _local2.volume = _arg1; OSound.iMusicChannel.soundTransform = _local2; }; } else { if (OSound.iMusicVolume > 0){ OSound.PlayMusic(); }; }; } private static function OnMusicLoadComplete(_arg1:Event):void{ if (OSound.iMusicVolume == 0){ return; }; OSound.iMusicChannel = iMusic.play(0, 0, new SoundTransform(OSound.iMusicVolume, 0)); OSound.RemoveMusic(); OSound.iMusicChannel.addEventListener(Event.SOUND_COMPLETE, OnMusicComplete); } public static function set SoundVolume(_arg1:Number):void{ OSound.iSoundVolume = _arg1; } private static function OnMusicLoadIOError(_arg1:Event):void{ OSound.RemoveMusic(); OSound.iMusicPlayList.splice(OSound.iMusicInd, 1); OSound.iMusicInd = ((OSound.iMusicInd > (OSound.iMusicPlayList.length - 1))) ? (OSound.iMusicPlayList.length - 1) : OSound.iMusicInd; OSound.PlayMusic(); } private static function OnMusicComplete(_arg1:Event):void{ PlayMusic(); } public static function PlaySound(_arg1:Class, _arg2:Number=0):Boolean{ var _local3:Sound; if (OSound.iSoundVolume == 0){ return (false); }; _local3 = OSound.iSounds[_arg1]; if (_local3 != null){ _local3.play(0, 0, new SoundTransform(OSound.iSoundVolume, _arg2)); }; return (!((_local3 == null))); } private static function RemoveMusic():void{ if (OSound.iMusic){ OSound.iMusic.removeEventListener(Event.COMPLETE, OSound.OnMusicLoadComplete); OSound.iMusic.removeEventListener(IOErrorEvent.IO_ERROR, OSound.OnMusicLoadIOError); OSound.iMusic = null; }; } public static function StopMusic():void{ if (OSound.iMusicChannel){ OSound.iMusicChannel.removeEventListener(Event.SOUND_COMPLETE, OnMusicComplete); OSound.iMusicChannel.stop(); OSound.iMusicChannel = null; }; } public static function get SoundVolume():Number{ return (OSound.iSoundVolume); } public static function PlayListClear():void{ OSound.iMusicPlayList = new Array(); } public static function PlayListAdd(_arg1:String):void{ OSound.iMusicPlayList.push(_arg1); OSound.iMusicInd = (OSound.iMusicPlayList.length - 1); } public static function PlayMusic():void{ var request:URLRequest; if ((((OSound.iMusicVolume == 0)) || (!(OSound.iMusicPlayList.length)))){ return; }; OSound.StopMusic(); OSound.iMusicInd = ((OSound.iMusicInd + 1) % OSound.iMusicPlayList.length); request = new URLRequest(OSound.iMusicPlayList[OSound.iMusicInd]); OSound.iMusic = new Sound(); OSound.iMusic.addEventListener(Event.COMPLETE, OSound.OnMusicLoadComplete); OSound.iMusic.addEventListener(IOErrorEvent.IO_ERROR, OSound.OnMusicLoadIOError); try { OSound.iMusic.load(request); } catch(e:Error) { }; } public static function RegisterEmbedSounds(_arg1:Array):Boolean{ var _local2:int; var _local3:Sound; OSound.iSoundsObjects = _arg1; _local2 = 0; while (_local2 < _arg1.length) { _local3 = (new (_arg1[_local2]) as Sound); OSound.iSounds[_arg1[_local2]] = _local3; _local2++; }; return (true); } public static function PlaySoundRandom(_arg1:Number=0, _arg2:int=0, _arg3:int=-1):Boolean{ var _local4:int; if (OSound.iSoundVolume == 0){ return (false); }; _arg2 = Math.max(_arg2, 0); _arg2 = Math.min(_arg2, (OSound.iSoundsObjects.length - 1)); if (_arg3 < 0){ _arg3 = (OSound.iSoundsObjects.length - 1); }; _arg3 = Math.max(_arg3, 0); _arg3 = Math.min(_arg3, (OSound.iSoundsObjects.length - 1)); _local4 = OUtils.Random(_arg2, _arg3); return (OSound.PlaySound(OSound.iSoundsObjects[_local4], _arg1)); } public static function get MusicVolume():Number{ return (OSound.iMusicVolume); } } }//package ENGINE.CORE
Section 6
//OSystem (ENGINE.CORE.OSystem) package ENGINE.CORE { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.system.*; public class OSystem extends Sprite { private var iLastTime:int; private var iCount:int; private var iText:TextField; private var iSTimer:String; public static var iUserText1:String = ""; public static var iUserText:String = ""; public static var iUserText2:String = ""; public function OSystem(){ this.iText = new TextField(); this.iText.autoSize = TextFieldAutoSize.LEFT; this.iText.mouseEnabled = false; this.addChild(this.iText); this.addEventListener(Event.ENTER_FRAME, OnEnterFrame); this.iLastTime = getTimer(); this.iSTimer = ""; } public function OnEnterFrame(_arg1:Event):void{ var _local2:uint; var _local3:int; _local2 = System.totalMemory; _local3 = (getTimer() - this.iLastTime); this.iCount++; if (_local3 >= 1000){ this.iSTimer = String((Math.round(((_local3 / this.iCount) * 100)) / 100)); this.iLastTime = getTimer(); this.iCount = 0; }; iText.text = ((((((((((_local2.toString() + " ") + this.iSTimer) + " ") + OGlobal.prStage.frameRate) + " | ") + OSystem.iUserText) + " ") + OSystem.iUserText1) + " ") + OSystem.iUserText2); } } }//package ENGINE.CORE
Section 7
//OUtils (ENGINE.CORE.OUtils) package ENGINE.CORE { import ENGINE.DISPLAY.*; import flash.geom.*; public class OUtils { public static function AddZero(_arg1:String, _arg2:int):String{ var _local3:String; var _local4:int; _local3 = ""; _local4 = _arg1.length; while (_local4 < _arg2) { _local3 = (_local3 + "0"); _local4++; }; _local3 = (_local3 + _arg1); return (_local3); } public static function Random(_arg1:Number, _arg2:Number):Number{ return ((_arg1 + ((_arg2 - _arg1) * Math.random()))); } public static function StringToTarget(_arg1:Class, _arg2:int, _arg3:String, _arg4:String, _arg5:int):String{ var _local6:Number; var _local7:Rectangle; var _local8:String; var _local9:String; var _local10:int; _local6 = Math.round((1 + (_arg2 / 70))); _local8 = ((_arg4)==null) ? "" : ((" (" + _arg4) + ")"); _local9 = (_arg3 + _local8); _local7 = ODisplay.TextRect(_arg1, _arg2, _local6, _local9); if (_local7.width <= _arg5){ return (_local9); }; _local8 = ("..." + _local8); _local10 = (_arg3.length - 1); while (_local10 > 0) { _local9 = (_arg3.substr(0, _local10) + _local8); _local7 = ODisplay.TextRect(_arg1, _arg2, _local6, _local9); if (_local7.width <= _arg5){ return (_local9); }; _local10--; }; return ((_arg3.substr(0, 1) + _local8)); } public static function ClearString(_arg1:String):String{ var _local2:String; var _local3:String; var _local4:int; _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "; _local3 = ""; _local4 = 0; while (_local4 < _arg1.length) { if (_local2.indexOf(_arg1.charAt(_local4)) > -1){ _local3 = (_local3 + _arg1.charAt(_local4)); }; _local4++; }; return (_local3); } } }//package ENGINE.CORE
Section 8
//OEffect (ENGINE.DISPLAY.EFFECTS.OEffect) package ENGINE.DISPLAY.EFFECTS { import ENGINE.DISPLAY.*; import ENGINE.CORE.*; import flash.filters.*; public class OEffect { protected var iColors:OCache; protected var iFilters:OCache; public function OEffect(){ this.iColors = new OCache(); this.iFilters = new OCache(); } public function RegisterColor(_arg1:String, _arg2):void{ this.iColors.SetItem(_arg1, _arg2); } public function Init(_arg1:String, _arg2:String, _arg3:Number=1):void{ } public function RegisterFilter(_arg1:String, _arg2):void{ this.iFilters.SetItem(_arg1, _arg2); } public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{ return (null); } public static function MakeBevelFilter(_arg1:Array):BevelFilter{ return (new BevelFilter(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[11], _arg1[12])); } } }//package ENGINE.DISPLAY.EFFECTS
Section 9
//OEffects (ENGINE.DISPLAY.EFFECTS.OEffects) package ENGINE.DISPLAY.EFFECTS { import ENGINE.DISPLAY.*; import ENGINE.CORE.*; public class OEffects { private static var iEffects:OCache = new OCache(); public static function RegisterColor(_arg1:String, _arg2:String, _arg3):void{ var _local4:OEffect; _local4 = iEffects.GetItem(_arg1); if (_local4 == null){ return; }; _local4.RegisterColor(_arg2, _arg3); } public static function RegisterEffect(_arg1:String, _arg2:OEffect):void{ iEffects.SetItem(_arg1, _arg2); } public static function Make(_arg1:Array):OBM{ var _local2:OEffect; _local2 = iEffects.GetItem(_arg1[3]); if (_local2 == null){ return (null); }; _local2.Init(_arg1[4], _arg1[5], _arg1[6]); return (_local2.Apply(_arg1[1], _arg1[2], _arg1[7], _arg1[8])); } public static function GetEffect(_arg1:String):OEffect{ return (iEffects.GetItem(_arg1)); } public static function RegisterFilter(_arg1:String, _arg2:String, _arg3):void{ var _local4:OEffect; _local4 = iEffects.GetItem(_arg1); if (_local4 == null){ return; }; _local4.RegisterFilter(_arg2, _arg3); } public static function Apply(_arg1, _arg2:Number, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=1, _arg7:Number=0, _arg8:Number=0):OBM{ var _local9:OEffect; _local9 = iEffects.GetItem(_arg3); if (_local9 == null){ return (null); }; _local9.Init(_arg4, _arg5, _arg6); return (_local9.Apply([ODisplay.SpriteLib, _arg1], _arg2, _arg7, _arg8)); } } }//package ENGINE.DISPLAY.EFFECTS
Section 10
//IDisplayObject (ENGINE.DISPLAY.IDisplayObject) package ENGINE.DISPLAY { public interface IDisplayObject { function set prVisible(_arg1:Boolean):void; function get prWidth():Number; function get prHeight():Number; function set prX(_arg1:Number):void; function set prY(_arg1:Number):void; function get prVisible():Boolean; function Move(_arg1:Number, _arg2:Number):void; function Pos(_arg1:Number, _arg2:Number):void; function get prX():Number; function get prY():Number; } }//package ENGINE.DISPLAY
Section 11
//OBitmap (ENGINE.DISPLAY.OBitmap) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import ENGINE.DISPLAY.EFFECTS.*; import flash.text.*; import ENGINE.CORE.*; public class OBitmap extends Bitmap implements IDisplayObject { protected var iY:Number;// = 0 protected var iX:Number;// = 0 protected var iOBM:OBM;// = null public function OBitmap(_arg1:OBM=null, _arg2:Number=0, _arg3:Number=0){ iX = 0; iY = 0; iOBM = null; super(); this.iX = _arg2; this.iY = _arg3; Init(_arg1); } public function get prVisible():Boolean{ return (this.visible); } public function set prX(_arg1:Number):void{ this.iX = _arg1; Pos(this.iX, this.iY); } public function Clear():void{ this.Init(null); } public function set prOBM(_arg1:OBM):void{ this.Init(_arg1); } public function Pos(_arg1:Number, _arg2:Number):void{ this.iX = _arg1; this.iY = _arg2; if (this.iOBM){ this.x = ((this.iX * OGlobal.Scale) + this.iOBM.iX); this.y = ((this.iY * OGlobal.Scale) + this.iOBM.iY); } else { this.x = (this.iX * OGlobal.Scale); this.y = (this.iY * OGlobal.Scale); }; } public function set prY(_arg1:Number):void{ this.iY = _arg1; Pos(this.iX, this.iY); } public function Init(_arg1:OBM):void{ this.iOBM = _arg1; this.bitmapData = (_arg1) ? _arg1.iBM : null; this.Pos(this.iX, this.iY); } public function set prVisible(_arg1:Boolean):void{ this.visible = _arg1; } public function Clone():OBitmap{ return (new OBitmap(this.iOBM.Clone(), this.iX, this.iY)); } public function get prX():Number{ return (this.iX); } public function get prY():Number{ return (this.iY); } public function get prOBM():OBM{ return (this.iOBM); } public function get prHeight():Number{ return ((this.iOBM) ? (this.iOBM.iHeight / OGlobal.Scale) : 0); } public function get prWidth():Number{ return ((this.iOBM) ? (this.iOBM.iWidth / OGlobal.Scale) : 0); } public function CopyFrom(_arg1:OBitmap):void{ this.iX = _arg1.iX; this.iY = _arg1.iY; this.Init(_arg1.iOBM); } public function Move(_arg1:Number, _arg2:Number):void{ Pos((this.iX + _arg1), (this.iY + _arg2)); } public static function MakeEffectFromListP(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:Sprite; _local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); _local3 = (_local2.getChildAt(_arg1[2]) as Sprite); return (OBitmap.MakeEffect(_local3, _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _local3.x, _local3.y)); } public static function MakeEffectP(_arg1:Array):OBitmap{ return (OBitmap.MakeEffect(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8])); } public static function MakeEffectTextInRectP(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:Rectangle; var _local4:Number; var _local5:Number; var _local6:TextField; var _local7:TextFormat; _local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); if ((_local2.getChildAt(0) is TextField)){ _local6 = (_local2.getChildAt(0) as TextField); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.text = _arg1[4]; _local7 = _local6.defaultTextFormat; _local7.size = _arg1[2]; _local7.letterSpacing = _arg1[3]; _local6.setTextFormat(_local7); } else { return (null); }; _local3 = _local2.getBounds(_local2); _local4 = ((_arg1[9] - _local3.width) / 2); _local5 = ((_arg1[10] - _local3.height) / 2); return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], (_arg1[11] + _local4), (_arg1[12] + _local5))); } public static function MakeEffectTextP(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:TextField; var _local4:TextFormat; _local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); if ((_local2.getChildAt(0) is TextField)){ _local3 = (_local2.getChildAt(0) as TextField); _local3.autoSize = TextFieldAutoSize.LEFT; _local3.text = _arg1[4]; _local4 = _local3.defaultTextFormat; _local4.size = _arg1[2]; _local4.letterSpacing = _arg1[3]; _local3.setTextFormat(_local4); } else { return (null); }; return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10])); } public static function MakeRoundRectBorderEffectP(_arg1:Array):OBitmap{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]); _local2.graphics.drawRoundRect(_arg1[4], _arg1[4], (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), (_arg1[3] - _arg1[4])); return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10])); } public static function MakeEffectInRectP(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Sprite; var _local4:Rectangle; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local2 = Math.min(_arg1[7], _arg1[8]); _local3 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); _local4 = _local3.getBounds(_local3); _local5 = Math.max(_local4.width, _local4.height); _local6 = ((_local2 / _local5) * _arg1[2]); _local7 = ((_arg1[7] - (_local4.width * _local6)) / 2); _local8 = ((_arg1[8] - (_local4.height * _local6)) / 2); return (OBitmap.MakeEffect(_local3, _local6, _arg1[3], _arg1[4], _arg1[5], _arg1[6], (_arg1[9] + _local7), (_arg1[10] + _local8))); } public static function MakeTmp(_arg1, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):OBitmap{ var _local6:OBM; _local6 = OBM.Make([null, [ODisplay.SpriteLib, _arg1], _arg2, _arg3, _arg4, _arg5]); return (new OBitmap(_local6, _arg3, _arg4)); } public static function MakeP(_arg1:Array):OBitmap{ return (OBitmap.MakeTmp(_arg1[1], _arg1[2], _arg1[3], _arg1[4])); } public static function MakeRoundRectEffectP(_arg1:Array):OBitmap{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]); return (OBitmap.MakeEffect(_local2, 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9])); } public static function Make(_arg1:Array):OBitmap{ return (new OBitmap(_arg1[1][0](_arg1[1]), _arg1[2], _arg1[3])); } public static function MakeEffect(_arg1, _arg2:Number, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=1, _arg7:Number=0, _arg8:Number=0):OBitmap{ var _local9:OBM; _local9 = OEffects.Apply(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); return (new OBitmap(_local9, _arg7, _arg8)); } } }//package ENGINE.DISPLAY
Section 12
//OBM (ENGINE.DISPLAY.OBM) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import ENGINE.CORE.*; public class OBM { public var iX:Number; public var iHeight:Number; public var iBM:BitmapData; public var iY:Number; public var iWidth:Number; public function OBM(_arg1:BitmapData=null, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ this.iBM = _arg1; this.iX = _arg2; this.iY = _arg3; this.iWidth = _arg4; this.iHeight = _arg5; } public function Clone():OBM{ var _local1:BitmapData; _local1 = this.iBM.clone(); return (new OBM(_local1, this.iX, this.iY, this.iWidth, this.iHeight)); } public static function MakeFill(_arg1:Array):OBM{ var _local2:Sprite; var _local3:Sprite; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Rectangle; var _local8:Sprite; var _local9:int; var _local10:int; var _local11:Number; var _local12:Number; var _local13:BitmapData; var _local14:Matrix; _local2 = new Sprite(); _local3 = _arg1[1][0](_arg1[1]); _local4 = (OGlobal.Scale * _arg1[2]); _local5 = OGlobal.ToGlobal(_arg1[4]); _local6 = OGlobal.ToGlobal(_arg1[5]); _local3.scaleX = _local4; _local3.scaleY = _local4; _local3.x = (_local3.x * OGlobal.Scale); _local3.y = (_local3.y * OGlobal.Scale); _local3.x = (_local3.x + _local5); _local3.y = (_local3.y + _local6); _local2.addChild(_local3); _local7 = _local3.getBounds(_local2); _local2.removeChild(_local3); _local8 = new Sprite(); _local8.graphics.beginBitmapFill(_arg1[3]); _local8.graphics.drawRect((_local7.x - 1), (_local7.y - 1), (_local7.width + 2), (_local7.height + 2)); _local8.graphics.endFill(); _local8.mask = _local3; _local2.addChild(_local8); _local9 = ((_local7.width + 4) + (_arg1[6] * 2)); _local10 = ((_local7.height + 4) + (_arg1[6] * 2)); _local11 = Math.floor(_local7.x); _local12 = Math.floor(_local7.y); _local13 = new BitmapData(_local9, _local10, true, 0); _local14 = new Matrix(1, 0, 0, 1, ((-(_local11) + 1) + _arg1[6]), ((-(_local12) + 1) + _arg1[6])); _local13.draw(_local2, _local14); return (new OBM(_local13, (((_local11 - _local5) - 1) - _arg1[6]), (((_local12 - _local6) - 1) - _arg1[6]), _local7.width, _local7.height)); } public static function Make(_arg1:Array):OBM{ var _local2:Sprite; var _local3:Sprite; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Rectangle; var _local8:int; var _local9:int; var _local10:Number; var _local11:Number; var _local12:BitmapData; var _local13:Matrix; _local2 = new Sprite(); _local3 = _arg1[1][0](_arg1[1]); _local4 = (OGlobal.Scale * _arg1[2]); _local5 = OGlobal.ToGlobal(_arg1[3]); _local6 = OGlobal.ToGlobal(_arg1[4]); _local3.scaleX = _local4; _local3.scaleY = _local4; _local3.x = (_local3.x * OGlobal.Scale); _local3.y = (_local3.y * OGlobal.Scale); _local3.x = (_local3.x + _local5); _local3.y = (_local3.y + _local6); _local2.addChild(_local3); _local7 = _local3.getBounds(_local2); _local8 = ((_local7.width + 4) + (_arg1[5] * 2)); _local9 = ((_local7.height + 4) + (_arg1[5] * 2)); _local10 = Math.floor(_local7.x); _local11 = Math.floor(_local7.y); _local12 = new BitmapData(_local8, _local9, true, 0); _local13 = new Matrix(1, 0, 0, 1, ((-(_local10) + 1) + _arg1[5]), ((-(_local11) + 1) + _arg1[5])); _local12.draw(_local2, _local13); return (new OBM(_local12, (((_local10 - _local5) - 1) - _arg1[5]), (((_local11 - _local6) - 1) - _arg1[5]), _local7.width, _local7.height)); } } }//package ENGINE.DISPLAY
Section 13
//ODisplay (ENGINE.DISPLAY.ODisplay) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import ENGINE.DISPLAY.EFFECTS.*; import flash.text.*; import ENGINE.CORE.*; public class ODisplay { public static function SpriteErase(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Sprite; var _local4:Sprite; var _local5:Sprite; _local2 = new Sprite(); _local3 = new Sprite(); _local3.blendMode = BlendMode.LAYER; _local4 = _arg1[1][0](_arg1[1]); _local5 = _arg1[2][0](_arg1[2]); _local5.blendMode = BlendMode.ERASE; _local3.addChild(_local4); _local3.addChild(_local5); _local2.addChild(_local3); return (_local2); } public static function HSBToRGB(_arg1:Number, _arg2:Number, _arg3:Number):uint{ var _local4:int; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:int; var _local11:int; var _local12:int; _arg1 = (_arg1 % 360); if (_arg2 > 1){ _arg2 = 1; }; if (_arg3 > 1){ _arg3 = 1; }; if (_arg2 == 0){ _local4 = (_arg3 * 0xFF); return ((((_local4 << 16) | (_local4 << 8)) | _local4)); }; if (_arg1 == 360){ _arg1 = 0; } else { _arg1 = (_arg1 / 60); }; _local5 = Math.floor(_arg1); _local6 = (_arg1 - _local5); _local7 = (_arg3 * (1 - _arg2)); _local8 = (_arg3 * (1 - (_arg2 * _local6))); _local9 = (_arg3 * (1 - (_arg2 * (1 - _local6)))); switch (_local5){ case 0: _local10 = (_arg3 * 0xFF); _local11 = (_local9 * 0xFF); _local12 = (_local7 * 0xFF); break; case 1: _local10 = (_local8 * 0xFF); _local11 = (_arg3 * 0xFF); _local12 = (_local7 * 0xFF); break; case 2: _local10 = (_local7 * 0xFF); _local11 = (_arg3 * 0xFF); _local12 = (_local9 * 0xFF); break; case 3: _local10 = (_local7 * 0xFF); _local11 = (_local8 * 0xFF); _local12 = (_arg3 * 0xFF); break; case 4: _local10 = (_local9 * 0xFF); _local11 = (_local7 * 0xFF); _local12 = (_arg3 * 0xFF); break; case 5: _local10 = (_arg3 * 0xFF); _local11 = (_local7 * 0xFF); _local12 = (_local8 * 0xFF); break; }; return ((((_local10 << 16) | (_local11 << 8)) | _local12)); } public static function OBitmapXBorderSprite(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[15], _arg1[16]], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[9]], _arg1[10], _arg1[1], _arg1[2]], _arg1[9], _arg1[11], _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[16]]]])); } public static function OBitmapAngleFrameSprite(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[18] + _arg1[4]), (_arg1[19] + _arg1[4])], [null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[18], _arg1[19]], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[12]], _arg1[13], _arg1[1], _arg1[2]], _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18], _arg1[19]]]])); } public static function OBitmapXBorder(_arg1:Array):OBitmap{ return (OBitmapMake([null, [SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]])); } public static function OBitmapAngleFrameText(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[20], _arg1[21]], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]])); } public static function OBitmapRoundFrameText(_arg1:Array):OBitmap{ if (_arg1[4]){ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[20], _arg1[21]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]])); }; return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]])); } public static function SpriteFillRect(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Sprite; var _local4:Rectangle; var _local5:Number; _local2 = new Sprite(); _local3 = _arg1[1][0](_arg1[1]); _local2.addChild(_local3); _local4 = _local3.getBounds(_local2); _local5 = (Math.max(_arg1[2], _arg1[3]) / Math.max(_local4.width, _local4.height)); _local3.scaleX = _local5; _local3.scaleY = _local5; _local4 = _local3.getBounds(_local2); _local2.removeChild(_local3); _local3.x = (_local3.x + ((_arg1[2] - _local4.width) / 2)); _local3.y = (_local3.y + ((_arg1[3] - _local4.height) / 2)); return (_local3); } public static function TextRect(_arg1, _arg2:Number, _arg3:Number, _arg4:String):Rectangle{ var _local5:Sprite; var _local6:TextField; var _local7:TextFormat; _local5 = ((_arg1 is Sprite)) ? (_arg1 as Sprite) : new ((_arg1 as Class)); if ((_local5.getChildAt(0) is TextField)){ _local6 = (_local5.getChildAt(0) as TextField); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.text = _arg4; _local7 = _local6.defaultTextFormat; _local7.size = _arg2; _local7.letterSpacing = _arg3; _local6.setTextFormat(_local7); } else { return (null); }; return (_local5.getBounds(_local5)); } public static function OBitmapXBorderText(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[17], _arg1[18]], [null, [ODisplay.SpriteTextInRect, _arg1[9], _arg1[10], _arg1[11], _arg1[12], _arg1[1], _arg1[2]], 1, _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18]]]])); } public static function OBitmapRoundRect(_arg1:Array):OBitmap{ return (OBitmapMake([null, [SpriteRoundRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]])); } public static function OBitmapAngleFrame(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[12], _arg1[13]], [null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[12] + _arg1[4]), (_arg1[13] + _arg1[4])]]])); } public static function HSBAToRGBA(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):uint{ var _local5:uint; var _local6:uint; _local5 = HSBToRGB(_arg1, _arg2, _arg3); _local6 = (0xFF * _arg4); _local6 = (_local6 << 24); return ((_local5 + _local6)); } public static function OBitmapTextAlign(_arg1:Array):OBitmap{ return (OBitmapMake([null, [ODisplay.SpriteTextAlign, _arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[11], _arg1[12]], 1, _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[13], _arg1[14]])); } public static function OBitmapList(_arg1:Array):OBitmap{ var _local2:OBM; var _local3:Number; var _local4:Number; var _local5:int; var _local6:OBM; var _local7:Matrix; _local2 = OEffects.Make(_arg1[1][0]); _local3 = (_local2.iX + (_arg1[1][0][7] * OGlobal.Scale)); _local4 = (_local2.iY + (_arg1[1][0][8] * OGlobal.Scale)); _local5 = 1; while (_local5 < _arg1[1].length) { _local6 = OEffects.Make(_arg1[1][_local5]); _local7 = new Matrix(1, 0, 0, 1, (((_arg1[1][_local5][7] * OGlobal.Scale) + _local6.iX) - _local3), (((_arg1[1][_local5][8] * OGlobal.Scale) + _local6.iY) - _local4)); _local2.iBM.draw(_local6.iBM, _local7); _local5++; }; return (new OBitmap(_local2, _arg1[1][0][7], _arg1[1][0][8])); } public static function SpriteLibList(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); if (_arg1[2] >= _local2.numChildren){ return (null); }; return ((_local2.getChildAt(_arg1[2]) as Sprite)); } public static function SpriteXBorder(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.lineStyle(_arg1[4]); _local2.graphics.moveTo(0, _arg1[3]); _local2.graphics.lineTo(_arg1[1], _arg1[3]); _local2.graphics.moveTo(0, (_arg1[2] - _arg1[3])); _local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3])); _local2.graphics.moveTo(_arg1[3], 0); _local2.graphics.lineTo(_arg1[3], _arg1[2]); _local2.graphics.moveTo((_arg1[1] - _arg1[3]), 0); _local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]); return (_local2); } public static function SpriteLib(_arg1:Array):Sprite{ return (((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class))); } public static function OBitmapAngleBorder(_arg1:Array):OBitmap{ return (OBitmapMake([null, [SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]])); } public static function OBitmapRoundBorder(_arg1:Array):OBitmap{ return (OBitmapMake([null, [SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]])); } public static function SpriteScale(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = _arg1[1][0](_arg1[1]); _local2.scaleX = _arg1[2]; _local2.scaleY = _arg1[2]; return (_local2); } public static function IDisplayObjectMake(_arg1:Array){ var _local2:IDisplayObject; _local2 = _arg1[1][0](_arg1[1]); _local2.Pos(_arg1[2], _arg1[3]); return (_local2); } public static function SpriteAlign(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Sprite; var _local4:Rectangle; _local2 = new Sprite(); _local3 = _arg1[1][0](_arg1[1]); _local3.scaleX = _arg1[2]; _local3.scaleY = _arg1[2]; _local2.addChild(_local3); _local4 = _local3.getBounds(_local2); _local2.removeChild(_local3); switch (_arg1[3]){ case 1: _local3.x = (_local3.x + ((_arg1[5] - _local4.width) / 2)); break; case 2: _local3.x = (_local3.x + (_arg1[5] - _local4.width)); break; }; switch (_arg1[4]){ case 1: _local3.y = (_local3.y + ((_arg1[6] - _local4.height) / 2)); break; case 2: _local3.y = (_local3.y + (_arg1[6] - _local4.height)); break; }; return (_local3); } public static function OBitmapAngleRect(_arg1:Array):OBitmap{ return (OBitmapMake([null, [SpriteAngleRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]])); } public static function SpriteRect(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRect(0, 0, _arg1[1], _arg1[2]); return (_local2); } public static function OBitmapSpriteFillRect(_arg1:Array):OBitmap{ var _local2:Sprite; _local2 = ODisplay.SpriteFillRect([null, _arg1[3], _arg1[1], _arg1[2]]); return (OBitmapMake([null, [ODisplay.SpriteFillRect, _arg1[3], _arg1[1], _arg1[2]], _local2.scaleX, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]])); } public static function OBitmapText(_arg1:Array):OBitmap{ return (OBitmapMake([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]])); } public static function OBitmapMake(_arg1:Array):OBitmap{ return (new OBitmap(OEffects.Make(_arg1), _arg1[7], _arg1[8])); } public static function SpriteRoundRect(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]); return (_local2); } public static function SpriteInRect(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Sprite; var _local4:Rectangle; _local2 = new Sprite(); _local3 = _arg1[1][0](_arg1[1]); _local3.scaleX = _arg1[2]; _local3.scaleY = _arg1[2]; _local2.addChild(_local3); _local4 = _local3.getBounds(_local2); _local2.removeChild(_local3); _local3.x = (_local3.x + ((_arg1[3] - _local4.width) / 2)); _local3.y = (_local3.y + ((_arg1[4] - _local4.height) / 2)); return (_local3); } public static function SpriteScaleRotate(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Number; var _local4:Number; var _local5:Matrix; var _local6:Matrix; var _local7:Sprite; _local2 = _arg1[1][0](_arg1[1]); _local3 = (_arg1[4] * _arg1[2]); _local4 = (_arg1[5] * _arg1[2]); _local5 = new Matrix(); _local5.scale(_arg1[2], _arg1[2]); _local5.translate(-(_local3), -(_local4)); _local5.rotate(((Math.PI / 180) * _arg1[3])); _local6 = new Matrix(); _local6.translate(_local3, _local4); _local5.concat(_local6); _local7 = new Sprite(); _local7.addChild(_local2); _local2.transform.matrix = _local5; return (_local7); } public static function OBitmapRoundFrameSprite(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[18], _arg1[19]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[18] + _arg1[4]), (_arg1[19] + _arg1[4])], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[12]], _arg1[13], _arg1[1], _arg1[2]], _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18], _arg1[19]]]])); } public static function SpriteText(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:TextField; var _local4:TextFormat; _local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); if ((_local2.getChildAt(0) is TextField)){ _local3 = (_local2.getChildAt(0) as TextField); _local3.autoSize = TextFieldAutoSize.LEFT; _local3.text = _arg1[4]; _local4 = _local3.defaultTextFormat; _local4.size = _arg1[2]; _local4.letterSpacing = _arg1[3]; _local3.setTextFormat(_local4); } else { return (null); }; return (_local2); } public static function SpriteTextAlign(_arg1:Array):Sprite{ return (ODisplay.SpriteAlign([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8]])); } public static function OBitmapTextInRect(_arg1:Array):OBitmap{ return (OBitmapMake([null, [ODisplay.SpriteTextInRect, _arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[9], _arg1[10]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[11], _arg1[12]])); } public static function SpriteRoundBorder(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]); _local2.graphics.drawRoundRect(_arg1[4], _arg1[4], (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), (_arg1[3] - _arg1[4])); return (_local2); } public static function SpriteAngleRect(_arg1:Array):Sprite{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.moveTo(_arg1[3], 0); _local2.graphics.lineTo((_arg1[1] - _arg1[3]), 0); _local2.graphics.lineTo(_arg1[1], _arg1[3]); _local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3])); _local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]); _local2.graphics.lineTo(_arg1[3], _arg1[2]); _local2.graphics.lineTo(0, (_arg1[2] - _arg1[3])); _local2.graphics.lineTo(0, _arg1[3]); _local2.graphics.endFill(); return (_local2); } public static function SpriteAngleBorder(_arg1:Array):Sprite{ var _local2:Sprite; var _local3:Number; var _local4:Number; var _local5:Number; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.moveTo(_arg1[3], 0); _local2.graphics.lineTo((_arg1[1] - _arg1[3]), 0); _local2.graphics.lineTo(_arg1[1], _arg1[3]); _local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3])); _local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]); _local2.graphics.lineTo(_arg1[3], _arg1[2]); _local2.graphics.lineTo(0, (_arg1[2] - _arg1[3])); _local2.graphics.lineTo(0, _arg1[3]); _local3 = (_arg1[1] - (_arg1[4] * 2)); _local4 = (_arg1[2] - (_arg1[4] * 2)); _local5 = ((_arg1[3] * _local3) / _arg1[1]); _local2.graphics.moveTo((_arg1[4] + _local5), (_arg1[4] + 0)); _local2.graphics.lineTo(((_arg1[4] + _local3) - _local5), (_arg1[4] + 0)); _local2.graphics.lineTo((_arg1[4] + _local3), (_arg1[4] + _local5)); _local2.graphics.lineTo((_arg1[4] + _local3), ((_arg1[4] + _local4) - _local5)); _local2.graphics.lineTo(((_arg1[4] + _local3) - _local5), (_arg1[4] + _local4)); _local2.graphics.lineTo((_arg1[4] + _local5), (_arg1[4] + _local4)); _local2.graphics.lineTo((_arg1[4] + 0), ((_arg1[4] + _local4) - _local5)); _local2.graphics.lineTo((_arg1[4] + 0), (_arg1[4] + _local5)); return (_local2); } public static function SpriteTextInRect(_arg1:Array):Sprite{ return (ODisplay.SpriteInRect([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6]])); } public static function OBitmapRoundFrame(_arg1:Array):OBitmap{ return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[12], _arg1[13]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[12] + _arg1[4]), (_arg1[13] + _arg1[4])]]])); } } }//package ENGINE.DISPLAY
Section 14
//OSprite (ENGINE.DISPLAY.OSprite) package ENGINE.DISPLAY { import flash.display.*; import ENGINE.CORE.*; public class OSprite extends Sprite implements IDisplayObject { private var iY:Number;// = 0 private var iX:Number;// = 0 public function OSprite(){ iX = 0; iY = 0; super(); } public function get prVisible():Boolean{ return (this.visible); } public function set prX(_arg1:Number):void{ this.iX = _arg1; this.x = (_arg1 * OGlobal.Scale); } public function set prY(_arg1:Number):void{ this.iY = _arg1; this.y = (_arg1 * OGlobal.Scale); } public function Pos(_arg1:Number, _arg2:Number):void{ this.iX = _arg1; this.iY = _arg2; this.x = (this.iX * OGlobal.Scale); this.y = (this.iY * OGlobal.Scale); } public function set prVisible(_arg1:Boolean):void{ this.visible = _arg1; } public function lineStyle(_arg1:Number, _arg2:uint=0, _arg3:Number=1, _arg4:Boolean=false, _arg5:String="normal", _arg6:String=null, _arg7:String=null, _arg8:Number=3):void{ this.graphics.lineStyle((_arg1 * OGlobal.Scale), _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, (_arg8 * OGlobal.Scale)); } public function drawCircle(_arg1:Number, _arg2:Number, _arg3:Number):void{ this.graphics.drawCircle((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale), (_arg3 * OGlobal.Scale)); } public function moveTo(_arg1:Number, _arg2:Number):void{ this.graphics.moveTo((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale)); } public function get prX():Number{ return (this.iX); } public function get prY():Number{ return (this.iY); } public function Free():void{ var _local1:DisplayObject; while (this.numChildren) { _local1 = this.getChildAt(0); if ((_local1 is OSprite)){ (_local1 as OSprite).Free(); }; this.removeChildAt(0); }; } public function lineTo(_arg1:Number, _arg2:Number):void{ this.graphics.lineTo((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale)); } public function get prHeight():Number{ return ((this.height / OGlobal.Scale)); } public function get prWidth():Number{ return ((this.width / OGlobal.Scale)); } public function Move(_arg1:Number, _arg2:Number):void{ Pos((this.iX + _arg1), (this.iY + _arg2)); } public static function Make(_arg1:Array):OSprite{ var _local2:OSprite; var _local3:int; var _local4:int; _local2 = new (OSprite); _local3 = _arg1[1].length; _local4 = 0; while (_local4 < _local3) { _local2.addChild(_arg1[1][_local4][0](_arg1[1][_local4])); _local4++; }; _local2.Pos(_arg1[2], _arg1[3]); return (_local2); } } }//package ENGINE.DISPLAY
Section 15
//OGame (ENGINE.GAME.OGame) package ENGINE.GAME { import ENGINE.CORE.*; import flash.utils.*; import flash.net.*; public class OGame { protected var iSTableSize:int; protected var iCache:OCache; protected var iPlayer:OPlayer; protected var iRNDFactor:int; protected var iModes:int; protected var iScores:OScoresTable; public static const catGlobal:String = "Global"; public static const catTmp:String = "Tmp"; protected static const strgMusicVolume:String = "Music Volume"; protected static const strgResX:String = "ResX"; protected static const strgResY:String = "ResY"; protected static const strgСurPlayer:String = "Current Player"; protected static const strgFullScreen:String = "Full Screen"; protected static const strgSoundVolume:String = "Sound Volume"; protected static const strgLocalScores:String = "Local Scores"; public static const catPlayers:String = "Players"; public function OGame(_arg1:int=1, _arg2:int=10, _arg3:int=10){ var _local4:String; super(); this.iModes = _arg1; this.iSTableSize = _arg2; registerClassAlias("OCacheClass", OCache); registerClassAlias("OGameParamsClass", OGameParams); registerClassAlias("OScoreParamsClass", OScoreParams); registerClassAlias("OScoresTableClass", OScoresTable); registerClassAlias("OPlayerClass", OPlayer); this.LoadCache(); _local4 = this.iCache.GetCategoryItem(catGlobal, strgСurPlayer); if (_local4){ this.iPlayer = this.iCache.GetCategoryItem(catPlayers, _local4); this.iScores = this.iCache.GetCategoryItem(catGlobal, strgLocalScores); this.InitAfterLoadCache(); } else { this.iScores = new OScoresTable(_arg1, this.iSTableSize); this.DefaultInitLocalScores(); this.iCache.SetCategoryItem(catGlobal, strgLocalScores, this.iScores); this.iCache.SetCategoryItem(catGlobal, strgSoundVolume, 1); this.iCache.SetCategoryItem(catGlobal, strgMusicVolume, 1); this.iCache.SetCategoryItem(catGlobal, strgResX, OGlobal.StageRect.width); this.iCache.SetCategoryItem(catGlobal, strgResY, OGlobal.StageRect.height); this.iCache.SetCategoryItem(catGlobal, strgFullScreen, false); }; OSound.SoundVolume = this.prSoundVolume; OSound.MusicVolume = this.prMusicVolume; } public function set prFullScreen(_arg1:Boolean):void{ this.iCache.SetCategoryItem(catGlobal, strgFullScreen, _arg1); } public function set prMode(_arg1:int):void{ this.iPlayer.iMode = _arg1; } public function get prGamesStartCount():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart); } public function get prLevelScore():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore); } public function set prPassword(_arg1:String):void{ this.iPlayer.iPassword = _arg1; } public function DeletePlayer(_arg1:String):String{ var _local2:String; var _local3:Array; _local2 = (this.iPlayer) ? this.iPlayer.iName : ""; this.iCache.DeleteCategoryItem(catPlayers, _arg1); if (_arg1 == _local2){ _local3 = this.iCache.GetCategoryNames(catPlayers); if (!_local3){ this.iPlayer = null; return (null); }; this.iPlayer = this.iCache.GetCategoryItem(catPlayers, _local3[0]); this.iCache.SetCategoryItem(catGlobal, strgСurPlayer, _local3[0]); }; return ((this.iPlayer) ? this.iPlayer.iName : null); } public function get prPlayerNames():Array{ return (this.iCache.GetCategoryNames(catPlayers)); } public function ClearPersonalScores(_arg1:int):void{ this.iPlayer.iScoreTable.Clear(_arg1); } public function GetPersonalRecord(_arg1:int):int{ return (this.iPlayer.iScoreTable.GetRecord(_arg1)); } public function InitAfterLoadCache():void{ } public function AddScore(_arg1:int):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iScore = (this.iPlayer.iGParams[this.iPlayer.iMode].iScore + _arg1); } public function get prPlayersData(){ var _local1:OCache; var _local2:ByteArray; _local1 = this.iCache.GetItem(catPlayers); _local2 = _local1.Pack(); _local2.uncompress(); _local1 = _local2.readObject(); return (_local1); } public function IsPersonalRecord(_arg1:int, _arg2:int):Boolean{ return (this.iPlayer.iScoreTable.IsRecord(_arg1, _arg2)); } public function LoadCache():void{ var so:SharedObject; var a:ByteArray; so = SharedObject.getLocal(OGlobal.AppName); if (so.data.iData == undefined){ this.iCache = new OCache(); } else { try { a = so.data.iData; a.uncompress(); this.iCache = a.readObject(); } catch(error:Error) { this.iCache = new OCache(); }; }; so.close(); } public function NewGame():void{ this.iPlayer.iGParams[this.iPlayer.iMode].iLevel = 0; this.iPlayer.iGParams[this.iPlayer.iMode].iScore = 0; this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore = 0; this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame = null; this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart++; } public function get prLevel():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevel); } public function get prSoundVolume():Number{ return (this.iCache.GetCategoryItem(catGlobal, strgSoundVolume)); } public function get prPlayerName():String{ return ((this.iPlayer) ? this.iPlayer.iName : ""); } public function get prScore():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iScore); } public function NextLevel():Boolean{ this.iPlayer.iGParams[this.iPlayer.iMode].iLevel++; return (true); } public function set prPlayersData(_arg1):void{ this.iCache.SetItem(catPlayers, _arg1); } public function Read(_arg1:String, _arg2:String){ return (this.iCache.GetCategoryItem(_arg1, _arg2)); } public function get prSavedGame():String{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame); } public function set prResX(_arg1:int):void{ this.iCache.SetCategoryItem(catGlobal, strgResX, _arg1); } public function get prRNDFactor():int{ return (this.iPlayer.iRNDFactor); } public function get prMusicVolume():Number{ return (this.iCache.GetCategoryItem(catGlobal, strgMusicVolume)); } public function Write(_arg1:String, _arg2:String, _arg3):void{ this.iCache.SetCategoryItem(_arg1, _arg2, _arg3); } public function Start():void{ this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart++; } public function get prPassword():String{ return ((this.iPlayer.iPassword) ? this.iPlayer.iPassword : ""); } public function get prMode():int{ return (this.iPlayer.iMode); } public function End():void{ this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesEnd++; } public function set prSoundVolume(_arg1:Number):void{ OSound.SoundVolume = _arg1; this.iCache.SetCategoryItem(catGlobal, strgSoundVolume, _arg1); } public function SetLevelScore(_arg1:int):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore = _arg1; } public function GetLocalScores(_arg1:int, _arg2:int):OScoreParams{ return (this.iScores.GetScore(_arg1, _arg2)); } public function GetPersonalScores(_arg1:int, _arg2:int):OScoreParams{ return (this.iPlayer.iScoreTable.GetScore(_arg1, _arg2)); } public function AddScoreInTable(_arg1:int):Boolean{ var _local2:Boolean; _local2 = false; if (this.iScores.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel)){ this.iCache.SetCategoryItem(OGame.catGlobal, OGame.strgLocalScores, this.iScores); _local2 = true; }; if (this.iPlayer.iScoreTable.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel, true)){ this.iCache.SetCategoryItem(OGame.catPlayers, this.prPlayerName, this.iPlayer); _local2 = true; }; return (_local2); } public function get prResX():int{ return (this.iCache.GetCategoryItem(catGlobal, strgResX)); } public function get prResY():int{ return (this.iCache.GetCategoryItem(catGlobal, strgResY)); } public function set prPlayerName(_arg1:String):void{ var _local2:OPlayer; _local2 = this.iCache.GetCategoryItem(catPlayers, _arg1); if (!_local2){ _local2 = new OPlayer(_arg1, "", this.iModes, this.iSTableSize); this.iCache.SetCategoryItem(catPlayers, _arg1, _local2); }; this.iPlayer = _local2; this.iCache.SetCategoryItem(catGlobal, strgСurPlayer, _arg1); } public function DefaultInitLocalScores():void{ this.iScores.Clear(0); this.iScores.AddScore("Emily", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Michael", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Jacob", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Isabella", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Madison", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3))); this.iScores.SortOn(0); } public function SaveCache():Boolean{ var _local1:SharedObject; var _local2:String; _local1 = SharedObject.getLocal(OGlobal.AppName); _local1.data.iData = this.iCache.Pack(); _local2 = _local1.flush(); _local1.close(); return ((_local2 == SharedObjectFlushStatus.FLUSHED)); } public function set prResY(_arg1:int):void{ this.iCache.SetCategoryItem(catGlobal, strgResY, _arg1); } public function SetSaveGame(_arg1:String):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame = _arg1; } public function get prGamesEndCount():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesEnd); } public function set prMusicVolume(_arg1:Number):void{ OSound.MusicVolume = _arg1; this.iCache.SetCategoryItem(catGlobal, strgMusicVolume, _arg1); } public function get prFullScreen():Boolean{ return (this.iCache.GetCategoryItem(catGlobal, strgFullScreen)); } public function ClearLocalScores(_arg1:int):void{ this.iScores.Clear(_arg1); } } }//package ENGINE.GAME
Section 16
//OGameParams (ENGINE.GAME.OGameParams) package ENGINE.GAME { public class OGameParams { public var iLevel:int; public var iScore:int; public var iSavedGame:String; public var iCGamesEnd:int; public var iLevelScore:int; public var iCGamesStart:int; } }//package ENGINE.GAME
Section 17
//OPlayer (ENGINE.GAME.OPlayer) package ENGINE.GAME { public class OPlayer { public var iPassword:String; public var iScoreTable:OScoresTable; public var iGParams:Array; public var iMode:int; public var iRNDFactor:int; public var iName:String; public function OPlayer(_arg1:String=null, _arg2:String=null, _arg3:int=1, _arg4:int=10, _arg5:int=10){ var _local6:int; super(); this.iName = _arg1; this.iPassword = _arg2; this.iGParams = new Array(_arg3); this.iRNDFactor = Math.round((Math.random() * (_arg5 - 1))); _local6 = 0; while (_local6 < _arg3) { this.iGParams[_local6] = new OGameParams(); _local6++; }; this.iScoreTable = new OScoresTable(_arg3, _arg4); } } }//package ENGINE.GAME
Section 18
//OScoreParams (ENGINE.GAME.OScoreParams) package ENGINE.GAME { public class OScoreParams { public var iScore:int; public var iName:String; public var iLevel:int; public var iTime:Number; public function OScoreParams(_arg1:String=null, _arg2:int=0, _arg3:int=0){ var _local4:Date; super(); this.iName = _arg1; this.iScore = _arg2; _local4 = new Date(); this.iTime = _local4.time; } } }//package ENGINE.GAME
Section 19
//OScoresTable (ENGINE.GAME.OScoresTable) package ENGINE.GAME { public class OScoresTable { public var iTable:Array; public var iMaxElements:int; public function OScoresTable(_arg1:int=1, _arg2:int=10){ var _local3:int; super(); this.iMaxElements = _arg2; this.iTable = new Array(); _local3 = 0; while (_local3 < _arg1) { this.iTable[_local3] = new Array(); _local3++; }; } public function FindByName(_arg1:int, _arg2:String):int{ var _local3:int; _local3 = 0; while (_local3 < this.iTable[_arg1].length) { if (this.iTable[_arg1][_local3].iName == _arg2){ return (_local3); }; _local3++; }; return (-1); } public function Clear(_arg1:int):void{ this.iTable[_arg1] = new Array(); } public function GetRecord(_arg1:int):int{ if (!this.iTable[_arg1].length){ return (0); }; return (this.iTable[_arg1][0].iScore); } public function AddScore(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Boolean=false):Boolean{ var _local6:Array; var _local7:int; _local6 = this.iTable[_arg3]; if ((((_local6.length < this.iMaxElements)) || ((_local6[(_local6.length - 1)].iScore < _arg2)))){ _local7 = (_arg5) ? -1 : this.FindByName(_arg3, _arg1); if (_local7 >= 0){ if (_arg2 < _local6[_local7].iScore){ return (false); }; _local6[_local7] = new OScoreParams(_arg1, _arg2, _arg4); this.SortOn(_arg3); return (true); }; if (_local6.length < this.iMaxElements){ _local6[_local6.length] = new OScoreParams(_arg1, _arg2, _arg4); this.SortOn(_arg3); return (true); }; if (_local6[(_local6.length - 1)].iScore > _arg2){ return (false); }; _local6[(_local6.length - 1)] = new OScoreParams(_arg1, _arg2, _arg4); this.SortOn(_arg3); return (true); }; return (false); } public function IsRecord(_arg1:int, _arg2:int):Boolean{ if (!this.iTable[_arg1].length){ return (true); }; return ((_arg2 >= this.iTable[_arg1][0].iScore)); } public function GetScore(_arg1:int, _arg2:int):OScoreParams{ return (this.iTable[_arg1][_arg2]); } public function SortOn(_arg1:int):void{ this.iTable[_arg1] = this.iTable[_arg1].sortOn("iScore", (Array.DESCENDING | Array.NUMERIC)); } } }//package ENGINE.GAME
Section 20
//OA_Alpha (ENGINE.INTERFACE.ANIMATORS.OA_Alpha) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OA_Alpha extends OAnimator { public var iEAlpha:Number; private var iDAlpha:Number; public var iSAlpha:Number; private var iEndAlpha:Number; public var iPIter:int; public function OA_Alpha(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():int{ var _local1:Number; _local1 = ((this.iSAlpha)>=0) ? this.iSAlpha : this.iTarget.alpha; this.iEndAlpha = ((this.iEAlpha)>=0) ? this.iEAlpha : this.iTarget.alpha; this.iDAlpha = ((this.iEndAlpha - _local1) / iPIter); this.iTarget.visible = true; this.iTarget.alpha = _local1; return (((Math.abs(this.iDAlpha) > 0.001)) ? stPlay : stEnd); } override public function Play():void{ var _local1:Number; _local1 = (this.iTarget.alpha + this.iDAlpha); if ((((((this.iDAlpha > 0)) && ((_local1 >= this.iEndAlpha)))) || ((((this.iDAlpha <= 0)) && ((_local1 <= this.iEndAlpha)))))){ this.iTarget.alpha = this.iEndAlpha; if (this.iTarget.alpha == 0){ this.iTarget.visible = false; }; this.State = OAnimator.stEnd; } else { this.iTarget.alpha = _local1; }; } public static function Make(_arg1:Object, _arg2:OIObject=null):OA_Alpha{ return (new OA_Alpha(_arg1, _arg2)); } } }//package ENGINE.INTERFACE.ANIMATORS
Section 21
//OA_AlphaFade (ENGINE.INTERFACE.ANIMATORS.OA_AlphaFade) package ENGINE.INTERFACE.ANIMATORS { import flash.display.*; import ENGINE.INTERFACE.*; public class OA_AlphaFade extends OAnimator { public var iEAlpha:Number; public var iEInd:Array; private var iEndAlpha:Array; private var iCurAlpha:Number; private var iDAlpha:Array; private var iStartAlpha:Array; public var iSInd:Array; public var iSAlpha:Number; public var iPIter:int; public function OA_AlphaFade(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():int{ var _local1:int; var _local2:int; var _local3:DisplayObject; var _local4:DisplayObject; if ((((this.iSInd == null)) && ((this.iEInd == null)))){ return (OAnimator.stEnd); }; if (this.iSInd.length != this.iEInd.length){ return (OAnimator.stEnd); }; _local1 = this.iSInd.length; this.iStartAlpha = new Array(_local1); this.iEndAlpha = new Array(_local1); this.iDAlpha = new Array(_local1); _local2 = 0; while (_local2 < _local1) { _local3 = this.iTarget.getChildAt(this.iSInd[_local2]); _local4 = this.iTarget.getChildAt(this.iEInd[_local2]); this.iStartAlpha[_local2] = ((this.iSAlpha)>=0) ? this.iSAlpha : _local3.alpha; this.iEndAlpha[_local2] = ((this.iEAlpha)>=0) ? this.iEAlpha : _local4.alpha; this.iDAlpha[_local2] = ((this.iEndAlpha[_local2] - this.iStartAlpha[_local2]) / iPIter); _local3.alpha = this.iStartAlpha[_local2]; _local3.visible = true; _local4.alpha = this.iEndAlpha[_local2]; _local4.visible = true; _local2++; }; this.iCurAlpha = this.iStartAlpha[0]; return (OAnimator.stPlay); } override public function Play():void{ var _local1:DisplayObject; var _local2:DisplayObject; var _local3:int; var _local4:int; this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]); _local3 = this.iSInd.length; if ((((((this.iDAlpha[0] > 0)) && ((this.iCurAlpha >= this.iEndAlpha[0])))) || ((((this.iDAlpha[0] <= 0)) && ((this.iCurAlpha <= this.iEndAlpha[0])))))){ _local4 = 0; while (_local4 < _local3) { _local1 = this.iTarget.getChildAt(this.iSInd[_local4]); _local2 = this.iTarget.getChildAt(this.iEInd[_local4]); _local1.alpha = this.iEndAlpha[_local4]; if (_local1.alpha == 0){ _local1.visible = false; }; _local2.alpha = this.iStartAlpha[_local4]; if (_local2.alpha == 0){ _local2.visible = false; }; _local4++; }; this.State = OAnimator.stEnd; } else { _local4 = 0; while (_local4 < _local3) { _local1 = this.iTarget.getChildAt(this.iSInd[_local4]); _local2 = this.iTarget.getChildAt(this.iEInd[_local4]); _local1.alpha = (_local1.alpha + this.iDAlpha[_local4]); _local2.alpha = (_local2.alpha - this.iDAlpha[_local4]); _local4++; }; }; } public static function Make(_arg1:Object, _arg2:OIObject=null):OA_AlphaFade{ return (new OA_AlphaFade(_arg1, _arg2)); } } }//package ENGINE.INTERFACE.ANIMATORS
Section 22
//OA_AlphaInd (ENGINE.INTERFACE.ANIMATORS.OA_AlphaInd) package ENGINE.INTERFACE.ANIMATORS { import flash.display.*; import ENGINE.INTERFACE.*; public class OA_AlphaInd extends OAnimator { public var iEAlpha:Number; private var iCurAlpha:Number; private var iEndAlpha:Array; private var iDAlpha:Array; public var iInd:Array; public var iSAlpha:Number; public var iPIter:int; public function OA_AlphaInd(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():int{ var _local1:int; var _local2:int; var _local3:DisplayObject; var _local4:Number; if (((!(this.iInd)) || ((this.iInd.length == 0)))){ return (stEnd); }; _local1 = this.iInd.length; this.iEndAlpha = new Array(_local1); this.iDAlpha = new Array(_local1); _local2 = 0; while (_local2 < _local1) { _local3 = this.iTarget.getChildAt(this.iInd[_local2]); _local4 = ((this.iSAlpha)>=0) ? this.iSAlpha : _local3.alpha; this.iEndAlpha[_local2] = ((this.iEAlpha)>=0) ? this.iEAlpha : _local3.alpha; this.iDAlpha[_local2] = ((this.iEndAlpha[_local2] - _local4) / iPIter); _local3.visible = true; _local3.alpha = _local4; _local2++; }; this.iCurAlpha = this.iTarget.getChildAt(this.iInd[0]).alpha; return (((Math.abs(this.iDAlpha[0]) > 0.001)) ? stPlay : stEnd); } override public function Play():void{ var _local1:int; var _local2:int; var _local3:DisplayObject; this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]); _local1 = this.iInd.length; if ((((((this.iDAlpha[0] > 0)) && ((this.iCurAlpha >= this.iEndAlpha[0])))) || ((((this.iDAlpha[0] <= 0)) && ((this.iCurAlpha <= this.iEndAlpha[0])))))){ _local2 = 0; while (_local2 < _local1) { _local3 = this.iTarget.getChildAt(this.iInd[_local2]); _local3.alpha = this.iEndAlpha[_local2]; _local3.visible = (_local3.alpha > 0); _local2++; }; this.State = stEnd; } else { _local2 = 0; while (_local2 < _local1) { _local3 = this.iTarget.getChildAt(this.iInd[_local2]); _local3.alpha = (_local3.alpha + this.iDAlpha[_local2]); _local2++; }; }; } public static function Make(_arg1:Object, _arg2:OIObject=null):OA_AlphaInd{ return (new OA_AlphaInd(_arg1, _arg2)); } } }//package ENGINE.INTERFACE.ANIMATORS
Section 23
//OA_Scale (ENGINE.INTERFACE.ANIMATORS.OA_Scale) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OA_Scale extends OAnimator { public var iSScale:Number; private var iEndScale:Number; public var iEScale:Number; private var iDScale:Number; public var iPIter:int; public function OA_Scale(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():int{ var _local1:Number; var _local2:Number; var _local3:Number; _local1 = ((this.iSScale)>=0) ? this.iSScale : this.iTarget.scaleX; this.iEndScale = ((this.iEScale)>=0) ? this.iEScale : this.iTarget.scaleX; this.iDScale = ((this.iEndScale - _local1) / iPIter); _local2 = this.iTarget.prWidth; _local3 = this.iTarget.prHeight; this.iTarget.scaleX = _local1; this.iTarget.scaleY = _local1; this.iTarget.Move(((_local2 - this.iTarget.prWidth) / 2), ((_local3 - this.iTarget.prHeight) / 2)); return (((Math.abs(this.iDScale) > 1E-5)) ? stPlay : stEnd); } override public function Play():void{ var _local1:Number; var _local2:Number; var _local3:Number; _local1 = this.iTarget.prWidth; _local2 = this.iTarget.prHeight; _local3 = (this.iTarget.scaleX + this.iDScale); if ((((((this.iDScale > 0)) && ((_local3 >= this.iEndScale)))) || ((((this.iDScale <= 0)) && ((_local3 <= this.iEndScale)))))){ this.iTarget.scaleX = this.iEndScale; this.iTarget.scaleY = this.iEndScale; this.State = OAnimator.stEnd; } else { this.iTarget.scaleX = (this.iTarget.scaleX + this.iDScale); this.iTarget.scaleY = (this.iTarget.scaleY + this.iDScale); }; this.iTarget.Move(((_local1 - this.iTarget.prWidth) / 2), ((_local2 - this.iTarget.prHeight) / 2)); } public static function Make(_arg1:Object, _arg2:OIObject=null):OA_Scale{ return (new OA_Scale(_arg1, _arg2)); } } }//package ENGINE.INTERFACE.ANIMATORS
Section 24
//OAnimator (ENGINE.INTERFACE.ANIMATORS.OAnimator) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OAnimator { private var iState:int; protected var iTarget:OIObject; public static const stStart:int = 1; public static const stEnd:int = 3; public static const stPause:int = 0; public static const stReturn:int = 4; public static const stPlay:int = 2; public function OAnimator(_arg1:Object, _arg2:OIObject=null){ var _local3:String; super(); for (_local3 in _arg1) { if (this.hasOwnProperty(_local3)){ this[_local3] = _arg1[_local3]; }; }; this.iTarget = _arg2; this.State = stPause; } public function set State(_arg1:int):void{ this.iState = _arg1; switch (this.iState){ case stStart: this.State = this.Start(); break; case stReturn: this.State = Return(); break; }; } public function Play():void{ this.State = stEnd; } public function set prTarget(_arg1:OIObject):void{ this.iTarget = _arg1; } protected function Start():int{ return (stPlay); } public function get State():int{ return (this.iState); } public function Return():int{ return (stPlay); } public function OnEnterFrame():void{ if (this.iState == stPlay){ Play(); }; } } }//package ENGINE.INTERFACE.ANIMATORS
Section 25
//OAnimatorManager (ENGINE.INTERFACE.ANIMATORS.OAnimatorManager) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OAnimatorManager { private var iPlaying:Array; private var iTarget:OIObject; public static const anActivate:int = 2; public static const anDeactivate:int = 3; public static const anShow:int = 0; public static const iAnimatorsCount:int = 10; public static const anHide:int = 1; public static const anPress:int = 8; public static const anRoolOver:int = 6; public static const anUnpress:int = 9; public static const anFocusOut:int = 5; public static const anRoolOut:int = 7; public static const anUncheck:int = 10; public static const anCheck:int = 9; public static const anFocusIn:int = 4; public static const iNullAnimators:Array = [null, null, null, null, null, null, null, null, null, null]; public function OAnimatorManager(_arg1:OIObject){ this.iTarget = _arg1; this.iPlaying = new Array(); } public function get prAnimation():Boolean{ return ((iPlaying.length > 0)); } public function AddAnimator(_arg1:Object):void{ var _local2:*; if (_arg1 == null){ return; }; if (this.iPlaying.length > 0){ this.iPlaying[0].Return(); }; _local2 = _arg1.F(_arg1); _local2.prTarget = this.iTarget; this.iPlaying.push(_local2); } public function OnEnterFrame():void{ if (this.iPlaying.length == 0){ return; }; switch (this.iPlaying[0].State){ case OAnimator.stEnd: this.iPlaying[0] = null; this.iPlaying.splice(0, 1); break; case OAnimator.stPause: this.iPlaying[0].State = OAnimator.stStart; break; case OAnimator.stPlay: this.iPlaying[0].Play(); break; }; } public function Free():void{ this.iTarget = null; this.iPlaying = null; } } }//package ENGINE.INTERFACE.ANIMATORS
Section 26
//OHtmlTextField (ENGINE.INTERFACE.ELEMENTS.OHtmlTextField) package ENGINE.INTERFACE.ELEMENTS { import ENGINE.DISPLAY.*; import flash.display.*; import flash.text.*; import ENGINE.CORE.*; public class OHtmlTextField extends TextField { private var iTextFormat:TextFormat; public function OHtmlTextField(_arg1:Number, _arg2:Number, _arg3, _arg4:Number, _arg5:Number, _arg6:Boolean, _arg7:Array, _arg8:String, _arg9:Number, _arg10:Number, _arg11:Boolean=true){ var _local12:Number; var _local13:Sprite; super(); _local12 = (_arg11) ? OGlobal.Scale : 1; this.type = TextFieldType.DYNAMIC; this.autoSize = TextFieldAutoSize.NONE; this.multiline = true; this.wordWrap = true; this.selectable = false; if (_arg3){ _local13 = ((_arg3 is Sprite)) ? (_arg3 as Sprite) : new ((_arg3 as Class)); if ((_local13.getChildAt(0) is TextField)){ this.iTextFormat = (_local13.getChildAt(0) as TextField).getTextFormat(); } else { this.iTextFormat = this.defaultTextFormat; }; } else { this.iTextFormat = this.defaultTextFormat; }; this.iTextFormat.size = (_arg4 * _local12); this.iTextFormat.letterSpacing = (_arg5 * _local12); this.iTextFormat.color = ODisplay.HSBToRGB(_arg7[0], _arg7[1], _arg7[2]); this.iTextFormat.align = TextFormatAlign.LEFT; this.defaultTextFormat = this.iTextFormat; this.prText = _arg8; this.width = (_arg1 * _local12); this.height = (_arg2 * _local12); this.x = (_arg9 * _local12); this.y = (_arg10 * _local12); this.border = _arg6; } public function set prText(_arg1:String):void{ this.htmlText = _arg1; } public function set prFormat(_arg1:TextFormat):void{ this.iTextFormat = _arg1; this.defaultTextFormat = _arg1; this.setTextFormat(this.iTextFormat); } public function get prText():String{ return (this.htmlText); } public function get prFormat():TextFormat{ return (this.iTextFormat); } } }//package ENGINE.INTERFACE.ELEMENTS
Section 27
//OInputTextField (ENGINE.INTERFACE.ELEMENTS.OInputTextField) package ENGINE.INTERFACE.ELEMENTS { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import flash.text.*; import ENGINE.CORE.*; public class OInputTextField extends TextField { private var iTextFormat:TextFormat; public function OInputTextField(_arg1:Number, _arg2:Number, _arg3, _arg4:Number, _arg5:Number, _arg6:Boolean, _arg7:Array, _arg8:String, _arg9:int, _arg10:Number, _arg11:Number){ var _local12:Number; var _local13:Sprite; super(); _local12 = OGlobal.Scale; this.type = TextFieldType.INPUT; this.autoSize = TextFieldAutoSize.NONE; this.embedFonts = true; _local13 = ((_arg3 is Sprite)) ? (_arg3 as Sprite) : new ((_arg3 as Class)); if ((_local13.getChildAt(0) is TextField)){ this.iTextFormat = (_local13.getChildAt(0) as TextField).getTextFormat(); } else { this.iTextFormat = this.defaultTextFormat; }; this.iTextFormat.size = (_arg4 * _local12); this.iTextFormat.letterSpacing = (_arg5 * _local12); this.iTextFormat.color = ODisplay.HSBToRGB(_arg7[0], _arg7[1], _arg7[2]); this.defaultTextFormat = this.iTextFormat; this.prText = _arg8; this.width = (_arg1 * _local12); this.height = (_arg2 * _local12); this.x = (_arg10 * _local12); this.y = (_arg11 * _local12); this.border = _arg6; this.maxChars = _arg9; this.restrict = "A-Za-z0-9 @._\\-"; this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, OnFocusIn); } public function set prText(_arg1:String):void{ this.text = (((!(_arg1)) || ((_arg1 == "")))) ? " " : _arg1; } protected function OnFocusIn(_arg1:FocusEvent):void{ this.setTextFormat(this.iTextFormat); } public function set prFormat(_arg1:TextFormat):void{ this.iTextFormat = _arg1; this.defaultTextFormat = _arg1; this.setTextFormat(this.iTextFormat); } public function get prText():String{ var _local1:String; _local1 = this.text; while (_local1.charAt() == " ") { _local1 = _local1.substr(1); }; while (_local1.charAt((_local1.length - 1)) == " ") { _local1 = _local1.substr(0, (_local1.length - 1)); }; return (_local1); } public function get prFormat():TextFormat{ return (this.iTextFormat); } } }//package ENGINE.INTERFACE.ELEMENTS
Section 28
//OListBoxElement (ENGINE.INTERFACE.ELEMENTS.OListBoxElement) package ENGINE.INTERFACE.ELEMENTS { import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; public class OListBoxElement extends OButton { public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:3}, null, null, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0.6, iInd:[1], iPIter:3}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:1, iInd:[1], iPIter:3}, {F:OA_AlphaInd.Make, iSAlpha:0, iEAlpha:1, iInd:[0], iPIter:9}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0, iInd:[0], iPIter:9}]; public function OListBoxElement(_arg1:Array, _arg2:Array=null){ var _local3:Array; _local3 = (_arg2) ? _arg2 : iDefAnimators; super(_arg1, _local3); } override public function OnMouseUp(_arg1:MouseEvent):void{ } override public function OnRollOut(_arg1:MouseEvent):void{ this.prRool = false; } override public function OnMouseDown(_arg1:MouseEvent):void{ if (((this.prPress) && ((this.parent is OIObject)))){ (this.parent as OIObject).OnPress(_arg1, this); return; }; super.OnMouseDown(_arg1); } } }//package ENGINE.INTERFACE.ELEMENTS
Section 29
//OAlert (ENGINE.INTERFACE.OAlert) package ENGINE.INTERFACE { import flash.events.*; public class OAlert extends ODialog { protected var iMessages:Array; public var iButtons:Array; public function OAlert(_arg1:Array, _arg2:Array, _arg3:Array=null){ var _local4:Array; this.iMessages = _arg2; _local4 = (_arg3) ? _arg3 : ODialog.iDefAnimators; super(_arg1, _local4); } override public function Init():void{ this.iButtons = new Array(); super.Init(); } override public function OnPress(_arg1:Event, _arg2):void{ var _local3:int; var _local4:int; if (((!(this.iMessages)) || (!(this.iButtons)))){ this.prVisible = false; return; }; _local3 = 0; _local4 = 0; while (_local4 < this.iButtons.length) { if ((((_arg2 == this.iButtons[_local4])) && ((_local4 < this.iMessages.length)))){ if ((this.parent is OIObject)){ (this.parent as OIObject).OnPress(null, iMessages[_local4]); }; this.prVisible = false; return; }; _local4++; }; } override public function Free():void{ this.iButtons = null; super.Free(); } } }//package ENGINE.INTERFACE
Section 30
//OApplication (ENGINE.INTERFACE.OApplication) package ENGINE.INTERFACE { import flash.events.*; import flash.display.*; import ENGINE.CORE.*; import flash.external.*; public class OApplication extends OWindow { private var iStaged:Boolean;// = false protected var iBackground:OBackground; protected var iMenuItem:Array; public function OApplication(_arg1:String){ iStaged = false; OGlobal.AppName = _arg1; if (this.stage){ OGlobal.SetDomain(); this.InitStage(); }; super(null); if (!this.iStaged){ this.addEventListener(Event.ENTER_FRAME, NotStagedEnterFrame); }; } private function NotStagedEnterFrame(_arg1:Event):void{ if (!iStaged){ if (!this.stage){ return; }; OGlobal.SetDomain(); this.InitStage(); this.Init(); this.removeEventListener(Event.ENTER_FRAME, NotStagedEnterFrame); this.iStaged = true; }; } override public function Init():void{ if (!this.stage){ return; }; super.Init(); this.iMenuItem = new Array(); this.iStaged = true; this.visible = true; } protected function OnMenuItem():void{ } public function get prMenuItem():int{ return ((this.iMenuItem.length) ? this.iMenuItem.pop() : -1); } public function set prMenuItem(_arg1:int):void{ this.iMenuItem.push(_arg1); } public function OnResize(_arg1:Event):void{ this.Free(); this.InitStage(); this.Init(); } override public function Free():void{ OGlobal.prStage.removeEventListener(Event.DEACTIVATE, OnDeactivate); OGlobal.prStage.removeEventListener(Event.RESIZE, OnResize); this.iMenuItem = null; super.Free(); } public function InitBackground(_arg1:Array, _arg2:int=0):void{ this.iBackground = new OBackground(_arg1, _arg2); this.addChildAt(this.iBackground, 0); } protected function OnDeactivate(_arg1:Event):void{ } public function InitStage(_arg1:Stage=null):void{ var _local2:String; var _local3:int; if (((_arg1) || (this.stage))){ OGlobal.prStage = (_arg1) ? _arg1 : this.stage; }; if (!OGlobal.prStage){ return; }; OGlobal.prStage.scaleMode = StageScaleMode.NO_SCALE; OGlobal.prStage.align = StageAlign.TOP_LEFT; OGlobal.prStage.quality = StageQuality.BEST; OGlobal.prStage.stageFocusRect = false; OGlobal.Rescale(this); OGlobal.FPS = 60; if (ExternalInterface.available){ _local2 = ("function getInternetExplorerVersion() { var rv = -1; if (navigator.appName == \"Microsoft Internet Explorer\") { var ua = navigator.userAgent;" + "var re = new RegExp(\"MSIE ([0-9]{1,}[.0-9]{0,})\"); if (re.exec(ua) != null) rv = parseFloat( RegExp.$1 ); } return rv; }"); _local3 = ExternalInterface.call(_local2); if (_local3 > 0){ OGlobal.FPS = (OGlobal.FPS * 2); }; }; OGlobal.prStage.frameRate = OGlobal.FPS; OGlobal.prStage.addEventListener(Event.RESIZE, OnResize); OGlobal.prStage.addEventListener(Event.DEACTIVATE, OnDeactivate); } } }//package ENGINE.INTERFACE
Section 31
//OBackground (ENGINE.INTERFACE.OBackground) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import flash.display.*; import flash.geom.*; import ENGINE.CORE.*; public class OBackground extends OSprite { protected var iImages:Array; protected var iIInd:int;// = 0 public function OBackground(_arg1:Array, _arg2:int=0){ iIInd = 0; super(); this.iImages = _arg1; this.prIInd = _arg2; } public function Make():void{ var _local1:Sprite; var _local2:BitmapData; var _local3:OBM; var _local4:Rectangle; var _local5:Rectangle; var _local6:int; var _local7:int; var _local8:Number; var _local9:int; var _local10:Bitmap; var _local11:int; var _local12:OBitmap; if (this.iImages == null){ return; }; this.Free(); if ((this.iImages[this.iIInd] is Class)){ _local1 = new (this.iImages[this.iIInd]); _local2 = new BitmapData(_local1.width, _local1.height, false, 4294967295); _local2.draw(_local1); }; if ((this.iImages[this.iIInd] is BitmapData)){ _local2 = this.iImages[this.iIInd]; _local1 = new Sprite(); _local10 = new Bitmap(_local2); _local1.addChild(_local10); }; _local3 = new OBM(_local2, 0, 0, _local1.width, _local1.height); _local4 = OGlobal.ViewporRect; _local5 = OGlobal.StageRect; this.x = -(_local4.x); this.y = -(_local4.y); _local6 = Math.floor((_local5.width / _local1.width)); if (_local6 == 0){ return; }; _local7 = Math.floor((_local5.height / _local1.height)); if (_local7 == 0){ return; }; if ((_local5.width - (_local6 * _local1.width)) > 0){ _local6++; }; if ((_local5.height - (_local7 * _local1.height)) > 0){ _local7++; }; _local8 = OGlobal.Scale; _local9 = 0; while (_local9 < _local7) { _local11 = 0; while (_local11 < _local6) { _local12 = new OBitmap(_local3, ((_local11 * _local1.width) / _local8), ((_local9 * _local1.height) / _local8)); this.addChild(_local12); _local11++; }; _local9++; }; } override public function Free():void{ super.Free(); } public function set prIInd(_arg1:int):void{ this.iIInd = _arg1; if (this.iImages == null){ this.iIInd = -1; return; }; if (this.iIInd >= (this.iImages.length - 1)){ this.iIInd = (this.iImages.length - 1); }; Make(); } public function get prIInd():int{ return (this.iIInd); } } }//package ENGINE.INTERFACE
Section 32
//OButton (ENGINE.INTERFACE.OButton) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.ANIMATORS.*; public class OButton extends OIObject { public var iHit:OSprite; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.6, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Scale.Make, iSScale:1, iEScale:0.8, iPIter:6}, {F:OA_Scale.Make, iSScale:0.8, iEScale:1, iPIter:6}]; public function OButton(_arg1:Array, _arg2:Array=null){ var _local3:Array; _local3 = ((_arg2)==null) ? OButton.iDefAnimators : _arg2; super(_arg1, _local3); } override public function OnRollOver(_arg1:MouseEvent):void{ this.prRool = true; } override public function Init():void{ this.useHandCursor = true; this.buttonMode = true; super.Init(); if (this.iHit){ this.iHit.visible = false; this.hitArea = this.iHit; }; } override public function OnMouseUp(_arg1:MouseEvent):void{ this.prPress = false; } override public function OnRollOut(_arg1:MouseEvent):void{ if (this.prPress){ this.prPress = false; }; this.prRool = false; } override public function Free():void{ this.iHit = null; super.Free(); } override public function OnMouseDown(_arg1:MouseEvent):void{ this.prPress = true; if ((this.parent is OIObject)){ (this.parent as OIObject).OnPress(_arg1, this); }; } } }//package ENGINE.INTERFACE
Section 33
//OCounter (ENGINE.INTERFACE.OCounter) package ENGINE.INTERFACE { import ENGINE.INTERFACE.ANIMATORS.*; public class OCounter extends OIObject { public var iSeparator:OIObject; public var iDigits0:Array; public var iDigits:Array; protected var iValue:int; protected var iValue0:int; protected var iWidth:Number; protected var iHeight:Number; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, null, null, null, null]; public function OCounter(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Array=null){ var _local5:Array; this.iWidth = _arg2; this.iHeight = _arg3; _local5 = (_arg4) ? _arg4 : iDefAnimators; super(_arg1, _local5); } public function set prValue0(_arg1:int):void{ this.iValue0 = Math.max(_arg1, 0); if (!this.iDigits0){ return; }; this.iValue0 = Math.min(this.iValue0, (Math.pow(10, this.iDigits0.length) - 1)); Draw(); } public function set prValue(_arg1:int):void{ this.iValue = Math.max(_arg1, 0); if (!this.iDigits){ return; }; this.iValue = Math.min(this.iValue, (Math.pow(10, this.iDigits.length) - 1)); Draw(); } override public function Init():void{ this.iDigits = new Array(); this.iDigits0 = new Array(); super.Init(); } private function Draw():void{ var _local1:Number; var _local2:String; var _local3:String; var _local4:int; var _local5:Number; var _local6:int; _local1 = 0; _local2 = this.iValue0.toString(); _local3 = this.iValue.toString(); _local4 = 0; while (_local4 < this.iDigits0.length) { this.iDigits0[_local4].prAnimationEnabled = this.iAEnabled; _local4++; }; _local4 = 0; while (_local4 < this.iDigits.length) { this.iDigits[_local4].prAnimationEnabled = this.iAEnabled; _local4++; }; if (this.iDigits0.length){ _local4 = (_local2.length - 1); while (_local4 >= 0) { this.iDigits0[_local4].prValue = (_local2.charCodeAt(_local4) - 47); _local4--; }; _local6 = (this.iDigits0.length - _local2.length); _local4 = 0; while (_local4 < _local6) { if (this.iDigits0[_local4].prValue){ this.iDigits0[_local4].prValue = 0; }; _local4++; }; }; if (this.iDigits.length){ _local4 = 0; while (_local4 < _local3.length) { this.iDigits[_local4].prValue = (_local3.charCodeAt(_local4) - 47); _local4++; }; _local6 = this.iDigits.length; _local4 = _local3.length; while (_local4 < _local6) { if (this.iDigits[_local4].prValue){ this.iDigits[_local4].prValue = 0; }; _local4++; }; }; if (this.iDigits0.length){ _local4 = (_local2.length - 1); while (_local4 >= 0) { _local1 = (_local1 + this.iDigits0[_local4].prWidth); _local4--; }; }; if (this.iSeparator){ _local1 = (_local1 + this.iSeparator.prWidth); }; if (this.iDigits.length){ _local4 = 0; while (_local4 < _local3.length) { _local1 = (_local1 + this.iDigits[_local4].prWidth); _local4++; }; }; _local5 = ((this.iWidth - _local1) / 2); if (this.iDigits0.length){ _local4 = 0; while (_local4 < this.iDigits0.length) { if (this.iDigits0[_local4].prValue){ this.iDigits0[_local4].PosValue(_local5, ((this.iWidth - this.iDigits0[_local4].prHeight) / 2)); _local5 = (_local5 + this.iDigits0[_local4].prWidth); }; _local4++; }; }; if (this.iSeparator){ this.iSeparator.Pos(_local5, ((this.iHeight - this.iSeparator.prHeight) / 2)); _local5 = (_local5 + this.iSeparator.prWidth); }; if (this.iDigits.length){ _local4 = 0; while (_local4 < this.iDigits.length) { if (this.iDigits[_local4].prValue){ this.iDigits[_local4].PosValue(_local5, ((this.iHeight - this.iDigits[_local4].prHeight) / 2)); _local5 = (_local5 + this.iDigits[_local4].prWidth); }; _local4++; }; }; } public function get prValue0():int{ return (this.iValue0); } override public function Free():void{ this.iDigits = null; this.iDigits0 = null; this.iSeparator = null; super.Free(); } public function get prValue():int{ return (this.iValue); } } }//package ENGINE.INTERFACE
Section 34
//ODialog (ENGINE.INTERFACE.ODialog) package ENGINE.INTERFACE { import ENGINE.INTERFACE.ANIMATORS.*; public class ODialog extends OWindow { public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:12}, null, null, null, null, null, null]; public function ODialog(_arg1:Array, _arg2:Array=null){ var _local3:Array; _local3 = (_arg2) ? _arg2 : ODialog.iDefAnimators; super(_arg1, _local3); } override public function Init():void{ super.Init(); this.SetVisible(false); this.PosCenter(); this.prVisible = true; } } }//package ENGINE.INTERFACE
Section 35
//OInput (ENGINE.INTERFACE.OInput) package ENGINE.INTERFACE { import flash.events.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.INTERFACE.ELEMENTS.*; public class OInput extends OIObject { public var iText:OInputTextField; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.5, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, null, null]; public function OInput(_arg1:Array, _arg2:Array=null){ var _local3:Array; _local3 = ((_arg2)==null) ? OInput.iDefAnimators : _arg2; super(_arg1, _local3); } public function set prText(_arg1:String):void{ this.iText.prText = _arg1; } override public function Init():void{ super.Init(); this.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp); } public function get prText():String{ return (this.iText.prText); } protected function OnKeyUp(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == 13)) && ((this.parent is OWindow)))){ (this.parent as OWindow).OnPress(null, this); }; } } }//package ENGINE.INTERFACE
Section 36
//OInterface (ENGINE.INTERFACE.OInterface) package ENGINE.INTERFACE { import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.INTERFACE.ELEMENTS.*; public class OInterface { public static const iDefLBButtonAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.6, iPIter:4}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:4}, {F:OA_Scale.Make, iSScale:1, iEScale:0.8, iPIter:4}, {F:OA_Scale.Make, iSScale:0.8, iEScale:1, iPIter:4}]; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:12}, null, null, null, null, null, null]; public static const iDefSlowAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:30}, null, null, null, null, null, null]; public static function OHtmlTextFieldMake(_arg1:Array):OHtmlTextField{ return (new OHtmlTextField(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10])); } public static function OIObjectMake(_arg1:Array):OIObject{ var _local2:OIObject; _local2 = new OIObject(_arg1[1], _arg1[2]); _local2.Pos(_arg1[3], _arg1[4]); return (_local2); } public static function OProgressMake(_arg1:Array):OProgress{ return (new OProgress(_arg1[1], _arg1[2])); } public static function OInputTextFieldMake(_arg1:Array):OInputTextField{ return (new OInputTextField(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[11])); } public static function OTabMake(_arg1:Array):OTab{ return (new OTab(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5])); } public static function OCounterMake(_arg1:Array):OCounter{ return (new OCounter(_arg1[1], _arg1[2], _arg1[3], _arg1[4])); } } }//package ENGINE.INTERFACE
Section 37
//OIObject (ENGINE.INTERFACE.OIObject) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import flash.geom.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.CORE.*; public class OIObject extends OSprite { protected var iTrigger:uint; protected var iAEnabled:Boolean;// = true protected var iAManager:OAnimatorManager; protected var iState:int; protected var iAParams:Array; protected var iParam:Array; public static var trActive:uint = 2; public static var trPress:uint = 16; public static var trRool:uint = 8; public static var trFocus:uint = 3; public static var trVisible:uint = 1; public function OIObject(_arg1:Array, _arg2:Array=null){ iTrigger = (trVisible | trActive); iAEnabled = true; super(); this.iParam = _arg1; this.iAParams = _arg2; this.Init(); } public function get prMouseEnabled():Boolean{ return (((this.prVisible) && (this.prActive))); } public function get prRool():Boolean{ return (((this.iTrigger & trRool) > 0)); } public function set prFocus(_arg1:Boolean):void{ if (_arg1){ this.iTrigger = (this.iTrigger | trFocus); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anFocusIn]); }; } else { this.iTrigger = (this.iTrigger & ~(trFocus)); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anFocusOut]); }; }; } override public function get prVisible():Boolean{ return (((this.iTrigger & trVisible) > 0)); } public function set prRool(_arg1:Boolean):void{ if (_arg1){ this.iTrigger = (this.iTrigger | trRool); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anRoolOver]); }; } else { this.iTrigger = (this.iTrigger & ~(trRool)); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anRoolOut]); }; }; } override public function set prVisible(_arg1:Boolean):void{ if (_arg1){ this.iTrigger = (this.iTrigger | trVisible); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anShow], false); }; } else { this.iTrigger = (this.iTrigger & ~(trVisible)); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anHide], false); }; }; if (((!(this.iAManager)) || (!(this.iAEnabled)))){ this.visible = _arg1; }; this.mouseEnabled = this.prMouseEnabled; this.mouseChildren = this.mouseEnabled; } public function OnRollOver(_arg1:MouseEvent):void{ this.prRool = true; } public function Init():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:DisplayObject; var _local5:String; if (this.iParam){ _local1 = this.iParam.length; _local2 = 0; while (_local2 < _local1) { _local3 = this.iParam[_local2].length; _local4 = this.iParam[_local2][0](this.iParam[_local2]); _local5 = this.iParam[_local2][(_local3 - 3)]; if (_local5){ if ((this[_local5] is Array)){ this[_local5][this.iParam[_local2][(_local3 - 2)]] = _local4; } else { this[_local5] = _local4; }; }; if ((_local4 is OIObject)){ (_local4 as OIObject).SetVisible(this.iParam[_local2][(_local3 - 1)]); } else { if ((_local4 is IDisplayObject)){ (_local4 as IDisplayObject).prVisible = this.iParam[_local2][(_local3 - 1)]; } else { _local4.visible = this.iParam[_local2][(_local3 - 1)]; }; }; this.addChild(_local4); _local2++; }; }; this.iAManager = (this.iAParams) ? new OAnimatorManager(this) : null; this.tabEnabled = false; this.addEventListener(Event.ENTER_FRAME, OnEnterFrame); this.addEventListener(MouseEvent.ROLL_OVER, OnRollOver); this.addEventListener(MouseEvent.ROLL_OUT, OnRollOut); this.addEventListener(MouseEvent.MOUSE_DOWN, OnMouseDown); this.addEventListener(MouseEvent.MOUSE_UP, OnMouseUp); } public function get prAnimationEnabled():Boolean{ return (this.iAEnabled); } public function set prActive(_arg1:Boolean):void{ if (_arg1){ this.iTrigger = (this.iTrigger | trActive); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anActivate]); }; } else { this.iTrigger = (this.iTrigger & ~(trActive)); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anDeactivate]); }; }; this.mouseEnabled = this.prMouseEnabled; this.mouseChildren = this.mouseEnabled; } public function OnMouseUp(_arg1:MouseEvent):void{ this.prPress = false; } public function get prPress():Boolean{ return (((this.iTrigger & trPress) > 0)); } public function get State():int{ return (this.iState); } public function OnPress(_arg1:Event, _arg2):void{ } public function OnRollOut(_arg1:MouseEvent):void{ this.prRool = false; } override public function Free():void{ this.removeEventListener(MouseEvent.MOUSE_UP, OnMouseUp); this.removeEventListener(MouseEvent.MOUSE_DOWN, OnMouseDown); this.removeEventListener(MouseEvent.ROLL_OUT, OnRollOut); this.removeEventListener(MouseEvent.ROLL_OVER, OnRollOver); this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame); super.Free(); if (this.iAManager){ this.iAManager.Free(); }; this.iAManager = null; } public function get prAnimation():Boolean{ var _local1:int; if (((this.iAManager) && (this.iAManager.prAnimation))){ return (true); }; _local1 = 0; while (_local1 < this.numChildren) { if (!(this.getChildAt(_local1) is OIObject)){ } else { if ((this.getChildAt(_local1) as OIObject).prAnimation){ return (true); }; }; _local1++; }; return (false); } public function get prActive():Boolean{ return (((this.iTrigger & trActive) > 0)); } public function PosCenter(_arg1:Number=800, _arg2:Number=600):void{ var _local3:Rectangle; _local3 = this.getBounds(this); this.Pos(OGlobal.ScaleFloor((((_arg1 - this.prWidth) - (OGlobal.ToLocal(_local3.x) * 2)) / 2)), OGlobal.ScaleFloor((((_arg2 - this.prHeight) - (OGlobal.ToLocal(_local3.y) * 2)) / 2))); } public function AddAnimator(_arg1:Object, _arg2:Boolean=true):void{ var _local3:Boolean; _local3 = (_arg2) ? ((((this.iAManager) && (this.prVisible))) && (this.iAEnabled)) : ((this.iAManager) && (this.iAEnabled)); if (_local3){ this.iAManager.AddAnimator(_arg1); }; } public function set prAnimationEnabled(_arg1:Boolean):void{ this.iAEnabled = _arg1; } public function set prPress(_arg1:Boolean):void{ if (_arg1){ this.iTrigger = (this.iTrigger | trPress); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anPress]); }; } else { this.iTrigger = (this.iTrigger & ~(trPress)); if (this.iAManager){ this.AddAnimator(this.iAParams[OAnimatorManager.anUnpress]); }; }; } public function OnMouseDown(_arg1:MouseEvent):void{ this.prPress = true; } public function OnEnterFrame(_arg1:Event):void{ if (this.iAManager){ this.iAManager.OnEnterFrame(); }; } public function SetVisible(_arg1:Boolean):void{ this.prAnimationEnabled = false; this.prVisible = _arg1; this.prAnimationEnabled = true; } public function set prAnimatorParams(_arg1:Array):void{ this.iAParams = _arg1; if (!this.iAManager){ this.iAManager = new OAnimatorManager(this); }; } public function set State(_arg1:int):void{ this.iState = _arg1; } public function get prAnimatorParams():Array{ return (this.iAParams); } public function get prFocus():Boolean{ return (((this.iTrigger & trFocus) > 0)); } } }//package ENGINE.INTERFACE
Section 38
//OListBox (ENGINE.INTERFACE.OListBox) package ENGINE.INTERFACE { import flash.events.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.INTERFACE.ELEMENTS.*; import ENGINE.CORE.*; public class OListBox extends OIObject { private var iLBParams:Array; private var iEGenP:Function; private var iElements:Array; public var iDown:OButton; private var iEGen:Array; public var iUp:OButton; private var iEShowInd:int; private var iSelection:Boolean;// = true private var iECoord:Array; private var iECount:int; private var iCycling:Boolean; private var iECurInd:int; private var iPageScrool:Boolean; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0.6, iInd:[0], iPIter:6}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:1, iInd:[0], iPIter:6}, null, null]; public function OListBox(_arg1:Array, _arg2:Array, _arg3:Function, _arg4:Array, _arg5:Array, _arg6:Array=null){ var _local7:Array; iSelection = true; _local7 = (_arg6) ? _arg6 : iDefAnimators; this.iEGen = _arg2; this.iEGenP = _arg3; this.iECoord = _arg4; this.iLBParams = _arg5; this.iECount = this.iECoord.length; super(_arg1, _local7); } public function SetCurrentElement(_arg1, _arg2:Array=null):void{ var _local3:int; if (((!(_arg1)) && (!(_arg2)))){ this.FreeElements(); this.iLBParams = null; this.iECurInd = 0; this.iEShowInd = 0; return; }; if (_arg2){ this.iLBParams = _arg2; }; if (!this.iLBParams){ return; }; this.iECurInd = 0; _local3 = 0; while (_local3 < this.iLBParams.length) { if (_arg1 == this.iLBParams[_local3]){ this.iECurInd = _local3; break; }; _local3++; }; this.iEShowInd = this.iECurInd; if ((this.iEShowInd + this.iECount) >= this.iLBParams.length){ this.iEShowInd = (this.iLBParams.length - this.iECount); }; if (this.iEShowInd < 0){ this.iEShowInd = 0; }; InitElements(); } protected function UnpressElements(_arg1:OListBoxElement):void{ var _local2:int; _local2 = 0; while (_local2 < this.iElements.length) { if (!this.iElements[_local2]){ } else { if (this.iElements[_local2] == _arg1){ this.iECurInd = (this.iEShowInd + _local2); } else { if (this.iElements[_local2].prPress){ this.iElements[_local2].prPress = false; }; }; }; _local2++; }; } public function get prPageScrool():Boolean{ return (this.iPageScrool); } protected function InitElements():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:Boolean; this.FreeElements(); if (this.iLBParams == null){ return; }; _local1 = 0; _local2 = (((this.iEShowInd + this.iECount) <= this.iLBParams.length)) ? (this.iEShowInd + this.iECount) : this.iLBParams.length; _local3 = this.iEShowInd; while (_local3 < _local2) { this.iEGenP(this.iEGen, this.iLBParams[_local3]); this.iElements[_local1] = this.iEGen[0](this.iEGen); this.iElements[_local1].Pos(OGlobal.ScaleFloor(this.iECoord[_local1][0]), OGlobal.ScaleFloor(this.iECoord[_local1][1])); this.iElements[_local1].mouseEnabled = this.iSelection; this.addChild(this.iElements[_local1]); if ((((this.iECurInd == _local3)) && (this.iSelection))){ this.iElements[_local1].prPress = true; }; _local1++; _local3++; }; if (((this.iUp) && (this.iDown))){ if (this.iCycling){ _local4 = (this.iLBParams) ? (this.iLBParams.length > this.iECount) : false; if (this.iUp.prVisible != _local4){ this.iUp.prVisible = _local4; }; if (this.iDown.prVisible != _local4){ this.iDown.prVisible = _local4; }; } else { if ((((this.iEShowInd == 0)) && (this.iUp.prVisible))){ if (this.iUp.prPress){ this.iUp.prPress = false; }; this.iUp.prVisible = false; }; if ((((this.iEShowInd > 0)) && (!(this.iUp.prVisible)))){ this.iUp.prVisible = true; }; if (((((this.iEShowInd + this.iECount) >= this.iLBParams.length)) && (this.iDown.prVisible))){ if (this.iDown.prPress){ this.iDown.prPress = false; }; this.iDown.prVisible = false; }; if (((((this.iEShowInd + this.iECount) < this.iLBParams.length)) && (!(this.iDown.prVisible)))){ this.iDown.prVisible = true; }; }; }; } public function set prPageScrool(_arg1:Boolean):void{ this.iPageScrool = _arg1; } override public function Free():void{ this.iUp = null; this.iDown = null; this.iElements = null; super.Free(); } public function set prCurrentInd(_arg1:int):void{ if (!this.iLBParams){ return; }; this.SetCurrentElement(this.iLBParams[_arg1]); } override public function Init():void{ super.Init(); this.iElements = new Array(); this.InitElements(); } public function set prLBParams(_arg1:Array):void{ this.iLBParams = _arg1; this.iECurInd = 0; this.iEShowInd = 0; this.InitElements(); } public function get prCurrentInd():int{ return (this.iECurInd); } public function set prSelection(_arg1:Boolean):void{ this.iSelection = _arg1; InitElements(); } public function set prCycling(_arg1:Boolean):void{ this.iCycling = _arg1; InitElements(); } override public function OnPress(_arg1:Event, _arg2):void{ if ((_arg2 is OListBoxElement)){ this.UnpressElements((_arg2 as OListBoxElement)); }; if ((((_arg2 == this.iUp)) && (this.SkipElements((this.iPageScrool) ? -(this.iECount) : -1)))){ this.InitElements(); }; if ((((_arg2 == this.iDown)) && (this.SkipElements((this.iPageScrool) ? this.iECount : 1)))){ this.InitElements(); }; if ((this.parent is OIObject)){ (this.parent as OIObject).OnPress(_arg1, this); }; } public function get prSelection():Boolean{ return (this.iSelection); } protected function FreeElements():void{ var _local1:int; _local1 = 0; while (_local1 < this.iElements.length) { if (!this.iElements[_local1]){ } else { this.removeChild(this.iElements[_local1]); this.iElements[_local1].Free(); this.iElements[_local1] = null; }; _local1++; }; } protected function SkipElements(_arg1:int):Boolean{ var _local2:int; if (!this.iLBParams){ return (false); }; _local2 = (this.iEShowInd + _arg1); if ((_local2 + this.iECount) >= this.iLBParams.length){ _local2 = (this.iCycling) ? (_local2 - this.iLBParams.length) : (this.iLBParams.length - this.iECount); }; if (_local2 < 0){ _local2 = (this.iCycling) ? (this.iLBParams.length + _local2) : 0; }; if (this.iEShowInd == _local2){ return (false); }; this.iEShowInd = _local2; if (!this.iSelection){ this.iECurInd = this.iEShowInd; }; return (true); } public function get prCurrentLBParam(){ return ((this.iLBParams) ? this.iLBParams[this.iECurInd] : null); } public function get prCycling():Boolean{ return (this.iCycling); } } }//package ENGINE.INTERFACE
Section 39
//OProgress (ENGINE.INTERFACE.OProgress) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import flash.geom.*; public class OProgress extends OIObject { public var iProgressBG:OBitmap; private var iPBG:OBitmap; public var iProgress:OBitmap; private var iValue:Number; public function OProgress(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); } public function set prValue(_arg1:Number):void{ var _local2:int; var _local3:Rectangle; var _local4:Rectangle; if (_arg1 < 0){ _arg1 = 0; } else { if (_arg1 > 100){ _arg1 = 100; }; }; if (this.iValue != _arg1){ _local2 = Math.round(((iProgressBG.prOBM.iBM.width * _arg1) / 100)); _local3 = new Rectangle(0, 0, _local2, this.iProgressBG.prOBM.iBM.height); _local4 = new Rectangle(_local2, 0, (iProgressBG.prOBM.iBM.width - _local2), this.iProgressBG.prOBM.iBM.height); this.iProgressBG.prOBM.iBM.fillRect(this.iPBG.prOBM.iBM.rect, 0); this.iProgressBG.prOBM.iBM.copyPixels(this.iProgress.prOBM.iBM, _local3, new Point(0, 0)); this.iProgressBG.prOBM.iBM.copyPixels(this.iPBG.prOBM.iBM, _local4, new Point(_local2, 0)); }; this.iValue = _arg1; } override public function Init():void{ super.Init(); if (this.iProgressBG){ this.iPBG = this.iProgressBG.Clone(); }; } override public function Free():void{ this.iProgressBG = null; this.iProgress = null; super.Free(); } public function get prValue():Number{ return (this.iValue); } } }//package ENGINE.INTERFACE
Section 40
//OTab (ENGINE.INTERFACE.OTab) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.ANIMATORS.*; public class OTab extends OIObject { private var iVAnimator:Object; private var iCurInd:int; protected var iWidth:Number; protected var iHeight:Number; public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, null, null, null, null]; public static const iDefVAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:3}; public function OTab(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Object=null, _arg5:Array=null){ var _local6:Array; this.iWidth = _arg2; this.iHeight = _arg3; this.iVAnimator = (_arg4) ? _arg4 : iDefVAnimator; _local6 = (_arg5) ? _arg5 : iDefAnimators; super(_arg1, _local6); } override public function get prWidth():Number{ return (this.iWidth); } public function get prElements():int{ return (this.numChildren); } public function set prValue(_arg1:int):void{ if (_arg1 < 0){ _arg1 = 0; } else { if (_arg1 >= this.numChildren){ _arg1 = (this.numChildren - 1); }; }; if (((this.iAEnabled) && (this.iVAnimator))){ if (this.iCurInd == _arg1){ return; }; this.iVAnimator.iSInd = [this.iCurInd]; this.iVAnimator.iEInd = [_arg1]; this.AddAnimator(this.iVAnimator, false); } else { if ((this.getChildAt(this.iCurInd) is IDisplayObject)){ (this.getChildAt(this.iCurInd) as IDisplayObject).prVisible = false; }; if ((this.getChildAt(_arg1) is IDisplayObject)){ (this.getChildAt(_arg1) as IDisplayObject).prVisible = true; }; }; this.iCurInd = _arg1; } override public function Init():void{ super.Init(); (this.getChildAt(0) as IDisplayObject).prVisible = true; } public function get prValue():int{ return (this.iCurInd); } override public function get prHeight():Number{ return (this.iHeight); } public function PosValue(_arg1:Number, _arg2:Number):void{ (this.getChildAt(this.iCurInd) as IDisplayObject).Pos((_arg1 - this.prX), (_arg2 - this.prY)); } } }//package ENGINE.INTERFACE
Section 41
//OWindow (ENGINE.INTERFACE.OWindow) package ENGINE.INTERFACE { public class OWindow extends OIObject { public function OWindow(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); } } }//package ENGINE.INTERFACE
Section 42
//OEffectGel (ENGINE.SKIN.OEffectGel) package ENGINE.SKIN { import ENGINE.DISPLAY.*; import flash.display.*; import flash.geom.*; import ENGINE.DISPLAY.EFFECTS.*; import ENGINE.CORE.*; import flash.filters.*; public class OEffectGel extends OEffect { private var iColor:uint;// = 0 private var iF2B:BlurFilter; private var iF2GG1:GradientGlowFilter; private var iF2GG2:GradientGlowFilter; private var iF0S:DropShadowFilter; private var iF1G:GlowFilter; private var iBorder:Number;// = 0 private var iF1S:DropShadowFilter; public function OEffectGel(){ iColor = 0; iBorder = 0; super(); } override public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{ var _local5:OBM; var _local6:Number; var _local7:Number; var _local8:Sprite; var _local9:Sprite; var _local10:ColorTransform; var _local11:Bitmap; var _local12:Bitmap; var _local13:Bitmap; var _local14:Sprite; var _local15:Bitmap; var _local16:Bitmap; var _local17:BitmapData; var _local18:Bitmap; _local5 = OBM.Make([null, _arg1, _arg2, _arg3, _arg4, 0]); _local6 = OGlobal.Scale; _local7 = 0.85; _local8 = new Sprite(); _local9 = new Sprite(); _local9.x = iBorder; _local9.y = iBorder; _local9.alpha = _local7; _local8.addChild(_local9); _local10 = new ColorTransform(0, 0, 0); _local10.color = this.iColor; _local11 = new Bitmap(_local5.iBM); _local11.transform.colorTransform = _local10; _local9.addChild(_local11); if (this.iF0S.distance > 0){ _local18 = new Bitmap(_local5.iBM); _local18.blendMode = "multiply"; _local18.filters = [this.iF0S]; _local9.addChild(_local18); }; _local12 = new Bitmap(_local5.iBM); _local12.blendMode = "multiply"; _local12.filters = [this.iF1S]; _local9.addChild(_local12); _local13 = new Bitmap(_local5.iBM); _local13.blendMode = "multiply"; _local13.filters = [this.iF1G]; _local9.addChild(_local13); _local14 = new Sprite(); _local14.blendMode = "layer"; _local14.filters = [this.iF2B]; _local9.addChild(_local14); _local15 = new Bitmap(_local5.iBM); _local15.blendMode = "screen"; _local15.filters = [this.iF2GG1]; _local14.addChild(_local15); _local16 = new Bitmap(_local5.iBM); _local16.blendMode = "erase"; _local16.filters = [this.iF2GG2]; _local14.addChild(_local16); _local17 = new BitmapData((_local8.width + (this.iBorder * 2)), (_local8.height + (this.iBorder * 2)), true, 0); _local17.draw(_local8); return (new OBM(_local17, (-(this.iBorder) + _local5.iX), (-(this.iBorder) + _local5.iY), _local5.iWidth, _local5.iHeight)); } override public function Init(_arg1:String, _arg2:String, _arg3:Number=1):void{ var _local4:Object; var _local5:Object; var _local6:Number; var _local7:uint; var _local8:Number; var _local9:Number; var _local10:int; var _local11:int; var _local12:Array; var _local13:Array; _local4 = this.iColors.GetItem(_arg1); _local5 = this.iFilters.GetItem(_arg2); if (_local5 == null){ return; }; _local6 = (OGlobal.Scale * _arg3); if (_local4 == null){ _local4 = new Object(); if (_arg1.search(/,/) < 0){ _local4.iCH = Number(_arg1); if (_local4.iCH == undefined){ return; }; _local4.iCH = (_local4.iCH % 360); _local10 = Math.floor((_local4.iCH / 30)); _local11 = ((_local10 + 1) % 12); _local12 = [50, 50, 60, 60, 50, 50, 40, 40, 30, 30, 40, 40]; _local4.iCS = ((_local12[_local10] + ((_local12[_local11] - _local12[_local10]) * ((_local4.iCH / 30) - _local10))) * 0.01); _local4.iCB = 1; _local4.iSH = (((_local10 % 2))==0) ? (_local4.iCH - 15) : (_local4.iCH + 15); if (_local4.iSH < 0){ _local4.iSH = (_local4.iSH + 360); }; _local4.iSS = 0.9; _local4.iSB = 0.6; } else { _local13 = _arg1.split(/,/); _local4.iCH = _local13[0]; _local4.iCS = _local13[1]; _local4.iCB = _local13[2]; _local4.iSH = _local13[3]; _local4.iSS = _local13[4]; _local4.iSB = _local13[5]; }; }; _local7 = ODisplay.HSBToRGB(_local4.iSH, _local4.iSS, _local4.iSB); this.iF0S = new DropShadowFilter((_local5.iF0SD * _local6), _local5.iAngle, ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, (_local4.iCB * 0.5)), 0.75, (_local5.iF0SB * _local6), (_local5.iF0SB * _local6), 1, 2, false, true, true); this.iF1S = new DropShadowFilter((_local5.iF1SD * _local6), _local5.iAngle, _local7, 0.85, (_local5.iF1SB * _local6), (_local5.iF1SB * _local6), 1.5, 3, true, true, true); this.iF1G = new GlowFilter(_local7, _local5.iF1GA, (_local5.iF1GB * _local6), (_local5.iF1GB * _local6), 2, 3, true, true); _local8 = ((_local6)<1) ? (_local5.iF2GGC1 * _local6) : _local5.iF2GGC1; this.iF2GG1 = new GradientGlowFilter((_local5.iF2GGD1 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local8, 0xFF], (_local5.iF2GGB1 * _local6), (_local5.iF2GGB1 * _local6), 1, 1, "inner", true); _local9 = ((_local6)<1) ? (_local5.iF2GGC2 * _local6) : _local5.iF2GGC2; this.iF2GG2 = new GradientGlowFilter((_local5.iF2GGD2 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local9, 0xFF], (_local5.iF2GGB2 * _local6), (_local5.iF2GGB2 * _local6), 1, 1, "inner", true); this.iF2B = new BlurFilter((_local5.iF2B * _local6), (_local5.iF2B * _local6)); this.iColor = ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, _local4.iCB); this.iBorder = Math.ceil((_local5.iBorder * _local6)); } } }//package ENGINE.SKIN
Section 43
//OMultiplayer (ENGINE.SMARTFOX.OMultiplayer) package ENGINE.SMARTFOX { import it.gotoandplay.smartfoxserver.handlers.*; import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.util.*; import ENGINE.CORE.*; import flash.utils.*; public class OMultiplayer extends SmartFoxClient { private var iCmd:String; private var iError:String; private var iConnection:Boolean;// = false private var iUsersCount:int; private var iErrorsCount:int; private var iPassword:String; private var iAdress:String; private var iXTName:String; private var iTimer:int; private var iGameParams:Array; private var iCMessages:Array; private var iOpponentID:int; private var iOpponentName:String; private var iName:String; private var iTurn:Array; private var iState:int; private var iGRoomParams:Array; private var iZoneName:String; public static const stInGame:int = 13; public static const stLogin:int = 3; public static const cmdJoinGameRoom:String = "jgr"; public static const cmdZoneUsersCount:String = "zuc"; public static const stNone:int = 0; public static const stMainRoomError:int = 6; public static const stGameError:int = 12; public static const cmdJoinGame:String = "jgm"; public static const cmdJoinMainRoom:String = "jmr"; public static const stConnection:int = 1; public static const stLoginError:int = 4; public static const cmdMakeTurn:String = "m"; public static const cmdCmd:String = "cmd"; public static const stConnectionError:int = 2; public static const stInZone:int = 7; public static const stInGameRoom:int = 10; public static const cmdChatMessage:String = "c"; public static const stJoinGameRoom:int = 8; public static const stGameRoomError:int = 9; public static const stJoinGame:int = 11; public static const stJoinMainRoom:int = 5; public function OMultiplayer(_arg1:Boolean=false){ iConnection = false; super(_arg1); this.State = stNone; } private function OnConnectionLost(_arg1:SFSEvent):void{ this.iConnection = false; this.State = stNone; } public function get prActiveRoomID():int{ return (this.activeRoomId); } public function get prErrorsCount():int{ return (this.iErrorsCount); } public function get prError():String{ return (this.iError); } public function get prChatMessage():String{ return (((this.iCMessages.length)==0) ? null : this.iCMessages.shift()); } public function ClearChatMessage(_arg1:Boolean=false):void{ if (_arg1){ this.iCMessages = new Array(); } else { if (this.iCMessages[0]){ this.iCMessages.shift(); }; }; } public function Init(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String=""):void{ if (((!(OGlobal.CheckDomain(_arg1))) || (!((this.iState == stNone))))){ return; }; this.iAdress = _arg2; this.iZoneName = _arg3; this.iXTName = _arg4; this.iName = _arg5; this.iPassword = _arg6; this.iTurn = new Array(); this.iCMessages = new Array(); addEventListener(SFSEvent.onConnection, OnConnection); addEventListener(SFSEvent.onConnectionLost, OnConnectionLost); addEventListener(SFSEvent.onExtensionResponse, OnExtensionResponse); this.State = stConnection; } private function OnConnection(_arg1:SFSEvent):void{ if (!_arg1.params.success){ this.iError = _arg1.params.error; this.iErrorsCount++; this.iConnection = false; }; this.State = (_arg1.params.success) ? stLogin : stConnectionError; } public function set prGRoomParams(_arg1:Array):void{ this.iGRoomParams = _arg1; } public function ClearOpponentTurn(_arg1:Boolean=false):void{ if (_arg1){ this.iTurn = new Array(); } else { if (this.iTurn[0]){ this.iTurn.shift(); }; }; } private function OnExtensionResponse(_arg1:SFSEvent):void{ var _local2:Array; if (_arg1.params.type != "str"){ return; }; _local2 = _arg1.params.dataObj; if (_local2 == null){ return; }; switch (_local2[0]){ case "logOK": this.myUserId = int(_local2[2]); this.myUserName = _local2[3]; this.amIModerator = (Number(_local2[4]) > 0); this.State = stJoinMainRoom; break; case "logKO": this.iError = _local2[2]; this.State = stLoginError; this.iErrorsCount++; break; case cmdJoinMainRoom: if (_local2[2]){ this.activeRoomId = _local2[3]; this.State = stInZone; } else { this.State = stMainRoomError; }; break; case cmdZoneUsersCount: this.iUsersCount = _local2[2]; break; case cmdJoinGameRoom: if (_local2[2] < 0){ this.activeRoomId = -1; this.State = OMultiplayer.stGameRoomError; } else { this.activeRoomId = _local2[2]; this.State = stInGameRoom; }; break; case cmdJoinGame: if (_local2[2] < 0){ this.activeRoomId = -1; this.playerId = -1; this.iOpponentID = -1; this.iOpponentName = null; this.State = OMultiplayer.stGameError; } else { this.activeRoomId = _local2[2]; this.playerId = _local2[3]; this.iOpponentID = _local2[4]; this.iOpponentName = _local2[5]; this.State = OMultiplayer.stInGame; }; break; case cmdMakeTurn: this.iTurn.push(_local2[2]); break; case cmdChatMessage: this.iCMessages.push(_local2[2]); break; case cmdCmd: this.iCmd = _local2[2]; break; }; } public function ChatMessage(_arg1:Array=null):void{ this.sendXtMessage(this.iXTName, OMultiplayer.cmdChatMessage, (_arg1) ? [_arg1.toString()] : ["0"], "str"); } public function get State():int{ return (this.iState); } public function set prGameParams(_arg1:Array):void{ this.iGameParams = _arg1; } public function get prUsersCount():int{ return (this.iUsersCount); } public function Free():void{ if (this.iConnection){ this.disconnect(); }; this.iConnection = false; this.iCMessages = null; removeEventListener(SFSEvent.onConnection, OnConnection); removeEventListener(SFSEvent.onConnectionLost, OnConnectionLost); removeEventListener(SFSEvent.onExtensionResponse, OnExtensionResponse); } public function Turn(_arg1:Array=null):void{ if (this.iState > stLoginError){ this.sendXtMessage(this.iXTName, OMultiplayer.cmdMakeTurn, (_arg1) ? [_arg1.toString(), this.iOpponentID] : ["0", this.iOpponentID], "str"); }; } public function get prOpponentTurn():String{ return (((this.iTurn.length)>0) ? this.iTurn[0] : null); } public function get prGRoomParams():Array{ return (this.iGRoomParams); } public function get prOpponentName():String{ return ((this.iOpponentName) ? this.iOpponentName.slice(0, (this.iOpponentName.length - 3)) : "..."); } public function get prGameParams():Array{ return (this.iGameParams); } public function ClearCmd():void{ this.iCmd = null; } public function OnEnterFrame():void{ if (((!(this.isConnected)) && ((this.iState > stConnection)))){ this.iState = stNone; }; switch (this.iState){ case stInZone: if ((getTimer() - this.iTimer) > 180000){ this.cmdSend(cmdZoneUsersCount); this.iTimer = getTimer(); }; break; }; } public function get prCmd():String{ return (this.iCmd); } public function get prFullOpponentName():String{ return ((this.iOpponentName) ? this.iOpponentName : "..."); } public function get prPlayerID():int{ return (this.playerId); } public function set State(_arg1:int):void{ var aState = _arg1; if ((((aState > stConnectionError)) && (!(this.isConnected)))){ return; }; this.iState = aState; switch (aState){ case stNone: this.iError = null; this.iUsersCount = 0; this.myUserId = -1; this.myUserName = null; this.amIModerator = false; this.playerId = -1; this.activeRoomId = -1; this.Free(); break; case stConnection: try { this.connect(this.iAdress, 9339); this.iConnection = true; } catch(error:Error) { OSystem.iUserText2 = "connect error"; this.State = stConnectionError; }; break; case stLogin: this.login(this.iZoneName, this.iName, this.iPassword); break; case stJoinMainRoom: this.cmdSend(cmdJoinMainRoom); break; case stInZone: this.playerId = -1; this.iOpponentID = -1; this.iOpponentName = null; this.iTimer = getTimer(); this.cmdSend(cmdZoneUsersCount); break; case stJoinGameRoom: this.cmdSend(cmdJoinGameRoom, this.iGRoomParams); break; case stJoinGame: this.cmdSend(cmdJoinGame, this.iGameParams); break; }; } public function cmdSend(_arg1:String, _arg2:Array=null):void{ if (this.iState > stLoginError){ this.sendXtMessage(this.iXTName, _arg1, (_arg2) ? _arg2 : [], "str"); }; } } }//package ENGINE.SMARTFOX
Section 44
//Room (it.gotoandplay.smartfoxserver.data.Room) package it.gotoandplay.smartfoxserver.data { public class Room { private var maxUsers:int; private var userList:Array; private var name:String; private var userCount:int; private var specCount:int; private var id:int; private var myPlayerIndex:int; private var priv:Boolean; private var temp:Boolean; private var limbo:Boolean; private var maxSpectators:int; private var game:Boolean; private var variables:Array; public function Room(_arg1:int, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:Boolean, _arg7:Boolean, _arg8:Boolean, _arg9:int=0, _arg10:int=0){ this.id = _arg1; this.name = _arg2; this.maxSpectators = _arg4; this.maxUsers = _arg3; this.temp = _arg5; this.game = _arg6; this.priv = _arg7; this.limbo = _arg8; this.userCount = _arg9; this.specCount = _arg10; this.userList = []; this.variables = []; } public function getVariable(_arg1:String):Object{ return (variables[_arg1]); } public function addUser(_arg1:User, _arg2:int):void{ userList[_arg2] = _arg1; userCount++; } public function getName():String{ return (this.name); } public function getId():int{ return (this.id); } public function setIsLimbo(_arg1:Boolean):void{ this.limbo = _arg1; } public function clearVariables():void{ this.variables = []; } public function isTemp():Boolean{ return (this.temp); } public function getMaxSpectators():int{ return (this.maxSpectators); } public function setVariables(_arg1:Array):void{ this.variables = _arg1; } public function isGame():Boolean{ return (this.game); } public function getUser(_arg1):User{ var _local2:User; var _local3:String; var _local4:User; _local2 = null; if (typeof(_arg1) == "number"){ _local2 = userList[_arg1]; } else { if (typeof(_arg1) == "string"){ for (_local3 in userList) { _local4 = this.userList[_local3]; if (_local4.getName() == _arg1){ _local2 = _local4; break; }; }; }; }; return (_local2); } public function setUserCount(_arg1:int):void{ this.userCount = _arg1; } public function getVariables():Array{ return (variables); } public function getUserCount():int{ return (this.userCount); } public function isLimbo():Boolean{ return (this.limbo); } public function getSpectatorCount():int{ return (this.specCount); } public function setSpectatorCount(_arg1:int):void{ this.specCount = _arg1; } public function setMyPlayerIndex(_arg1:int):void{ this.myPlayerIndex = _arg1; } public function removeUser(_arg1:int):void{ delete userList[_arg1]; userCount--; } public function getMyPlayerIndex():int{ return (this.myPlayerIndex); } public function isPrivate():Boolean{ return (this.priv); } public function getMaxUsers():int{ return (this.maxUsers); } public function getUserList():Array{ return (this.userList); } } }//package it.gotoandplay.smartfoxserver.data
Section 45
//User (it.gotoandplay.smartfoxserver.data.User) package it.gotoandplay.smartfoxserver.data { public class User { private var isSpec:Boolean; private var name:String; private var id:int; private var pId:int; private var variables:Array; private var isMod:Boolean; public function User(_arg1:int, _arg2:String){ this.id = _arg1; this.name = _arg2; this.variables = []; this.isSpec = false; this.isMod = false; } public function setModerator(_arg1:Boolean):void{ this.isMod = _arg1; } public function getName():String{ return (this.name); } public function getVariables():Array{ return (this.variables); } public function getId():int{ return (this.id); } public function getPlayerId():int{ return (this.pId); } public function setPlayerId(_arg1:int):void{ this.pId = _arg1; } public function setIsSpectator(_arg1:Boolean):void{ this.isSpec = _arg1; } public function isSpectator():Boolean{ return (this.isSpec); } public function clearVariables():void{ this.variables = []; } public function getVariable(_arg1:String):Object{ return (this.variables[_arg1]); } public function setVariables(_arg1:Array):void{ this.variables = _arg1; } public function isModerator():Boolean{ return (this.isMod); } } }//package it.gotoandplay.smartfoxserver.data
Section 46
//ExtHandler (it.gotoandplay.smartfoxserver.handlers.ExtHandler) package it.gotoandplay.smartfoxserver.handlers { import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.util.*; public class ExtHandler implements IMessageHandler { private var sfs:SmartFoxClient; public function ExtHandler(_arg1:SmartFoxClient){ this.sfs = _arg1; } public function handleMessage(_arg1:Object, _arg2:String):void{ var _local3:Object; var _local4:SFSEvent; var _local5:XML; var _local6:String; var _local7:int; var _local8:String; var _local9:Object; if (_arg2 == SmartFoxClient.XTMSG_TYPE_XML){ _local5 = (_arg1 as XML); _local6 = _local5.body.@action; _local7 = int(_local5.body.@id); if (_local6 == "xtRes"){ _local8 = _local5.body.toString(); _local9 = ObjectSerializer.getInstance().deserialize(_local8); _local3 = {}; _local3.dataObj = _local9; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); }; } else { if (_arg2 == SmartFoxClient.XTMSG_TYPE_JSON){ _local3 = {}; _local3.dataObj = _arg1.o; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); } else { if (_arg2 == SmartFoxClient.XTMSG_TYPE_STR){ _local3 = {}; _local3.dataObj = _arg1; _local3.type = _arg2; _local4 = new SFSEvent(SFSEvent.onExtensionResponse, _local3); sfs.dispatchEvent(_local4); }; }; }; } } }//package it.gotoandplay.smartfoxserver.handlers
Section 47
//IMessageHandler (it.gotoandplay.smartfoxserver.handlers.IMessageHandler) package it.gotoandplay.smartfoxserver.handlers { public interface IMessageHandler { function handleMessage(_arg1:Object, _arg2:String):void; } }//package it.gotoandplay.smartfoxserver.handlers
Section 48
//SysHandler (it.gotoandplay.smartfoxserver.handlers.SysHandler) package it.gotoandplay.smartfoxserver.handlers { import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.*; import it.gotoandplay.smartfoxserver.util.*; import flash.utils.*; public class SysHandler implements IMessageHandler { private var sfs:SmartFoxClient; private var handlersTable:Array; public function SysHandler(_arg1:SmartFoxClient){ this.sfs = _arg1; handlersTable = []; handlersTable["apiOK"] = this.handleApiOK; handlersTable["apiKO"] = this.handleApiKO; handlersTable["logOK"] = this.handleLoginOk; handlersTable["logKO"] = this.handleLoginKo; handlersTable["rmList"] = this.handleRoomList; handlersTable["uCount"] = this.handleUserCountChange; handlersTable["joinOK"] = this.handleJoinOk; handlersTable["joinKO"] = this.handleJoinKo; handlersTable["uER"] = this.handleUserEnterRoom; handlersTable["userGone"] = this.handleUserLeaverRoom; handlersTable["pubMsg"] = this.handlePublicMessage; handlersTable["prvMsg"] = this.handlePrivateMessage; handlersTable["dmnMsg"] = this.handleAdminMessage; handlersTable["modMsg"] = this.handleModMessage; handlersTable["dataObj"] = this.handleASObject; handlersTable["rVarsUpdate"] = this.handleRoomVarsUpdate; handlersTable["roomAdd"] = this.handleRoomAdded; handlersTable["roomDel"] = this.handleRoomDeleted; handlersTable["rndK"] = this.handleRandomKey; handlersTable["roundTripRes"] = this.handleRoundTripBench; handlersTable["uVarsUpdate"] = this.handleUserVarsUpdate; handlersTable["createRmKO"] = this.handleCreateRoomError; handlersTable["bList"] = this.handleBuddyList; handlersTable["bUpd"] = this.handleBuddyListUpdate; handlersTable["bAdd"] = this.handleBuddyAdded; handlersTable["roomB"] = this.handleBuddyRoom; handlersTable["leaveRoom"] = this.handleLeaveRoom; handlersTable["swSpec"] = this.handleSpectatorSwitched; } private function handleRoomDeleted(_arg1:Object):void{ var _local2:int; var _local3:Array; var _local4:Object; var _local5:SFSEvent; _local2 = int(_arg1.body.rm.@id); _local3 = sfs.getAllRooms(); _local4 = {}; _local4.room = _local3[_local2]; delete _local3[_local2]; _local5 = new SFSEvent(SFSEvent.onRoomDeleted, _local4); sfs.dispatchEvent(_local5); } public function handleMessage(_arg1:Object, _arg2:String):void{ var _local3:XML; var _local4:String; var _local5:Function; _local3 = (_arg1 as XML); _local4 = _local3.body.@action; _local5 = handlersTable[_local4]; if (_local5 != null){ _local5.apply(this, [_arg1]); } else { trace(("Unknown sys command: " + _local4)); }; } public function handleUserEnterRoom(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:Boolean; var _local6:Boolean; var _local7:int; var _local8:XMLList; var _local9:Room; var _local10:User; var _local11:Object; var _local12:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.u.@i); _local4 = _arg1.body.u.n; _local5 = (_arg1.body.u.@m == "1"); _local6 = (_arg1.body.u.@s == "1"); _local7 = ((_arg1.body.u.@p)!=null) ? int(_arg1.body.u.@p) : -1; _local8 = _arg1.body.u.vars["var"]; _local9 = sfs.getRoom(_local2); _local10 = new User(_local3, _local4); _local10.setModerator(_local5); _local10.setIsSpectator(_local6); _local10.setPlayerId(_local7); _local9.addUser(_local10, _local3); if (_arg1.body.u.vars.toString().length > 0){ populateVariables(_local10.getVariables(), _arg1.body.u); }; _local11 = {}; _local11.roomId = _local2; _local11.user = _local10; _local12 = new SFSEvent(SFSEvent.onUserEnterRoom, _local11); sfs.dispatchEvent(_local12); } public function handleUserVarsUpdate(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:User; var _local5:Array; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = sfs.getRoom(_local2).getUser(_local3); _local5 = []; if (_arg1.body.vars.toString().length > 0){ populateVariables(_local4.getVariables(), _arg1.body, _local5); }; _local6 = {}; _local6.user = _local4; _local6.changedVars = _local5; _local7 = new SFSEvent(SFSEvent.onUserVariablesUpdate, _local6); sfs.dispatchEvent(_local7); } public function handleUserLeaverRoom(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:Room; var _local5:String; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.user.@id); _local3 = int(_arg1.body.@r); _local4 = sfs.getRoom(_local3); _local5 = _local4.getUser(_local2).getName(); _local4.removeUser(_local2); _local6 = {}; _local6.roomId = _local3; _local6.userId = _local2; _local6.userName = _local5; _local7 = new SFSEvent(SFSEvent.onUserLeaveRoom, _local6); sfs.dispatchEvent(_local7); } public function handlePrivateMessage(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:User; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = _arg1.body.txt; _local5 = sfs.getRoom(_local2).getUser(_local3); _local6 = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; _local6.userId = _local3; _local7 = new SFSEvent(SFSEvent.onPrivateMessage, _local6); sfs.dispatchEvent(_local7); } private function handleCreateRoomError(_arg1:Object):void{ var _local2:String; var _local3:Object; var _local4:SFSEvent; _local2 = _arg1.body.room.@e; _local3 = {}; _local3.error = _local2; _local4 = new SFSEvent(SFSEvent.onCreateRoomError, _local3); sfs.dispatchEvent(_local4); } private function handleBuddyRoom(_arg1:Object):void{ var _local2:String; var _local3:Array; var _local4:int; var _local5:Object; var _local6:SFSEvent; _local2 = _arg1.body.br.@r; _local3 = _local2.split(","); _local4 = 0; while (_local4 < _local3.length) { _local3[_local4] = int(_local3[_local4]); _local4++; }; _local5 = {}; _local5.idList = _local3; _local6 = new SFSEvent(SFSEvent.onBuddyRoom, _local5); sfs.dispatchEvent(_local6); } private function handleBuddyListUpdate(_arg1:Object):void{ var _local2:Object; var _local3:SFSEvent; var _local4:Object; var _local5:XMLList; var _local6:Object; var _local7:Boolean; var _local8:String; var _local9:XML; _local2 = {}; _local3 = null; if (_arg1.body.b != null){ _local4 = {}; _local4.isOnline = ((_arg1.body.b.@s == "1")) ? true : false; _local4.name = _arg1.body.b.n.toString(); _local4.id = _arg1.body.b.@i; _local4.variables = {}; _local5 = _arg1.body.b.vs; if (_local5.toString().length > 0){ for each (_local9 in _local5.v) { _local4.variables[_local9.@n.toString()] = _local9.v.toString(); }; }; _local6 = null; _local7 = false; for (_local8 in sfs.buddyList) { _local6 = sfs.buddyList[_local8]; if (_local6.name == _local4.name){ sfs.buddyList[_local8] = _local4; _local7 = true; break; }; }; _local2.buddy = _local4; _local3 = new SFSEvent(SFSEvent.onBuddyListUpdate, _local2); sfs.dispatchEvent(_local3); } else { _local2.error = _arg1.body.err.toString(); _local3 = new SFSEvent(SFSEvent.onBuddyListError, _local2); sfs.dispatchEvent(_local3); }; } public function handleUserCountChange(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:Room; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@u); _local3 = int(_arg1.body.@s); _local4 = int(_arg1.body.@r); _local5 = sfs.getAllRooms()[_local4]; if (_local5 != null){ _local5.setUserCount(_local2); _local5.setSpectatorCount(_local3); _local6 = {}; _local6.room = _local5; _local7 = new SFSEvent(SFSEvent.onUserCountChange, _local6); sfs.dispatchEvent(_local7); }; } private function handleRandomKey(_arg1:Object):void{ var _local2:String; var _local3:Object; var _local4:SFSEvent; _local2 = _arg1.body.k.toString(); _local3 = {}; _local3.key = _local2; _local4 = new SFSEvent(SFSEvent.onRandomKey, _local3); sfs.dispatchEvent(_local4); } public function handlePublicMessage(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:User; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = _arg1.body.txt; _local5 = sfs.getRoom(_local2).getUser(_local3); _local6 = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; _local7 = new SFSEvent(SFSEvent.onPublicMessage, _local6); sfs.dispatchEvent(_local7); } public function handleAdminMessage(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:Object; var _local6:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = _arg1.body.txt; _local5 = {}; _local5.message = Entities.decodeEntities(_local4); _local6 = new SFSEvent(SFSEvent.onAdminMessage, _local5); sfs.dispatchEvent(_local6); } public function dispatchDisconnection():void{ var _local1:SFSEvent; _local1 = new SFSEvent(SFSEvent.onConnectionLost, null); sfs.dispatchEvent(_local1); } private function handleSpectatorSwitched(_arg1:Object):void{ var _local2:int; var _local3:Object; var _local4:SFSEvent; _local2 = int(_arg1.body.rm.@id); sfs.playerId = int(_arg1.body.pid.@id); _local3 = {}; _local3.success = (sfs.playerId > 0); _local3.newId = sfs.playerId; _local3.room = sfs.getRoom(_local2); _local4 = new SFSEvent(SFSEvent.onSpectatorSwitched, _local3); sfs.dispatchEvent(_local4); } public function handleLoginOk(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:Object; var _local6:SFSEvent; _local2 = int(_arg1.body.login.@id); _local3 = int(_arg1.body.login.@mod); _local4 = _arg1.body.login.@n; sfs.amIModerator = (_local3 == 1); sfs.myUserId = _local2; sfs.myUserName = _local4; sfs.playerId = -1; _local5 = {}; _local5.success = true; _local5.name = _local4; _local5.error = ""; _local6 = new SFSEvent(SFSEvent.onLogin, _local5); sfs.dispatchEvent(_local6); sfs.getRoomList(); } public function handleRoomVarsUpdate(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:Room; var _local5:Array; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = sfs.getRoom(_local2); _local5 = []; if (_arg1.body.vars.toString().length > 0){ populateVariables(_local4.getVariables(), _arg1.body, _local5); }; _local6 = {}; _local6.room = _local4; _local6.changedVars = _local5; _local7 = new SFSEvent(SFSEvent.onRoomVariablesUpdate, _local6); sfs.dispatchEvent(_local7); } public function handleRoomList(_arg1:Object):void{ var _local2:Array; var _local3:XML; var _local4:Object; var _local5:SFSEvent; var _local6:int; var _local7:Room; _local2 = sfs.getAllRooms(); for each (_local3 in _arg1.body.rmList.rm) { _local6 = int(_local3.@id); _local7 = new Room(_local6, _local3.n, int(_local3.@maxu), int(_local3.@maxs), (_local3.@temp == "1"), (_local3.@game == "1"), (_local3.@priv == "1"), (_local3.@lmb == "1"), int(_local3.@ucnt), int(_local3.@scnt)); if (_local3.vars.toString().length > 0){ populateVariables(_local7.getVariables(), _local3); }; _local2[_local6] = _local7; }; _local4 = {}; _local4.roomList = _local2; _local5 = new SFSEvent(SFSEvent.onRoomListUpdate, _local4); sfs.dispatchEvent(_local5); } private function handleBuddyAdded(_arg1:Object):void{ var _local2:Object; var _local3:XMLList; var _local4:Object; var _local5:SFSEvent; var _local6:XML; _local2 = {}; _local2.isOnline = ((_arg1.body.b.@s == "1")) ? true : false; _local2.name = _arg1.body.b.n.toString(); _local2.id = _arg1.body.b.@i; _local2.variables = {}; _local3 = _arg1.body.b.vs; if (_local3.toString().length > 0){ for each (_local6 in _local3.v) { _local2.variables[_local6.@n.toString()] = _local6.v.toString(); }; }; sfs.buddyList.push(_local2); _local4 = {}; _local4.list = sfs.buddyList; _local5 = new SFSEvent(SFSEvent.onBuddyList, _local4); sfs.dispatchEvent(_local5); } private function handleRoomAdded(_arg1:Object):void{ var _local2:int; var _local3:String; var _local4:int; var _local5:int; var _local6:Boolean; var _local7:Boolean; var _local8:Boolean; var _local9:Boolean; var _local10:Room; var _local11:Array; var _local12:Object; var _local13:SFSEvent; _local2 = int(_arg1.body.rm.@id); _local3 = _arg1.body.rm.name; _local4 = int(_arg1.body.rm.@max); _local5 = int(_arg1.body.rm.@spec); _local6 = ((_arg1.body.rm.@temp == "1")) ? true : false; _local7 = ((_arg1.body.rm.@game == "1")) ? true : false; _local8 = ((_arg1.body.rm.@priv == "1")) ? true : false; _local9 = ((_arg1.body.rm.@limbo == "1")) ? true : false; _local10 = new Room(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9); _local11 = sfs.getAllRooms(); _local11[_local2] = _local10; if (_arg1.body.rm.vars.toString().length > 0){ populateVariables(_local10.getVariables(), _arg1.body.rm); }; _local12 = {}; _local12.room = _local10; _local13 = new SFSEvent(SFSEvent.onRoomAdded, _local12); sfs.dispatchEvent(_local13); } private function populateVariables(_arg1:Array, _arg2:Object, _arg3:Array=null):void{ var _local4:XML; var _local5:String; var _local6:String; var _local7:String; for each (_local4 in _arg2.vars["var"]) { _local5 = _local4.@n; _local6 = _local4.@t; _local7 = _local4; if (_arg3 != null){ _arg3.push(_local5); _arg3[_local5] = true; }; if (_local6 == "b"){ _arg1[_local5] = Boolean(_local7); } else { if (_local6 == "n"){ _arg1[_local5] = Number(_local7); } else { if (_local6 == "s"){ _arg1[_local5] = _local7; } else { if (_local6 == "x"){ delete _arg1[_local5]; }; }; }; }; }; } private function handleLeaveRoom(_arg1:Object):void{ var _local2:int; var _local3:Object; var _local4:SFSEvent; _local2 = int(_arg1.body.rm.@id); _local3 = {}; _local3.roomId = _local2; _local4 = new SFSEvent(SFSEvent.onRoomLeft, _local3); sfs.dispatchEvent(_local4); } public function handleLoginKo(_arg1:Object):void{ var _local2:Object; var _local3:SFSEvent; _local2 = {}; _local2.success = false; _local2.error = _arg1.body.login.@e; _local3 = new SFSEvent(SFSEvent.onLogin, _local2); sfs.dispatchEvent(_local3); } public function handleModMessage(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:User; var _local6:Object; var _local7:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = _arg1.body.txt; _local5 = sfs.getRoom(_local2).getUser(_local3); _local6 = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local7 = new SFSEvent(SFSEvent.onModeratorMessage, _local6); sfs.dispatchEvent(_local7); } public function handleApiOK(_arg1:Object):void{ var _local2:SFSEvent; sfs.isConnected = true; _local2 = new SFSEvent(SFSEvent.onConnection, {success:true}); sfs.dispatchEvent(_local2); } private function handleRoundTripBench(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:Object; var _local5:SFSEvent; _local2 = getTimer(); _local3 = (_local2 - sfs.getBenchStartTime()); _local4 = {}; _local4.elapsed = _local3; _local5 = new SFSEvent(SFSEvent.onRoundTripResponse, _local4); sfs.dispatchEvent(_local5); } public function handleJoinOk(_arg1:Object):void{ var _local2:int; var _local3:XMLList; var _local4:XMLList; var _local5:int; var _local6:Room; var _local7:XML; var _local8:Object; var _local9:SFSEvent; var _local10:String; var _local11:int; var _local12:Boolean; var _local13:Boolean; var _local14:int; var _local15:User; _local2 = int(_arg1.body.@r); _local3 = _arg1.body; _local4 = _arg1.body.uLs.u; _local5 = int(_arg1.body.pid.@id); sfs.activeRoomId = _local2; _local6 = sfs.getRoom(_local2); sfs.playerId = _local5; _local6.setMyPlayerIndex(_local5); if (_local3.vars.toString().length > 0){ _local6.clearVariables(); populateVariables(_local6.getVariables(), _local3); }; for each (_local7 in _local4) { _local10 = _local7.n; _local11 = int(_local7.@i); _local12 = ((_local7.@m == "1")) ? true : false; _local13 = ((_local7.@s == "1")) ? true : false; _local14 = ((_local7.p == undefined)) ? -1 : int(_local7.p); _local15 = new User(_local11, _local10); _local15.setModerator(_local12); _local15.setIsSpectator(_local13); _local15.setPlayerId(_local14); if (_local7.vars.toString().length > 0){ populateVariables(_local15.getVariables(), _local7); }; _local6.addUser(_local15, _local11); }; sfs.changingRoom = false; _local8 = {}; _local8.room = _local6; _local9 = new SFSEvent(SFSEvent.onJoinRoom, _local8); sfs.dispatchEvent(_local9); } public function handleJoinKo(_arg1:Object):void{ var _local2:Object; var _local3:SFSEvent; sfs.changingRoom = false; _local2 = {}; _local2.error = _arg1.body.error.@msg; _local3 = new SFSEvent(SFSEvent.onJoinRoomError, _local2); sfs.dispatchEvent(_local3); } public function handleASObject(_arg1:Object):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:User; var _local6:Object; var _local7:Object; var _local8:SFSEvent; _local2 = int(_arg1.body.@r); _local3 = int(_arg1.body.user.@id); _local4 = _arg1.body.dataObj; _local5 = sfs.getRoom(_local2).getUser(_local3); _local6 = ObjectSerializer.getInstance().deserialize(new XML(_local4)); _local7 = {}; _local7.obj = _local6; _local7.sender = _local5; _local8 = new SFSEvent(SFSEvent.onObjectReceived, _local7); sfs.dispatchEvent(_local8); } private function handleBuddyList(_arg1:Object):void{ var _local2:XMLList; var _local3:Object; var _local4:Object; var _local5:SFSEvent; var _local6:XML; var _local7:XMLList; var _local8:XML; _local2 = _arg1.body.bList; _local4 = {}; _local5 = null; if (((!((_local2 == null))) && (!((_local2.b.length == null))))){ if (_local2.toString().length > 0){ for each (_local6 in _local2.b) { _local3 = {}; _local3.isOnline = ((_local6.@s == "1")) ? true : false; _local3.name = _local6.n.toString(); _local3.id = _local6.@i; _local3.variables = {}; _local7 = _local6.vs; if (_local7.toString().length > 0){ for each (_local8 in _local7.v) { _local3.variables[_local8.@n.toString()] = _local8.v.toString(); }; }; sfs.buddyList.push(_local3); }; }; _local4.list = sfs.buddyList; _local5 = new SFSEvent(SFSEvent.onBuddyList, _local4); sfs.dispatchEvent(_local5); } else { _local4.error = _arg1.body.err.toString(); _local5 = new SFSEvent(SFSEvent.onBuddyListError, _local4); sfs.dispatchEvent(_local5); }; } public function handleApiKO(_arg1:Object):void{ var _local2:Object; var _local3:SFSEvent; _local2 = {}; _local2.success = false; _local2.error = "API are obsolete, please upgrade"; _local3 = new SFSEvent(SFSEvent.onConnection, _local2); sfs.dispatchEvent(_local3); } } }//package it.gotoandplay.smartfoxserver.handlers
Section 49
//JSON (it.gotoandplay.smartfoxserver.json.JSON) package it.gotoandplay.smartfoxserver.json { public class JSON { public static function decode(_arg1:String):Object{ var _local2:JSONDecoder; _local2 = new JSONDecoder(_arg1); return (_local2.getObject()); } public static function encode(_arg1:Object):String{ var _local2:JSONEncoder; _local2 = new JSONEncoder(_arg1); return (_local2.getString()); } } }//package it.gotoandplay.smartfoxserver.json
Section 50
//JSONDecoder (it.gotoandplay.smartfoxserver.json.JSONDecoder) package it.gotoandplay.smartfoxserver.json { public class JSONDecoder { private var tokenizer:JSONTokenizer; private var token:JSONToken; private var obj:Object; public function JSONDecoder(_arg1:String){ tokenizer = new JSONTokenizer(_arg1); nextToken(); obj = parseValue(); } private function parseValue():Object{ switch (token.type){ case JSONTokenType.LEFT_BRACE: return (parseObject()); case JSONTokenType.LEFT_BRACKET: return (parseArray()); case JSONTokenType.STRING: case JSONTokenType.NUMBER: case JSONTokenType.TRUE: case JSONTokenType.FALSE: case JSONTokenType.NULL: return (token.value); default: tokenizer.parseError(("Unexpected " + token.value)); }; return (null); } private function nextToken():JSONToken{ return ((token = tokenizer.getNextToken())); } private function parseObject():Object{ var _local1:Object; var _local2:String; _local1 = new Object(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; while (true) { if (token.type == JSONTokenType.STRING){ _local2 = String(token.value); nextToken(); if (token.type == JSONTokenType.COLON){ nextToken(); _local1[_local2] = parseValue(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting } or , but found " + token.value)); }; } else { tokenizer.parseError(("Expecting : but found " + token.value)); }; } else { tokenizer.parseError(("Expecting string but found " + token.value)); }; }; return (null); } private function parseArray():Array{ var _local1:Array; _local1 = new Array(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; while (true) { _local1.push(parseValue()); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting ] or , but found " + token.value)); }; }; return (null); } public function getObject():Object{ return (obj); } } }//package it.gotoandplay.smartfoxserver.json
Section 51
//JSONEncoder (it.gotoandplay.smartfoxserver.json.JSONEncoder) package it.gotoandplay.smartfoxserver.json { public class JSONEncoder { private var jsonString:String; public function JSONEncoder(_arg1:Object){ jsonString = convertToString(_arg1); } private function arrayToString(_arg1:Array):String{ var _local2:String; var _local3:int; _local2 = ""; _local3 = 0; while (_local3 < _arg1.length) { if (_local2.length > 0){ _local2 = (_local2 + ","); }; _local2 = (_local2 + convertToString(_arg1[_local3])); _local3++; }; return ((("[" + _local2) + "]")); } private function convertToString(_arg1:Object):String{ if ((_arg1 is String)){ return (escapeString((_arg1 as String))); }; if ((_arg1 is Number)){ return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null"); } else { if ((_arg1 is Boolean)){ return ((_arg1) ? "true" : "false"); } else { if ((_arg1 is Array)){ return (arrayToString((_arg1 as Array))); }; if ((((_arg1 is Object)) && (!((_arg1 == null))))){ return (objectToString(_arg1)); }; }; }; return ("null"); } private function escapeString(_arg1:String):String{ var _local2:String; var _local3:String; var _local4:Number; var _local5:int; var _local6:String; var _local7:String; _local2 = ""; _local4 = _arg1.length; _local5 = 0; while (_local5 < _local4) { _local3 = _arg1.charAt(_local5); switch (_local3){ case "\"": _local2 = (_local2 + "\\\""); break; case "\\": _local2 = (_local2 + "\\\\"); break; case "\b": _local2 = (_local2 + "\\b"); break; case "\f": _local2 = (_local2 + "\\f"); break; case "\n": _local2 = (_local2 + "\\n"); break; case "\r": _local2 = (_local2 + "\\r"); break; case "\t": _local2 = (_local2 + "\\t"); break; default: if (_local3 < " "){ _local6 = _local3.charCodeAt(0).toString(16); _local7 = ((_local6.length == 2)) ? "00" : "000"; _local2 = (_local2 + (("\\u" + _local7) + _local6)); } else { _local2 = (_local2 + _local3); }; }; _local5++; }; return ((("\"" + _local2) + "\"")); } private function objectToString(_arg1:Object):String{ var _local2:String; var _local3:Object; var _local4:String; _local2 = ""; for (_local4 in _arg1) { _local3 = _arg1[_local4]; if ((_local3 is Function)){ } else { if (_local2.length > 0){ _local2 = (_local2 + ","); }; _local2 = (_local2 + ((escapeString(_local4) + ":") + convertToString(_local3))); }; }; return ((("{" + _local2) + "}")); } public function getString():String{ return (jsonString); } } }//package it.gotoandplay.smartfoxserver.json
Section 52
//JSONParseError (it.gotoandplay.smartfoxserver.json.JSONParseError) package it.gotoandplay.smartfoxserver.json { public class JSONParseError extends Error { private var _text:String; private var _location:int; public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){ super(_arg1); _location = _arg2; _text = _arg3; } public function get text():String{ return (_text); } public function get location():int{ return (_location); } } }//package it.gotoandplay.smartfoxserver.json
Section 53
//JSONToken (it.gotoandplay.smartfoxserver.json.JSONToken) package it.gotoandplay.smartfoxserver.json { public class JSONToken { private var _value:Object; private var _type:int; public function JSONToken(_arg1:int=-1, _arg2:Object=null){ _type = _arg1; _value = _arg2; } public function set value(_arg1:Object):void{ _value = _arg1; } public function get value():Object{ return (_value); } public function set type(_arg1:int):void{ _type = _arg1; } public function get type():int{ return (_type); } } }//package it.gotoandplay.smartfoxserver.json
Section 54
//JSONTokenizer (it.gotoandplay.smartfoxserver.json.JSONTokenizer) package it.gotoandplay.smartfoxserver.json { public class JSONTokenizer { private var loc:int; private var ch:String; private var obj:Object; private var jsonString:String; public function JSONTokenizer(_arg1:String){ jsonString = _arg1; loc = 0; nextChar(); } private function skipComments():void{ if (ch == "/"){ nextChar(); switch (ch){ case "/": do { nextChar(); } while (((!((ch == "\n"))) && (!((ch == ""))))); nextChar(); break; case "*": nextChar(); while (true) { if (ch == "*"){ nextChar(); if (ch == "/"){ nextChar(); break; }; } else { nextChar(); }; if (ch == ""){ parseError("Multi-line comment not closed"); }; }; break; default: parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )")); }; }; } private function isDigit(_arg1:String):Boolean{ return ((((_arg1 >= "0")) && ((_arg1 <= "9")))); } private function readNumber():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:Number; _local1 = new JSONToken(); _local1.type = JSONTokenType.NUMBER; _local2 = ""; if (ch == "-"){ _local2 = (_local2 + "-"); nextChar(); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; if (ch == "."){ _local2 = (_local2 + "."); nextChar(); while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; _local3 = Number(_local2); if (isFinite(_local3)){ _local1.value = _local3; return (_local1); }; parseError((("Number " + _local3) + " is not valid!")); return (null); } private function nextChar():String{ return ((ch = jsonString.charAt(loc++))); } private function isHexDigit(_arg1:String):Boolean{ var _local2:String; _local2 = _arg1.toUpperCase(); return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F")))))); } public function getNextToken():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:String; var _local4:String; _local1 = new JSONToken(); skipIgnored(); switch (ch){ case "{": _local1.type = JSONTokenType.LEFT_BRACE; _local1.value = "{"; nextChar(); break; case "}": _local1.type = JSONTokenType.RIGHT_BRACE; _local1.value = "}"; nextChar(); break; case "[": _local1.type = JSONTokenType.LEFT_BRACKET; _local1.value = "["; nextChar(); break; case "]": _local1.type = JSONTokenType.RIGHT_BRACKET; _local1.value = "]"; nextChar(); break; case ",": _local1.type = JSONTokenType.COMMA; _local1.value = ","; nextChar(); break; case ":": _local1.type = JSONTokenType.COLON; _local1.value = ":"; nextChar(); break; case "t": _local2 = ((("t" + nextChar()) + nextChar()) + nextChar()); if (_local2 == "true"){ _local1.type = JSONTokenType.TRUE; _local1.value = true; nextChar(); } else { parseError(("Expecting 'true' but found " + _local2)); }; break; case "f": _local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar()); if (_local3 == "false"){ _local1.type = JSONTokenType.FALSE; _local1.value = false; nextChar(); } else { parseError(("Expecting 'false' but found " + _local3)); }; break; case "n": _local4 = ((("n" + nextChar()) + nextChar()) + nextChar()); if (_local4 == "null"){ _local1.type = JSONTokenType.NULL; _local1.value = null; nextChar(); } else { parseError(("Expecting 'null' but found " + _local4)); }; break; case "\"": _local1 = readString(); break; default: if (((isDigit(ch)) || ((ch == "-")))){ _local1 = readNumber(); } else { if (ch == ""){ return (null); }; parseError((("Unexpected " + ch) + " encountered")); }; }; return (_local1); } private function skipWhite():void{ while (isSpace(ch)) { nextChar(); }; } public function parseError(_arg1:String):void{ throw (new JSONParseError(_arg1, loc, jsonString)); } private function skipIgnored():void{ skipWhite(); skipComments(); skipWhite(); } private function isSpace(_arg1:String):Boolean{ return ((((_arg1 == " ")) || ((_arg1 == "\t")))); } private function readString():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:String; var _local4:int; _local1 = new JSONToken(); _local1.type = JSONTokenType.STRING; _local2 = ""; nextChar(); while (((!((ch == "\""))) && (!((ch == ""))))) { if (ch == "\\"){ nextChar(); switch (ch){ case "\"": _local2 = (_local2 + "\""); break; case "/": _local2 = (_local2 + "/"); break; case "\\": _local2 = (_local2 + "\\"); break; case "b": _local2 = (_local2 + "\b"); break; case "f": _local2 = (_local2 + "\f"); break; case "n": _local2 = (_local2 + "\n"); break; case "r": _local2 = (_local2 + "\r"); break; case "t": _local2 = (_local2 + "\t"); break; case "u": _local3 = ""; _local4 = 0; while (_local4 < 4) { if (!isHexDigit(nextChar())){ parseError((" Excepted a hex digit, but found: " + ch)); }; _local3 = (_local3 + ch); _local4++; }; _local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16))); break; default: _local2 = (_local2 + ("\\" + ch)); }; } else { _local2 = (_local2 + ch); }; nextChar(); }; if (ch == ""){ parseError("Unterminated string literal"); }; nextChar(); _local1.value = _local2; return (_local1); } } }//package it.gotoandplay.smartfoxserver.json
Section 55
//JSONTokenType (it.gotoandplay.smartfoxserver.json.JSONTokenType) package it.gotoandplay.smartfoxserver.json { public class JSONTokenType { public static const NUMBER:int = 11; public static const FALSE:int = 8; public static const RIGHT_BRACKET:int = 4; public static const NULL:int = 9; public static const TRUE:int = 7; public static const RIGHT_BRACE:int = 2; public static const UNKNOWN:int = -1; public static const COMMA:int = 0; public static const LEFT_BRACKET:int = 3; public static const STRING:int = 10; public static const LEFT_BRACE:int = 1; public static const COLON:int = 6; } }//package it.gotoandplay.smartfoxserver.json
Section 56
//Entities (it.gotoandplay.smartfoxserver.util.Entities) package it.gotoandplay.smartfoxserver.util { public class Entities { private static var hexTable:Array = new Array(); private static var ascTab:Array = []; private static var ascTabRev:Array = []; public static function decodeEntities(_arg1:String):String{ var _local2:String; var _local3:String; var _local4:String; var _local5:String; var _local6:String; var _local7:int; _local7 = 0; _local2 = ""; while (_local7 < _arg1.length) { _local3 = _arg1.charAt(_local7); if (_local3 == "&"){ _local4 = _local3; do { _local7++; _local5 = _arg1.charAt(_local7); _local4 = (_local4 + _local5); } while (_local5 != ";"); _local6 = ascTabRev[_local4]; if (_local6 != null){ _local2 = (_local2 + _local6); } else { _local2 = (_local2 + String.fromCharCode(getCharCode(_local4))); }; } else { _local2 = (_local2 + _local3); }; _local7++; }; trace(((("DECODE: " + _arg1) + ", ") + _local2)); return (_local2); } public static function encodeEntities(_arg1:String):String{ var _local2:String; var _local3:int; var _local4:String; var _local5:int; _local2 = ""; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _arg1.charAt(_local3); _local5 = _arg1.charCodeAt(_local3); if ((((((_local5 == 9)) || ((_local5 == 10)))) || ((_local5 == 13)))){ _local2 = (_local2 + _local4); } else { if ((((_local5 >= 32)) && ((_local5 <= 126)))){ if (ascTab[_local4] != null){ _local2 = (_local2 + ascTab[_local4]); } else { _local2 = (_local2 + _local4); }; } else { _local2 = (_local2 + _local4); }; }; _local3++; }; return (_local2); } public static function getCharCode(_arg1:String):Number{ var _local2:String; _local2 = _arg1.substr(3, _arg1.length); _local2 = _local2.substr(0, (_local2.length - 1)); return (Number(("0x" + _local2))); } ascTab[">"] = "&gt;"; ascTab["<"] = "&lt;"; ascTab["&"] = "&amp;"; ascTab["'"] = "&apos;"; ascTab["\""] = "&quot;"; ascTabRev["&gt;"] = ">"; ascTabRev["&lt;"] = "<"; ascTabRev["&amp;"] = "&"; ascTabRev["&apos;"] = "'"; ascTabRev["&quot;"] = "\""; hexTable["0"] = 0; hexTable["1"] = 1; hexTable["2"] = 2; hexTable["3"] = 3; hexTable["4"] = 4; hexTable["5"] = 5; hexTable["6"] = 6; hexTable["7"] = 7; hexTable["8"] = 8; hexTable["9"] = 9; hexTable["A"] = 10; hexTable["B"] = 11; hexTable["C"] = 12; hexTable["D"] = 13; hexTable["E"] = 14; hexTable["F"] = 15; } }//package it.gotoandplay.smartfoxserver.util
Section 57
//ObjectSerializer (it.gotoandplay.smartfoxserver.util.ObjectSerializer) package it.gotoandplay.smartfoxserver.util { public class ObjectSerializer { private var eof:String; private var debug:Boolean; private var tabs:String; private static var instance:ObjectSerializer; public function ObjectSerializer(_arg1:Boolean=false){ this.tabs = "\t\t\t\t\t\t\t\t\t\t\t\t\t"; setDebug(_arg1); } public function serialize(_arg1:Object):String{ var _local2:Object; _local2 = {}; obj2xml(_arg1, _local2); return (_local2.xmlStr); } private function obj2xml(_arg1:Object, _arg2:Object, _arg3:int=0, _arg4:String=""):void{ var _local5:String; var _local6:String; var _local7:String; var _local8:*; if (_arg3 == 0){ _arg2.xmlStr = ("<dataObj>" + this.eof); } else { if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, _arg3)); }; _local6 = ((_arg1 is Array)) ? "a" : "o"; _arg2.xmlStr = (_arg2.xmlStr + ((((("<obj t='" + _local6) + "' o='") + _arg4) + "'>") + this.eof)); }; for (_local5 in _arg1) { _local7 = typeof(_arg1[_local5]); _local8 = _arg1[_local5]; if ((((((((_local7 == "boolean")) || ((_local7 == "number")))) || ((_local7 == "string")))) || ((_local7 == "null")))){ if (_local7 == "boolean"){ _local8 = Number(_local8); } else { if (_local7 == "null"){ _local7 = "x"; _local8 = ""; } else { if (_local7 == "string"){ _local8 = Entities.encodeEntities(_local8); }; }; }; if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1))); }; _arg2.xmlStr = (_arg2.xmlStr + ((((((("<var n='" + _local5) + "' t='") + _local7.substr(0, 1)) + "'>") + _local8) + "</var>") + this.eof)); } else { if (_local7 == "object"){ obj2xml(_local8, _arg2, (_arg3 + 1), _local5); if (this.debug){ _arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1))); }; _arg2.xmlStr = (_arg2.xmlStr + ("</obj>" + this.eof)); }; }; }; if (_arg3 == 0){ _arg2.xmlStr = (_arg2.xmlStr + ("</dataObj>" + this.eof)); }; } private function setDebug(_arg1:Boolean):void{ this.debug = _arg1; if (this.debug){ this.eof = "\n"; } else { this.eof = ""; }; } private function xml2obj(_arg1:XML, _arg2:Object):void{ var _local3:int; var _local4:XMLList; var _local5:String; var _local6:XML; var _local7:String; var _local8:String; var _local9:String; var _local10:String; var _local11:String; _local3 = 0; _local4 = _arg1.children(); for each (_local6 in _local4) { _local5 = _local6.name().toString(); if (_local5 == "obj"){ _local7 = _local6.@o; _local8 = _local6.@t; if (_local8 == "a"){ _arg2[_local7] = []; } else { if (_local8 == "o"){ _arg2[_local7] = {}; }; }; xml2obj(_local6, _arg2[_local7]); } else { if (_local5 == "var"){ _local9 = _local6.@n; _local10 = _local6.@t; _local11 = _local6.toString(); if (_local10 == "b"){ _arg2[_local9] = ((_local11 == "0")) ? false : true; } else { if (_local10 == "n"){ _arg2[_local9] = Number(_local11); } else { if (_local10 == "s"){ _arg2[_local9] = _local11; } else { if (_local10 == "x"){ _arg2[_local9] = null; }; }; }; }; }; }; }; } private function encodeEntities(_arg1:String):String{ return (_arg1); } public function deserialize(_arg1:String):Object{ var _local2:XML; var _local3:Object; _local2 = new XML(_arg1); _local3 = {}; xml2obj(_local2, _local3); return (_local3); } public static function getInstance(_arg1:Boolean=false):ObjectSerializer{ if (instance == null){ instance = new ObjectSerializer(_arg1); }; return (instance); } } }//package it.gotoandplay.smartfoxserver.util
Section 58
//SFSEvent (it.gotoandplay.smartfoxserver.SFSEvent) package it.gotoandplay.smartfoxserver { import flash.events.*; public class SFSEvent extends Event { public var params:Object; public static const onRoomLeft:String = "onRoomLeft"; public static const onBuddyListUpdate:String = "onBuddyListUpdate"; public static const onUserLeaveRoom:String = "onUserLeaveRoom"; public static const onRoomListUpdate:String = "onRoomListUpdate"; public static const onRoundTripResponse:String = "onRoundTripResponse"; public static const onExtensionResponse:String = "onExtensionResponse"; public static const onConnection:String = "onConnection"; public static const onBuddyListError:String = "onBuddyListError"; public static const onJoinRoom:String = "onJoinRoom"; public static const onUserEnterRoom:String = "onUserEnterRoom"; public static const onBuddyRoom:String = "onBuddyRoom"; public static const onAdminMessage:String = "onAdminMessage"; public static const onPublicMessage:String = "onPublicMessage"; public static const onModeratorMessage:String = "onModMessage"; public static const onPrivateMessage:String = "onPrivateMessage"; public static const onJoinRoomError:String = "onJoinRoomError"; public static const onRoomAdded:String = "onRoomAdded"; public static const onLogin:String = "onLogin"; public static const onSpectatorSwitched:String = "onSpectatorSwitched"; public static const onRoomDeleted:String = "onRoomDeleted"; public static const onConnectionLost:String = "onConnectionLost"; public static const onBuddyList:String = "onBuddyList"; public static const onRoomVariablesUpdate:String = "onRoomVariablesUpdate"; public static const onCreateRoomError:String = "onCreateRoomError"; public static const onUserCountChange:String = "onUserCountChange"; public static const onUserVariablesUpdate:String = "onUserVariablesUpdate"; public static const onRandomKey:String = "onRandomKey"; public static const onObjectReceived:String = "onObjectReceived"; public function SFSEvent(_arg1:String, _arg2:Object){ super(_arg1); this.params = _arg2; } override public function toString():String{ return (formatToString("SFSEvent", "type", "bubbles", "cancelable", "eventPhase", "params")); } override public function clone():Event{ return (new SFSEvent(this.type, this.params)); } } }//package it.gotoandplay.smartfoxserver
Section 59
//SmartFoxClient (it.gotoandplay.smartfoxserver.SmartFoxClient) package it.gotoandplay.smartfoxserver { import flash.events.*; import it.gotoandplay.smartfoxserver.handlers.*; import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.util.*; import it.gotoandplay.smartfoxserver.json.*; import flash.utils.*; import flash.net.*; public class SmartFoxClient extends EventDispatcher { private var connected:Boolean; private var benchStartTime:int; public var myUserId:int; private var roomList:Array; private var minVersion:Number; public var buddyVars:Array; public var debug:Boolean; private var byteBuffer:ByteArray; private var subVersion:Number; public var buddyList:Array; private var messageHandlers:Array; private var majVersion:Number; private var socketConnection:Socket; private var sysHandler:SysHandler; public var myUserName:String; public var playerId:int; public var amIModerator:Boolean; public var changingRoom:Boolean; private var extHandler:ExtHandler; public var activeRoomId:int; private static const EOM:int = 0; private static const MSG_JSON:String = "{"; public static const XTMSG_TYPE_STR:String = "str"; public static const MODMSG_TO_USER:String = "u"; public static const MODMSG_TO_ZONE:String = "z"; private static const MSG_STR:String = "%"; private static const MSG_XML:String = "<"; public static const XTMSG_TYPE_JSON:String = "json"; public static const XTMSG_TYPE_XML:String = "xml"; public static const MODMSG_TO_ROOM:String = "r"; public function SmartFoxClient(_arg1:Boolean=false){ this.majVersion = 1; this.minVersion = 3; this.subVersion = 4; this.activeRoomId = -1; this.debug = _arg1; this.messageHandlers = []; setupMessageHandlers(); socketConnection = new Socket(); socketConnection.addEventListener(Event.CONNECT, handleSocketConnection); socketConnection.addEventListener(Event.CLOSE, handleSocketDisconnection); socketConnection.addEventListener(ErrorEvent.ERROR, handleSocketError); socketConnection.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); socketConnection.addEventListener(ProgressEvent.SOCKET_DATA, handleSocketData); socketConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); byteBuffer = new ByteArray(); } private function getXmlUserVariable(_arg1:Object):String{ var _local2:String; var _local3:*; var _local4:String; var _local5:String; var _local6:String; _local2 = "<vars>"; for (_local6 in _arg1) { _local3 = _arg1[_local6]; _local5 = typeof(_local3); if (_local5 == "boolean"){ _local4 = "b"; _local3 = (_local3) ? "1" : "0"; } else { if (_local5 == "number"){ _local4 = "n"; } else { if (_local5 == "string"){ _local4 = "s"; } else { if (_local5 == "null"){ _local4 = "x"; }; }; }; }; if (_local4 != null){ _local2 = (_local2 + (((((("<var n='" + _local6) + "' t='") + _local4) + "'><![CDATA[") + _local3) + "]]></var>")); }; }; _local2 = (_local2 + "</vars>"); return (_local2); } private function checkBuddyDuplicates(_arg1:String):Boolean{ var _local2:Boolean; var _local3:Object; _local2 = false; for each (_local3 in buddyList) { if (_local3.name == _arg1){ _local2 = true; break; }; }; return (_local2); } public function getBuddyRoom(_arg1:Object):void{ if (_arg1.id != -1){ send({t:"sys", bid:_arg1.id}, "roomB", -1, (("<b id='" + _arg1.id) + "' />")); }; } private function handleSocketData(_arg1:Event):void{ var _local2:int; var _local3:int; _local2 = socketConnection.bytesAvailable; while (--_local2 >= 0) { _local3 = socketConnection.readByte(); if (_local3 != 0){ byteBuffer.writeByte(_local3); } else { handleMessage(byteBuffer.toString()); byteBuffer = new ByteArray(); }; }; } private function handleSocketError(_arg1:Event):void{ trace("SOCKET ERROR!!!"); } private function getXmlRoomVariable(_arg1:Object):String{ var _local2:String; var _local3:*; var _local4:String; var _local5:String; var _local6:String; _local2 = _arg1.name.toString(); _local3 = _arg1.val.toString(); _local4 = (_arg1.priv) ? "1" : "0"; _local5 = (_arg1.persistent) ? "1" : "0"; _local6 = null; if (typeof(_local3) == "boolean"){ _local6 = "b"; _local3 = (_local3) ? "1" : "0"; } else { if (typeof(_local3) == "number"){ _local6 = "n"; } else { if (typeof(_local3) == "string"){ _local6 = "s"; } else { if (typeof(_local3) == "null"){ _local6 = "x"; }; }; }; }; if (_local6 != null){ return ((((((((((("<var n='" + _local2) + "' t='") + _local6) + "' pr='") + _local4) + "' pe='") + _local5) + "'><![CDATA[") + _local3) + "]]></var>")); }; return (""); } private function handleSocketDisconnection(_arg1:Event):void{ var _local2:SFSEvent; initialize(); _local2 = new SFSEvent(SFSEvent.onConnectionLost, {}); dispatchEvent(_local2); } private function xmlReceived(_arg1:String):void{ var _local2:XML; var _local3:String; var _local4:String; var _local5:int; var _local6:IMessageHandler; _local2 = new XML(_arg1); _local3 = _local2.@t; _local4 = _local2.body.@action; _local5 = _local2.body.@r; _local6 = messageHandlers[_local3]; if (_local6 != null){ _local6.handleMessage(_local2, XTMSG_TYPE_XML); }; } public function switchSpectator(_arg1:int=-1):void{ if (_arg1 == -1){ _arg1 = activeRoomId; }; send({t:"sys"}, "swSpec", _arg1, ""); } public function roundTripBench():void{ this.benchStartTime = getTimer(); send({t:"sys"}, "roundTrip", activeRoomId, ""); } public function joinRoom(_arg1, _arg2:String="", _arg3:Boolean=false, _arg4:Boolean=false, _arg5:int=-1):void{ var _local6:int; var _local7:int; var _local8:Room; var _local9:Object; var _local10:String; var _local11:int; var _local12:String; _local6 = -1; _local7 = (_arg3) ? 1 : 0; if (!this.changingRoom){ if (typeof(_arg1) == "number"){ _local6 = int(_arg1); } else { if (typeof(_arg1) == "string"){ for each (_local8 in roomList) { if (_local8.getName() == _arg1){ _local6 = _local8.getId(); break; }; }; }; }; if (_local6 != -1){ _local9 = {t:"sys"}; _local10 = (_arg4) ? "0" : "1"; _local11 = ((_arg5 > -1)) ? _arg5 : activeRoomId; if (activeRoomId == -1){ _local10 = "0"; _local11 = -1; }; _local12 = (((((((((("<room id='" + _local6) + "' pwd='") + _arg2) + "' spec='") + _local7) + "' leave='") + _local10) + "' old='") + _local11) + "' />"); send(_local9, "joinRoom", activeRoomId, _local12); changingRoom = true; } else { trace("SmartFoxError: requested room to join does not exist!"); }; }; } public function getActiveRoom():Room{ return (roomList[activeRoomId]); } private function makeXmlHeader(_arg1:Object):String{ var _local2:String; var _local3:String; _local2 = "<msg"; for (_local3 in _arg1) { _local2 = (_local2 + ((((" " + _local3) + "='") + _arg1[_local3]) + "'")); }; _local2 = (_local2 + ">"); return (_local2); } private function strReceived(_arg1:String):void{ var _local2:Array; var _local3:String; var _local4:IMessageHandler; _local2 = _arg1.substr(1, (_arg1.length - 2)).split(MSG_STR); _local3 = _local2[0]; _local4 = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2.splice(1, (_local2.length - 1)), XTMSG_TYPE_STR); }; } public function getRoomByName(_arg1:String):Room{ var _local2:Room; var _local3:Room; _local2 = null; for each (_local3 in roomList) { if (_local3.getName() == _arg1){ _local2 = _local3; break; }; }; return (_local2); } public function loadBuddyList():void{ send({t:"sys"}, "loadB", -1, ""); } public function leaveRoom(_arg1:int):void{ var _local2:Object; var _local3:String; _local2 = {t:"sys"}; _local3 = (("<rm id='" + _arg1) + "' />"); send(_local2, "leaveRoom", _arg1, _local3); } private function addMessageHandler(_arg1:String, _arg2:IMessageHandler):void{ if (this.messageHandlers[_arg1] == null){ this.messageHandlers[_arg1] = _arg2; } else { trace((("Warning, message handler called: " + _arg1) + " already exist!")); }; } public function getAllRooms():Array{ return (roomList); } public function setBuddyVariables(_arg1:Array):void{ var _local2:Object; var _local3:String; var _local4:String; var _local5:String; _local2 = {t:"sys"}; _local3 = "<vars>"; for (_local4 in _arg1) { _local5 = _arg1[_local4]; if (buddyVars[_local4] != _local5){ buddyVars[_local4] = _local5; _local3 = (_local3 + (((("<var n='" + _local4) + "'><![CDATA[") + _local5) + "]]></var>")); }; }; _local3 = (_local3 + "</vars>"); this.send(_local2, "setBvars", -1, _local3); } public function getRoom(_arg1:int):Room{ return (roomList[_arg1]); } private function handleSecurityError(_arg1:Event):void{ trace("SECURITY ERROR!!!"); } private function handleIOError(_arg1:Event):void{ var _local2:SFSEvent; var _local3:Object; if (!connected){ _local3 = {}; _local3.success = false; _local3.error = "I/O Error"; _local2 = new SFSEvent(SFSEvent.onConnection, _local3); dispatchEvent(_local2); } else { trace("I/O Error during connected session"); }; } private function setupMessageHandlers():void{ sysHandler = new SysHandler(this); extHandler = new ExtHandler(this); addMessageHandler("sys", sysHandler); addMessageHandler("xt", extHandler); } public function login(_arg1:String, _arg2:String, _arg3:String):void{ var _local4:Object; var _local5:String; _local4 = {t:"sys"}; _local5 = (((((("<login z='" + _arg1) + "'><nick><![CDATA[") + _arg2) + "]]></nick><pword><![CDATA[") + _arg3) + "]]></pword></login>"); send(_local4, "login", 0, _local5); } public function autoJoin():void{ var _local1:Object; _local1 = {t:"sys"}; this.send(_local1, "autoJoin", (this.activeRoomId) ? this.activeRoomId : -1, ""); } private function send(_arg1:Object, _arg2:String, _arg3:Number, _arg4:String):void{ var _local5:String; _local5 = makeXmlHeader(_arg1); _local5 = (_local5 + ((((((("<body action='" + _arg2) + "' r='") + _arg3) + "'>") + _arg4) + "</body>") + closeHeader())); if (this.debug){ trace((("[Sending]: " + _local5) + "\n")); }; writeToSocket(_local5); } public function getRoomList():void{ var _local1:Object; _local1 = {t:"sys"}; send(_local1, "getRmList", activeRoomId, ""); } private function initialize():void{ this.changingRoom = false; this.amIModerator = false; this.playerId = -1; this.connected = false; this.roomList = []; this.buddyList = []; this.buddyVars = []; } public function setRoomVariables(_arg1:Array, _arg2:int=-1, _arg3:Boolean=true):void{ var _local4:Object; var _local5:String; var _local6:Object; if (_arg2 == -1){ _arg2 = activeRoomId; }; _local4 = {t:"sys"}; if (_arg3){ _local5 = "<vars>"; } else { _local5 = "<vars so='0'>"; }; for each (_local6 in _arg1) { _local5 = (_local5 + getXmlRoomVariable(_local6)); }; _local5 = (_local5 + "</vars>"); send(_local4, "setRvars", _arg2, _local5); } public function disconnect():void{ socketConnection.close(); connected = false; sysHandler.dispatchDisconnection(); } public function sendJson(_arg1:String):void{ if (this.debug){ trace((("[Sending - JSON]: " + _arg1) + "\n")); }; writeToSocket(_arg1); } private function closeHeader():String{ return ("</msg>"); } public function getVersion():String{ return (((((this.majVersion + ".") + this.minVersion) + ".") + this.subVersion)); } public function setUserVariables(_arg1:Object, _arg2:int=-1):void{ var _local3:Object; var _local4:Room; var _local5:User; var _local6:String; if (_arg2 == -1){ _arg2 = activeRoomId; }; _local3 = {t:"sys"}; _local4 = getActiveRoom(); _local5 = _local4.getUser(myUserId); _local6 = getXmlUserVariable(_arg1); send(_local3, "setUvars", _arg2, _local6); } public function addBuddy(_arg1:String):void{ var _local2:String; if (((!((_arg1 == myUserName))) && (!(checkBuddyDuplicates(_arg1))))){ _local2 = (("<n>" + _arg1) + "</n>"); send({t:"sys"}, "addB", -1, _local2); }; } public function sendPrivateMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{ var _local4:Object; var _local5:String; if (_arg3 == -1){ _arg3 = activeRoomId; }; _local4 = {t:"sys"}; _local5 = (((("<txt rcp='" + _arg2) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local4, "prvMsg", _arg3, _local5); } public function sendPublicMessage(_arg1:String, _arg2:int=-1):void{ var _local3:Object; var _local4:String; if (_arg2 == -1){ _arg2 = activeRoomId; }; _local3 = {t:"sys"}; _local4 = (("<txt><![CDATA[" + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local3, "pubMsg", _arg2, _local4); } public function clearBuddyList():void{ var _local1:Object; var _local2:SFSEvent; buddyList = []; send({t:"sys"}, "clearB", -1, ""); _local1 = {}; _local1.list = buddyList; _local2 = new SFSEvent(SFSEvent.onBuddyList, _local1); dispatchEvent(_local2); } public function sendString(_arg1:String):void{ if (this.debug){ trace((("[Sending - STR]: " + _arg1) + "\n")); }; writeToSocket(_arg1); } public function removeBuddy(_arg1:String):void{ var _local2:Boolean; var _local3:Object; var _local4:String; var _local5:Object; var _local6:String; var _local7:Object; var _local8:SFSEvent; _local2 = false; for (_local4 in buddyList) { _local3 = buddyList[_local4]; if (_local3.name == _arg1){ delete buddyList[_local4]; _local2 = true; break; }; }; if (_local2){ _local5 = {t:"sys"}; _local6 = (("<n>" + _arg1) + "</n>"); send(_local5, "remB", -1, _local6); _local7 = {}; _local7.list = buddyList; _local8 = new SFSEvent(SFSEvent.onBuddyList, _local7); dispatchEvent(_local8); }; } private function handleMessage(_arg1:String):void{ var _local2:String; if (this.debug){ trace((((("[ RECEIVED ]: " + _arg1) + ", (len: ") + _arg1.length) + ")")); }; _local2 = _arg1.charAt(0); if (_local2 == MSG_XML){ if ((((_arg1.substr(0, 4) == "<msg")) && (!((_arg1.substr(-6) == "</msg>"))))){ _arg1 = (_arg1 + "</body></msg>"); }; xmlReceived(_arg1); } else { if (_local2 == MSG_STR){ strReceived(_arg1); } else { if (_local2 == MSG_JSON){ jsonReceived(_arg1); }; }; }; } public function sendXtMessage(_arg1:String, _arg2:String, _arg3, _arg4:String="xml", _arg5:int=-1):void{ var _local6:Object; var _local7:Object; var _local8:String; var _local9:String; var _local10:Number; var _local11:Object; var _local12:Object; var _local13:String; if (_arg5 == -1){ _arg5 = activeRoomId; }; if (_arg4 == XTMSG_TYPE_XML){ _local6 = {t:"xt"}; _local7 = {name:_arg1, cmd:_arg2, param:_arg3}; _local8 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_local7)) + "]]>"); send(_local6, "xtReq", _arg5, _local8); } else { if (_arg4 == XTMSG_TYPE_STR){ _local9 = (((((("%xt%" + _arg1) + "%") + _arg2) + "%") + _arg5) + "%"); _local10 = 0; while (_local10 < _arg3.length) { _local9 = (_local9 + (_arg3[_local10].toString() + "%")); _local10++; }; sendString(_local9); } else { if (_arg4 == XTMSG_TYPE_JSON){ _local11 = {}; _local11.x = _arg1; _local11.c = _arg2; _local11.r = _arg5; _local11.p = _arg3; _local12 = {}; _local12.t = "xt"; _local12.b = _local11; _local13 = JSON.encode(_local12); sendJson(_local13); }; }; }; } private function writeToSocket(_arg1:String):void{ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeMultiByte(_arg1, "utf-8"); _local2.writeByte(0); socketConnection.writeBytes(_local2); socketConnection.flush(); } public function sendObjectToGroup(_arg1:Object, _arg2:Array, _arg3:int):void{ var _local4:String; var _local5:String; var _local6:Object; var _local7:String; if (_arg3 == -1){ _arg3 = activeRoomId; }; _local4 = ""; for (_local5 in _arg2) { if (!isNaN(_arg2[_local5])){ _local4 = (_local4 + (_arg2[_local5] + ",")); }; }; _local4 = _local4.substr(0, (_local4.length - 1)); _arg1._$$_ = _local4; _local6 = {t:"sys"}; _local7 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>"); send(_local6, "asObjG", _arg3, _local7); } public function getRandomKey():void{ send({t:"sys"}, "rndK", -1, ""); } public function sendObject(_arg1:Object, _arg2:int=-1):void{ var _local3:String; var _local4:Object; if (_arg2 == -1){ _arg2 = activeRoomId; }; _local3 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>"); _local4 = {t:"sys"}; send(_local4, "asObj", _arg2, _local3); } private function jsonReceived(_arg1:String):void{ var _local2:Object; var _local3:String; var _local4:IMessageHandler; _local2 = JSON.decode(_arg1); _local3 = _local2["t"]; _local4 = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2["b"], XTMSG_TYPE_JSON); }; } public function connect(_arg1:String, _arg2:int):void{ if (!connected){ initialize(); socketConnection.connect(_arg1, _arg2); } else { trace("*** ALREADY CONNECTED ***"); }; } public function sendModeratorMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{ var _local4:Object; var _local5:String; _local4 = {t:"sys"}; _local5 = (((((("<txt t='" + _arg2) + "' id='") + _arg3) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local4, "modMsg", activeRoomId, _local5); } public function getBenchStartTime():int{ return (this.benchStartTime); } public function createRoom(_arg1:Object, _arg2:int=-1):void{ var _local3:Object; var _local4:String; var _local5:String; var _local6:String; var _local7:String; var _local8:String; var _local9:String; if (_arg2 == -1){ _arg2 = activeRoomId; }; _local3 = {t:"sys"}; _local4 = (_arg1.isGame) ? "1" : "0"; _local5 = "1"; _local6 = ((_arg1.maxUsers == null)) ? "0" : String(_arg1.maxUsers); _local7 = ((_arg1.maxSpectators == null)) ? "0" : String(_arg1.maxSpectators); if (((_arg1.isGame) && (!((_arg1.exitCurrent == null))))){ _local5 = (_arg1.exitCurrent) ? "1" : "0"; }; _local8 = (((((("<room tmp='1' gam='" + _local4) + "' spec='") + _local7) + "' exit='") + _local5) + "'>"); _local8 = (_local8 + (("<name><![CDATA[" + ((_arg1.name == null)) ? "" : _arg1.name) + "]]></name>")); _local8 = (_local8 + (("<pwd><![CDATA[" + ((_arg1.password == null)) ? "" : _arg1.password) + "]]></pwd>")); _local8 = (_local8 + (("<max>" + _local6) + "</max>")); if (_arg1.uCount != null){ _local8 = (_local8 + (("<uCnt>" + (_arg1.uCount) ? "1" : "0") + "</uCnt>")); }; if (_arg1.extension != null){ _local8 = (_local8 + ("<xt n='" + _arg1.extension.name)); _local8 = (_local8 + (("' s='" + _arg1.extension.script) + "' />")); }; if (_arg1.vars == null){ _local8 = (_local8 + "<vars></vars>"); } else { _local8 = (_local8 + "<vars>"); for (_local9 in _arg1.vars) { _local8 = (_local8 + getXmlRoomVariable(_arg1.vars[_local9])); }; _local8 = (_local8 + "</vars>"); }; _local8 = (_local8 + "</room>"); send(_local3, "createRoom", _arg2, _local8); } private function handleSocketConnection(_arg1:Event):void{ var _local2:Object; var _local3:String; _local2 = {t:"sys"}; _local3 = (((("<ver v='" + this.majVersion.toString()) + this.minVersion.toString()) + this.subVersion.toString()) + "' />"); send(_local2, "verChk", 0, _local3); } public function set isConnected(_arg1:Boolean):void{ this.connected = _arg1; } public function get isConnected():Boolean{ return (this.connected); } } }//package it.gotoandplay.smartfoxserver
Section 60
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "2.0.1.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 61
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "2.0.1.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 62
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "2.0.1.0"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 63
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "2.0.1.0"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 64
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 65
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function set height(_arg1:Number):void; function get scaleY():Number; function move(_arg1:Number, _arg2:Number):void; function get scaleX():Number; function set mask(_arg1:DisplayObject):void; function set scaleX(_arg1:Number):void; function set name(_arg1:String):void; function set scaleY(_arg1:Number):void; function get visible():Boolean; function get measuredWidth():Number; function set visible(_arg1:Boolean):void; function get alpha():Number; function get height():Number; function get width():Number; function get parent():DisplayObjectContainer; function get mask():DisplayObject; function set x(_arg1:Number):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set y(_arg1:Number):void; function get x():Number; function get y():Number; function set alpha(_arg1:Number):void; } }//package mx.core
Section 66
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function get repeaters():Array; function get instanceIndices():Array; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 67
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject { private var _measuredWidth:Number; private var _measuredHeight:Number; mx_internal static const VERSION:String = "2.0.1.0"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 68
//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 69
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "2.0.1.0"; } }//package mx.core
Section 70
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject { private var _measuredWidth:Number; private var _measuredHeight:Number; mx_internal static const VERSION:String = "2.0.1.0"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 71
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import flash.utils.*; import mx.core.*; public class NameUtil { mx_internal static const VERSION:String = "2.0.1.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local3:DisplayObject; var _local4:String; var _local5:Array; _local3 = _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{ var _local2:String; var _local3:int; var _local4:int; if (!_arg1){ return (null); }; _local2 = getQualifiedClassName(_arg1); _local3 = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; _local4 = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 72
//OGDigit (RES.OBJECTS.DIGITS_PANEL.OGDigit) package RES.OBJECTS.DIGITS_PANEL { import ENGINE.DISPLAY.*; public class OGDigit extends OSprite { private var iBitmap:OBitmap; private var iSizeFont:int; private var iColor:String; public var iValue:int; public function OGDigit(_arg1:int, _arg2:int, _arg3:String){ iValue = _arg1; iSizeFont = _arg2; iColor = _arg3; Init(); } private function Init():void{ iBitmap = Mysteriez2S.HeaderM([Mysteriez2S.HeaderM, iSizeFont, iSizeFont, iColor, iValue, 0, 0, null, 0, true]); addChild(iBitmap); Pos((width / 2), (height / 2)); } override public function Free():void{ removeChild(iBitmap); iBitmap = null; super.Free(); } } }//package RES.OBJECTS.DIGITS_PANEL
Section 73
//OGDigitsPanel (RES.OBJECTS.DIGITS_PANEL.OGDigitsPanel) package RES.OBJECTS.DIGITS_PANEL { import ENGINE.DISPLAY.*; import RES.OBJECTS.*; import RES.OBJECTS.Particle.*; public class OGDigitsPanel extends OSprite { private var iColumns:int; private var iOffset:int; private var iEffect:Boolean; private var iOffsetX:int; private var iOffsetY:int; private var iSizeFont:int; private var iNumbers:Array; private var iDigits:Array; private var iNumDigits:int; private var iPCont:CParticleContainer; private var iWidth:int; private var iRows:int; private var iHeight:int; public function OGDigitsPanel(_arg1:Array, _arg2:Boolean=true, _arg3:int=170, _arg4:int=120){ var _local5:Number; super(); iNumDigits = _arg1.length; iNumbers = _arg1; iEffect = _arg2; iWidth = _arg3; iHeight = _arg4; _local5 = Math.sqrt(iNumDigits); iColumns = _local5; if ((_local5 - iColumns) > 0){ iColumns++; }; _local5 = (iNumDigits / iColumns); iRows = _local5; if ((_local5 - iRows) > 0){ iRows++; }; iOffsetX = (iWidth / (iColumns + 1)); iOffsetY = (iHeight / (iRows + 1)); iSizeFont = (Math.min(iOffsetX, iOffsetY) - 2); iDigits = new Array(); Init(); } public function RemoveDigit(_arg1:int):void{ var _local2:OGDigit; var _local3:int; _local2 = iDigits[_arg1]; removeChild(_local2); if (iEffect){ _local3 = 0; while (_local3 < 7) { iPCont.addSimpleDigitParticle(_local2.iValue, _local3, _local2.prX, _local2.prY); _local3++; }; }; } private function Init():void{ var _local1:int; var _local2:OGDigit; var _local3:int; var _local4:int; var _local5:int; var _local6:int; _local1 = 0; while (_local1 < iNumDigits) { _local2 = new OGDigit(iNumbers[_local1][0], iSizeFont, Mysteriez2L.cColors[(_local1 % Mysteriez2L.cColors.length)]); _local3 = ((_local1 / iColumns) + 1); _local4 = ((_local1 % iColumns) + 1); _local5 = (_local4 * iOffsetX); _local6 = (_local3 * iOffsetY); _local2.Pos(_local5, _local6); iDigits.push(_local2); addChild(_local2); _local1++; }; if (iEffect){ iPCont = new CParticleContainer(); CPrototypeFactory._createDigitParticleBitmaps(7, iNumDigits); this.addChild(iPCont); }; } override public function Free():void{ if (iPCont){ if (contains(iPCont)){ removeChild(iPCont); }; iPCont = null; }; iNumbers = null; while (numChildren > 0) { removeChildAt(0); }; while (iDigits.length > 0) { OGDigit(iDigits.pop()).Free(); }; iDigits = null; super.Free(); } } }//package RES.OBJECTS.DIGITS_PANEL
Section 74
//OMPGame (RES.OBJECTS.MULTYPLAYER.OMPGame) package RES.OBJECTS.MULTYPLAYER { import ENGINE.DISPLAY.*; import RES.OBJECTS.DIGITS_PANEL.*; public class OMPGame extends OSprite { private var iBorder:OBitmap; private var iDigitsPanel:OGDigitsPanel; private var iState:int; private var iScore:int; public static const comLevelFailed:int = 2; public static const stStart:int = 0; public static const comSelectNumber:int = 0; public static const stGameOver:int = 4; public static const stLevelComplite:int = 2; public static const stGo:int = 1; public static const stLevelFailed:int = 3; public static const comLevelComplete:int = 1; public function OMPGame(_arg1:Array){ iBorder = Mysteriez2S.BorderM([null, 160, 163, Mysteriez2L.cMainColors[3], Mysteriez2L.OGameBorder, 19, 25]); addChild(iBorder); iDigitsPanel = new OGDigitsPanel(_arg1, false); iDigitsPanel.Pos(5, 55); addChild(iDigitsPanel); iScore = 0; State = stStart; } public function get State():int{ return (iState); } public function get Score():int{ return (iScore); } public function ClickOnNumber(_arg1:int, _arg2:int):void{ iScore = (iScore + _arg2); iDigitsPanel.RemoveDigit(_arg1); } override public function Free():void{ if (iDigitsPanel){ removeChild(iDigitsPanel); iDigitsPanel.Free(); iDigitsPanel = null; }; if (iBorder){ removeChild(iBorder); iBorder = null; }; super.Free(); } public function LevelComplete():void{ this.State = stLevelComplite; } public function LevelFailed():void{ this.State = stLevelFailed; } public function get Win():Boolean{ return ((this.State == stLevelComplite)); } public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stStart: break; case stGo: break; case stLevelComplite: break; case stLevelFailed: break; }; } } }//package RES.OBJECTS.MULTYPLAYER
Section 75
//OGBitmapFactory (RES.OBJECTS.OGAME.OGBitmapFactory) package RES.OBJECTS.OGAME { import flash.display.*; import flash.geom.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; public class OGBitmapFactory { private static var iPlayBook:OIObject; private static var iMainBorder:DisplayObject; private static var iSite:DisplayObject; private static var iName:DisplayObject; private static var iNamePlus:OIObject; private static var iName2:DisplayObject; private static var iBack:Sprite; private static var iBook:OIObject; private static var iLoopOnBook:Sprite; private static var iBorder:DisplayObject; public static function get Back():Sprite{ return (iBack); } public static function get Book():OIObject{ return (iBook); } public static function get LoopOnBook():Sprite{ return (iLoopOnBook); } public static function get PlayBook():OIObject{ return (iPlayBook); } public static function CreateBook():void{ var _local1:Sprite; var _local2:Number; var _local3:Number; var _local4:BitmapData; var _local5:Matrix; var _local6:Bitmap; var _local7:Sprite; var _local8:Sprite; _local1 = new Mysteriez2L.OBook(); iMainBorder = _local1.getChildByName("MainBorder"); iName = _local1.getChildByName("Name"); iName2 = _local1.getChildByName("Name2"); iSite = _local1.getChildByName("Site"); iBorder = _local1.getChildByName("Border"); iMainBorder.alpha = 0; iName.alpha = 0; iName2.alpha = 0; iSite.alpha = 0; _local2 = ((800 / _local1.width) * OGlobal.Scale); _local3 = (((600 * OGlobal.Scale) - _local1.height) / 2); _local1.scaleX = _local2; _local1.scaleY = _local2; _local4 = new BitmapData(_local1.width, _local1.height); _local5 = new Matrix(); _local5.scale(_local2, _local2); _local4.draw(_local1, _local5); _local6 = new Bitmap(_local4); _local7 = new Sprite(); _local7.addChild(iMainBorder); _local7.addChild(iName); _local7.addChild(iName2); _local7.addChild(iSite); _local7.scaleX = _local2; _local7.scaleY = _local2; _local7.y = (((600 * OGlobal.Scale) - _local1.height) / 2); _local6.y = (((600 * OGlobal.Scale) - _local1.height) / 2); iBook = new OIObject(null, null); iBook.addChild(_local6); iBook.addChild(_local7); iBook.name = "MenuBook"; _local8 = new Mysteriez2L.OPlayBook(); _local2 = ((600 / _local8.height) * OGlobal.Scale); _local8.scaleX = _local2; _local8.scaleY = _local2; _local4 = new BitmapData(_local8.width, _local8.height); _local5 = new Matrix(); _local5.scale(_local2, _local2); _local4.draw(_local8, _local5); _local6 = new Bitmap(_local4); iPlayBook = new OIObject(null, null); iPlayBook.addChild(_local6); iPlayBook.name = "PlayBook"; iBack = new Mysteriez2L.OBack(); iBack.scaleX = OGlobal.Scale; iBack.scaleY = OGlobal.Scale; iLoopOnBook = new Mysteriez2L.OLoopOnBook(); iLoopOnBook.scaleX = OGlobal.Scale; iLoopOnBook.scaleY = OGlobal.Scale; iNamePlus = Mysteriez2S.ColorHeaderM([Mysteriez2S.ColorHeaderM, 155, 18, Mysteriez2L.cColorsSite, Mysteriez2L.strNamePlus, OInterface.iDefSlowAnimators, 0, 0, null, 0, true]); iNamePlus.alpha = 0; iNamePlus.Pos(195, 295); } public static function get Name():DisplayObject{ return (iName); } public static function get MainBorder():DisplayObject{ return (iMainBorder); } public static function get Name2():DisplayObject{ return (iName2); } public static function get NamePlus():OIObject{ return (iNamePlus); } public static function get Site():DisplayObject{ return (iSite); } } }//package RES.OBJECTS.OGAME
Section 76
//OGField (RES.OBJECTS.OGAME.OGField) package RES.OBJECTS.OGAME { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import RES.OBJECTS.SENDRECEIVE.*; import RES.OBJECTS.*; import RES.OBJECTS.MULTYPLAYER.*; import ENGINE.CORE.*; import flash.utils.*; import RES.OBJECTS.Particle.*; import RES.OBJECTS.UTILS.*; public class OGField extends OSprite { private var iScaleKoef:Number; private var iObject:Object; public var iZoom:OGZoom; private var iMask:Sprite; public var iRecordTime:int; private var iGame:OGGame; private var iTimer:Timer; private var iPicture:Bitmap; private var iPicturesList:Array; public var iCheckZoom:OCheckBox; private var iDelay:Number;// = 300 private var iState:int; public var iRecordString:String; private var iPCont:CParticleContainer; public static const stWaitClick:int = 0; public static const stClickOnField:int = 2; public static const stClickOnObject:int = 1; public static const stDoubleClick:int = 3; public function OGField(_arg1:Array, _arg2:Number, _arg3:OGGame){ var _local4:int; var _local5:Object; iDelay = 300; super(); iGame = _arg3; iScaleKoef = (_arg2 / OGGame.SizeGame); iPicture = new (_arg1[1]); iPicture.smoothing = true; iPicture.width = ((iScaleKoef * OGlobal.Scale) * OGGame.SizeGame); iPicture.height = ((iScaleKoef * OGlobal.Scale) * OGGame.SizeGame); addChild(iPicture); iZoom = new OGZoom(new (_arg1[1]), _arg2); addChild(iZoom); iPicturesList = _arg1[2]; CPrototypeFactory._createDigitParticleBitmaps(7, iPicturesList.length); iPCont = new CParticleContainer(); this.addChild(iPCont); iMask = new (_arg1[0]); iMask.scaleX = (iScaleKoef * OGlobal.Scale); iMask.scaleY = (iScaleKoef * OGlobal.Scale); iMask.alpha = 0; _local4 = 0; while (_local4 < iPicturesList.length) { _local5 = iMask.getChildByName(iPicturesList[_local4][1]); _local5.addEventListener(MouseEvent.CLICK, OnClick); _local5.doubleClickEnabled = true; _local5.addEventListener(MouseEvent.DOUBLE_CLICK, OnDoubleClick); _local5.iNumber = iPicturesList[_local4][0]; _local5.iIndex = _local4; _local4++; }; SortBySize(); this.addChild(iMask); this.doubleClickEnabled = true; addEventListener(MouseEvent.DOUBLE_CLICK, OnDoubleClick); addEventListener(MouseEvent.CLICK, OnFieldClick); iTimer = new Timer(iDelay); iTimer.addEventListener(TimerEvent.TIMER, OnTimer); iState = stWaitClick; State = stWaitClick; iRecordString = ""; iRecordTime = getTimer(); } private function OnFieldClick(_arg1:MouseEvent):void{ if (!iTimer.running){ iObject = null; State = stClickOnField; iTimer.start(); }; } private function SortBySize():void{ var _local1:int; var _local2:int; var _local3:DisplayObject; var _local4:DisplayObject; _local1 = 0; while (_local1 < iMask.numChildren) { _local2 = 0; while (_local2 < (iMask.numChildren - 1)) { _local3 = iMask.getChildAt(_local2); _local4 = iMask.getChildAt((_local2 + 1)); if (_local4.height > _local3.height){ iMask.addChildAt(_local4, _local2); }; _local2++; }; _local1++; }; } public function OnClickToIndex(_arg1:int):void{ ClickOnObject(iMask[iPicturesList[_arg1][1]]); } public function get State():int{ return (iState); } public function ZoomOff():void{ if (iZoom.State == OGZoom.stOn){ iZoom.State = OGZoom.stOff; }; if (iCheckZoom){ iCheckZoom.Checked = (iZoom.State == OGZoom.stOff); }; } public function OnZoom():void{ if (iZoom.State == OGZoom.stOff){ iZoom.State = OGZoom.stOn; } else { iZoom.State = OGZoom.stOff; }; if (iCheckZoom){ iCheckZoom.Checked = (iZoom.State == OGZoom.stOff); }; } private function ClickOnObject(_arg1:Object):void{ ParticleEffect(_arg1); iMask.removeChild(DisplayObject(_arg1)); iGame.CalculateScore(); iGame.Sender.SendCommand(Command.RemoveObject, [_arg1.iIndex]); iRecordString = (iRecordString + ((AIConvertChar.ToTriadChar(int((getTimer() - iRecordTime))) + AIConvertChar.ToChar(OMPGame.comSelectNumber)) + AIConvertChar.ToChar(_arg1.iIndex))); iRecordTime = getTimer(); if (iMask.numChildren == 0){ ZoomOff(); iGame.State = OGGame.stLevelComplite; iRecordString = (iRecordString + (AIConvertChar.ToTriadChar(int((getTimer() - iRecordTime))) + AIConvertChar.ToChar(OMPGame.comLevelComplete))); }; iGame.Sender.SendCommand(Command.CurrentObjectSound, []); } override public function Free():void{ var _local1:int; if (iTimer){ if (iTimer.running){ iTimer.stop(); }; iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); iTimer = null; }; if (iMask){ _local1 = 0; while (_local1 < iMask.numChildren) { iMask.getChildAt(_local1).removeEventListener(MouseEvent.CLICK, OnClick); iMask.getChildAt(_local1).removeEventListener(MouseEvent.DOUBLE_CLICK, OnDoubleClick); _local1++; }; while (iMask.numChildren > 0) { iMask.removeChildAt(0); }; this.removeChild(iMask); iMask = null; }; removeEventListener(MouseEvent.DOUBLE_CLICK, OnDoubleClick); removeEventListener(MouseEvent.CLICK, OnFieldClick); if (iPCont){ this.removeChild(iPCont); iPCont = null; }; if (iZoom){ this.removeChild(iZoom); iZoom.Free(); iZoom = null; }; super.Free(); } private function OnTimer(_arg1:TimerEvent):void{ switch (iState){ case stClickOnObject: ClickOnObject(iObject); break; case stClickOnField: ClickOnField(); break; case stDoubleClick: OnZoom(); break; }; iTimer.stop(); State = stWaitClick; } private function ClickOnField():void{ iGame.Miss(); iGame.Sender.SendCommand(Command.WrongObjectSound, []); } private function ParticleEffect(_arg1:Object):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:int; var _local6:Number; var _local7:Number; _local2 = (DisplayObject(_arg1).x + (DisplayObject(_arg1).width / 2)); _local3 = (DisplayObject(_arg1).y + (DisplayObject(_arg1).height / 2)); _local4 = Math.min((DisplayObject(_arg1).width / 2), (DisplayObject(_arg1).height / 2)); _local2 = (_local2 * iScaleKoef); _local3 = (_local3 * iScaleKoef); _local4 = (_local4 * iScaleKoef); _local5 = 0; while (_local5 < 8) { _local6 = (Math.random() * _local4); _local7 = (Math.random() * _local4); if (Math.random() < 0.5){ _local6 = (_local6 * -1); }; if (Math.random() < 0.5){ _local7 = (_local7 * -1); }; iPCont.addSimpleDigitParticle(_arg1.iNumber, _local5, (_local2 + _local6), (_local3 + _local7)); _local5++; }; } private function OnClick(_arg1:MouseEvent):void{ if (!iTimer.running){ iObject = _arg1.currentTarget; State = stClickOnObject; iTimer.start(); }; } private function OnDoubleClick(_arg1:MouseEvent):void{ State = stDoubleClick; } public function set State(_arg1:int):void{ iState = _arg1; } } }//package RES.OBJECTS.OGAME
Section 77
//OGZoom (RES.OBJECTS.OGAME.OGZoom) package RES.OBJECTS.OGAME { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.CORE.*; public class OGZoom extends OSprite { private const iLimCounter:int = 1; private const iPictureSize:int = 1200; private var iBorder:OBitmap; private var iSize:int;// = 110 private var iSizeGame:int; private var iContainer:Sprite; private var iHit:OSprite; private var iMouseXPrev:Number; private var iPicture:Bitmap; private var iSprite:Sprite; private var iState:int; private var iKf:Number; private var iCounterZoom:int; public var iIfMouse:Boolean; private var iMouseYPrev:Number; public static const stOn:int = 1; public static const stOff:int = 0; public function OGZoom(_arg1:Bitmap, _arg2:int=600){ iSize = 110; super(); iSize = ((110 * _arg2) / 600); iPicture = _arg1; iContainer = new Sprite(); iSprite = new Sprite(); iSizeGame = _arg2; iKf = (iPictureSize / (iSizeGame * OGlobal.Scale)); InitBorder(); State = stOff; iContainer.addChild(iPicture); iContainer.addChild(iSprite); InitMask(); InitHit(); addEventListener(Event.ENTER_FRAME, OnEnterFrame); iIfMouse = true; iMouseXPrev = 0; iMouseYPrev = 0; iCounterZoom = iLimCounter; } private function InitMask():void{ var _local1:Number; _local1 = ((iSize / 2) * OGlobal.Scale); iSprite.graphics.beginFill(0); iSprite.graphics.drawCircle(0, 0, _local1); iSprite.graphics.endFill(); iPicture.mask = iSprite; } private function InitHit():void{ var _local1:Number; _local1 = (iSize / 2); iHit = new OSprite(); iHit.graphics.beginFill(0); iHit.graphics.drawCircle(0, 0, _local1); iHit.graphics.endFill(); iHit.alpha = 0; } public function get State():int{ return (iState); } private function InitBorder():void{ var _local1:Number; var _local2:Sprite; var _local3:Number; var _local4:Sprite; _local1 = (iSize / 2); _local2 = new Mysteriez2L.OGameLoop(); _local3 = (_local1 / (_local2.width / 2)); _local2.scaleX = _local3; _local2.scaleY = _local3; _local4 = new Sprite(); _local4.addChild(_local2); iBorder = OBitmap.MakeTmp(_local4, 1, 0, 0); } override public function Free():void{ iContainer.removeChild(iPicture); iContainer.removeChild(iSprite); iPicture = null; iSprite = null; if (contains(iContainer)){ removeChild(iContainer); }; iContainer = null; if (contains(iBorder)){ removeChild(iBorder); }; iBorder = null; if (contains(iHit)){ removeChild(iHit); }; iHit = null; removeEventListener(Event.ENTER_FRAME, OnEnterFrame); super.Free(); } public function OnEnterFrame(_arg1:Event):void{ var _local2:Number; var _local3:Number; switch (iState){ case stOff: break; case stOn: if (iIfMouse){ _local2 = mouseX; _local3 = mouseY; if (!(((_local2 == iMouseXPrev)) && ((_local3 == iMouseYPrev)))){ if (iCounterZoom == iLimCounter){ Zoom(_local2, _local3); iMouseXPrev = _local2; iMouseYPrev = _local3; iCounterZoom = 0; }; iCounterZoom++; }; }; break; }; } public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stOff: if (contains(iContainer)){ removeChild(iContainer); removeChild(iBorder); iHit.doubleClickEnabled = false; removeChild(iHit); }; break; case stOn: iMouseXPrev = 0; iMouseYPrev = 0; break; }; } public function Zoom(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; _local3 = (((((((_arg1 > 0)) && ((_arg1 < (iSizeGame * OGlobal.Scale))))) && ((_arg2 > 0)))) && ((_arg2 < (iSizeGame * OGlobal.Scale)))); if (_local3){ if (!contains(iContainer)){ addChild(iContainer); addChild(iBorder); addChild(iHit); iHit.doubleClickEnabled = true; }; _local4 = _arg1; _local5 = _arg2; _local6 = (_local4 * iKf); _local7 = (_local5 * iKf); iSprite.x = _local6; iSprite.y = _local7; iContainer.x = -((_local6 - _local4)); iContainer.y = -((_local7 - _local5)); iBorder.prX = (_local4 / OGlobal.Scale); iBorder.prY = (_local5 / OGlobal.Scale); iHit.prX = (_local4 / OGlobal.Scale); iHit.prY = (_local5 / OGlobal.Scale); } else { if (contains(iContainer)){ removeChild(iContainer); removeChild(iBorder); iHit.doubleClickEnabled = false; removeChild(iHit); }; }; } } }//package RES.OBJECTS.OGAME
Section 78
//OGTimer (RES.OBJECTS.OGTIMER.OGTimer) package RES.OBJECTS.OGTIMER { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OGTimer extends OIObject { private const iNumSplash:int = 3; public var iSecondCounter1:OCounter; public var iSecondCounter2:OCounter; private var iA:Number;// = 1 private var iMin:Number;// = 0.2 public var iTimeFon:OBitmap; public var iTimeDel:OBitmap; private var iCounterSplash:int; private var iDA:Number;// = -0.05 public var iTimeBorder:OBitmap; public var iMinuteCounter1:OCounter; public var iMinuteCounter2:OCounter; public static const stSplashBorder:int = 1; public static const stNormalBorder:int = 0; public function OGTimer(){ iA = 1; iDA = -0.05; iMin = 0.2; super(Mysteriez2L.OGTimer); this.alpha = 0.5; } public function get FonVisible():Boolean{ return (iTimeFon.prVisible); } override public function set prVisible(_arg1:Boolean):void{ iTimeBorder.prVisible = _arg1; iMinuteCounter1.prVisible = _arg1; iMinuteCounter2.prVisible = _arg1; iTimeDel.prVisible = _arg1; iSecondCounter1.prVisible = _arg1; iSecondCounter2.prVisible = _arg1; if (!_arg1){ iTimeFon.prVisible = _arg1; State = stNormalBorder; }; } override public function Init():void{ super.Init(); iMinuteCounter1.prValue = 0; iMinuteCounter2.prValue = 0; iSecondCounter1.prValue = 0; iSecondCounter2.prValue = 0; State = stNormalBorder; } private function IsTimeUp():Boolean{ return ((((((((iMinuteCounter1.prValue == 0)) && ((iMinuteCounter2.prValue == 0)))) && ((iSecondCounter1.prValue == 0)))) && ((iSecondCounter2.prValue == 0)))); } public function set FonVisible(_arg1:Boolean):void{ iTimeFon.prVisible = _arg1; } public function ChangeTime(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; _local2 = (_arg1 / 60); _local3 = (_arg1 % 60); _local4 = (_local2 / 10); _local5 = (_local2 % 10); _local6 = (_local3 / 10); _local7 = (_local3 % 10); iMinuteCounter1.prValue = _local4; iMinuteCounter2.prValue = _local5; iSecondCounter1.prValue = _local6; iSecondCounter2.prValue = _local7; } override public function OnEnterFrame(_arg1:Event):void{ switch (iState){ case stNormalBorder: if (iA != 1){ iA = (iA + iDA); if ((((iA <= iMin)) || ((iA >= 1)))){ iDA = (iDA * -1); }; if (iA >= 1){ iA = 1; }; if (iA <= iMin){ iA = iMin; }; this.alpha = iA; }; break; case stSplashBorder: iA = (iA + iDA); if ((((iA <= iMin)) || ((iA >= 1)))){ iDA = (iDA * -1); }; if (iA >= 1){ iA = 1; iCounterSplash++; }; if (iA <= iMin){ iA = iMin; }; this.alpha = iA; if ((((iCounterSplash == iNumSplash)) || (IsTimeUp()))){ if (iTimeFon.prVisible){ iTimeFon.prVisible = false; }; State = stNormalBorder; }; break; }; } override public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stNormalBorder: break; case stSplashBorder: iCounterSplash = 0; iA = 1; break; }; } } }//package RES.OBJECTS.OGTIMER
Section 79
//OEmbedsLevels (RES.OBJECTS.OLEVELS.OEmbedsLevels) package RES.OBJECTS.OLEVELS { public class OEmbedsLevels { public static const iDataLevel1:Array = [[MasksLevel1, PictureLevel1, iPicturesListLevel1, 32], 300]; public static const iDataDemo:Array = [MasksDemo, PictureDemo, iPicturesListDemo, 5]; public static var PictureDemo:Class = OEmbedsLevels_PictureDemo; private static var iPicturesListLevel1:Array = [[1, "n1"], [2, "n2"], [3, "n3"], [4, "n4"], [5, "n5"], [6, "n6"], [7, "n7"], [8, "n8"], [8, "n8a"], [9, "n9"], [10, "n10"], [11, "n11"], [12, "n12"], [13, "n13"], [14, "n14"], [15, "n15"], [16, "n16"], [17, "n17"], [18, "n18"], [19, "n19"], [20, "n20"], [21, "n21"], [22, "n22"], [23, "n23"], [24, "n24"], [25, "n25"], [26, "n26"], [27, "n27"], [28, "n28"], [29, "n29"], [30, "n30"], [31, "n31"], [32, "n32"], [33, "n33"], [34, "n34"], [35, "n35"], [36, "n36"], [37, "n37"], [38, "n38"], [39, "n39"], [40, "n40"]]; public static var MasksDemo:Class = OEmbedsLevels_MasksDemo; public static var PictureLevel1:Class = OEmbedsLevels_PictureLevel1; public static var MasksLevel1:Class = OEmbedsLevels_MasksLevel1; private static var iPicturesListDemo:Array = [[1, "n1"], [2, "n2"], [3, "n3"], [4, "n4"], [5, "n5"]]; } }//package RES.OBJECTS.OLEVELS
Section 80
//OEmbedsLevels_MasksDemo (RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo) package RES.OBJECTS.OLEVELS { import flash.display.*; import mx.core.*; public class OEmbedsLevels_MasksDemo extends SpriteAsset { public var n8a:DisplayObject; public var Name:DisplayObject; public var Name2:DisplayObject; public var n10:DisplayObject; public var n11:DisplayObject; public var n15:DisplayObject; public var n13:DisplayObject; public var n16:DisplayObject; public var n17:DisplayObject; public var n18:DisplayObject; public var n12:DisplayObject; public var n14:DisplayObject; public var n20:DisplayObject; public var n21:DisplayObject; public var n23:DisplayObject; public var n24:DisplayObject; public var n25:DisplayObject; public var n26:DisplayObject; public var n27:DisplayObject; public var n28:DisplayObject; public var n29:DisplayObject; public var n22:DisplayObject; public var n19:DisplayObject; public var n31:DisplayObject; public var n32:DisplayObject; public var n33:DisplayObject; public var n34:DisplayObject; public var n35:DisplayObject; public var n30:DisplayObject; public var n38:DisplayObject; public var n39:DisplayObject; public var n36:DisplayObject; public var n37:DisplayObject; public var Site:DisplayObject; public var n40:DisplayObject; public var MainBorder:DisplayObject; public var n1:DisplayObject; public var n2:DisplayObject; public var n3:DisplayObject; public var n5:DisplayObject; public var n7:DisplayObject; public var n8:DisplayObject; public var n9:DisplayObject; public var n6:DisplayObject; public var n4:DisplayObject; public var iBorder:DisplayObject; } }//package RES.OBJECTS.OLEVELS
Section 81
//OEmbedsLevels_MasksLevel1 (RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1) package RES.OBJECTS.OLEVELS { import flash.display.*; import mx.core.*; public class OEmbedsLevels_MasksLevel1 extends SpriteAsset { public var n8a:DisplayObject; public var Name:DisplayObject; public var Name2:DisplayObject; public var n10:DisplayObject; public var n11:DisplayObject; public var n15:DisplayObject; public var n13:DisplayObject; public var n16:DisplayObject; public var n17:DisplayObject; public var n18:DisplayObject; public var n12:DisplayObject; public var n14:DisplayObject; public var n20:DisplayObject; public var n21:DisplayObject; public var n23:DisplayObject; public var n24:DisplayObject; public var n25:DisplayObject; public var n26:DisplayObject; public var n27:DisplayObject; public var n28:DisplayObject; public var n29:DisplayObject; public var n22:DisplayObject; public var n19:DisplayObject; public var n31:DisplayObject; public var n32:DisplayObject; public var n33:DisplayObject; public var n34:DisplayObject; public var n35:DisplayObject; public var n30:DisplayObject; public var n38:DisplayObject; public var n39:DisplayObject; public var n36:DisplayObject; public var n37:DisplayObject; public var Site:DisplayObject; public var n40:DisplayObject; public var MainBorder:DisplayObject; public var n1:DisplayObject; public var n2:DisplayObject; public var n3:DisplayObject; public var n5:DisplayObject; public var n7:DisplayObject; public var n8:DisplayObject; public var n9:DisplayObject; public var n6:DisplayObject; public var n4:DisplayObject; public var iBorder:DisplayObject; } }//package RES.OBJECTS.OLEVELS
Section 82
//OEmbedsLevels_PictureDemo (RES.OBJECTS.OLEVELS.OEmbedsLevels_PictureDemo) package RES.OBJECTS.OLEVELS { import mx.core.*; public class OEmbedsLevels_PictureDemo extends BitmapAsset { } }//package RES.OBJECTS.OLEVELS
Section 83
//OEmbedsLevels_PictureLevel1 (RES.OBJECTS.OLEVELS.OEmbedsLevels_PictureLevel1) package RES.OBJECTS.OLEVELS { import mx.core.*; public class OEmbedsLevels_PictureLevel1 extends BitmapAsset { } }//package RES.OBJECTS.OLEVELS
Section 84
//OLLevels (RES.OBJECTS.OLEVELS.OLLevels) package RES.OBJECTS.OLEVELS { public class OLLevels { public static const iTimeLevelDecrement:int = 60; private static const iLevelList:Array = [["Level_1_MZ2.swf", 300], ["Level_2_MZ2.swf", 300], ["Level_3_MZ2.swf", 300], ["Level_4_MZ2.swf", 300], ["Level_5_MZ2.swf", 300], ["Level_6_MZ2.swf", 300], ["Level_7_MZ2.swf", 300], ["Level_8_MZ2.swf", 300], ["Level_9_MZ2.swf", 300], ["Level_10_MZ2.swf", 300]]; public static function _LevelList(_arg1:int):Array{ return (iLevelList[(_arg1 % iLevelList.length)]); } public static function get LevelCount():int{ return (iLevelList.length); } } }//package RES.OBJECTS.OLEVELS
Section 85
//CExplodeParticle (RES.OBJECTS.Particle.CExplodeParticle) package RES.OBJECTS.Particle { public class CExplodeParticle extends CSimpleFallParticle { public static const MOVE_DOWN:int = 1; public static const MOVE_LEFT:int = 2; public static const MOVE_UP:int = 0; public static const MOVE_RIGHT:int = 3; public function CExplodeParticle(_arg1:int, _arg2:CParticleContainer, _arg3:int){ super(_arg1, _arg2); super.dAlpha = ((Math.random() * 0.2) + 0.02); switch (_arg3){ case CExplodeParticle.MOVE_UP: super.dx = ((Math.random() * 2) - 1); super.dy = ((-(Math.random()) * 4) - 1); break; case CExplodeParticle.MOVE_DOWN: super.dx = ((Math.random() * 2) - 1); super.dy = ((Math.random() * 4) + 1); break; case CExplodeParticle.MOVE_LEFT: super.dx = ((-(Math.random()) * 4) - 1); super.dy = ((Math.random() * 2) - 1); break; case CExplodeParticle.MOVE_RIGHT: super.dx = ((Math.random() * 4) + 1); super.dy = ((Math.random() * 2) - 1); break; }; } } }//package RES.OBJECTS.Particle
Section 86
//CParticle (RES.OBJECTS.Particle.CParticle) package RES.OBJECTS.Particle { public interface CParticle { function onTimer():void; } }//package RES.OBJECTS.Particle
Section 87
//CParticleContainer (RES.OBJECTS.Particle.CParticleContainer) package RES.OBJECTS.Particle { import ENGINE.DISPLAY.*; import flash.events.*; public class CParticleContainer extends OSprite { private var aParticlesList:Array; public function CParticleContainer(){ aParticlesList = new Array(); super(); addEventListener(Event.ENTER_FRAME, onTimer); } public function _createExplodeParticles(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{ var _local6:CParticle; var _local7:int; var _local8:int; _local7 = _arg2; while (_local7 < _arg4) { _local6 = new CExplodeParticle(_arg1, this, CExplodeParticle.MOVE_UP); aParticlesList.push(_local6); (_local6 as CExplodeParticle).prX = _local7; (_local6 as CExplodeParticle).prY = _arg3; this.addChild((_local6 as OSprite)); _local6 = new CExplodeParticle(_arg1, this, CExplodeParticle.MOVE_DOWN); aParticlesList.push(_local6); (_local6 as CExplodeParticle).prX = _local7; (_local6 as CExplodeParticle).prY = _arg5; this.addChild((_local6 as OSprite)); _local7 = (_local7 + 4); }; _local7 = _arg3; while (_local7 < _arg5) { _local6 = new CExplodeParticle(_arg1, this, CExplodeParticle.MOVE_LEFT); aParticlesList.push(_local6); (_local6 as CExplodeParticle).prX = _arg2; (_local6 as CExplodeParticle).prY = _local7; this.addChild((_local6 as OSprite)); _local6 = new CExplodeParticle(_arg1, this, CExplodeParticle.MOVE_RIGHT); aParticlesList.push(_local6); (_local6 as CExplodeParticle).prX = _arg4; (_local6 as CExplodeParticle).prY = _local7; this.addChild((_local6 as OSprite)); _local7 = (_local7 + 4); }; } public function removeParticle(_arg1:CParticle):void{ var _local2:int; _local2 = 0; while (_local2 < aParticlesList.length) { if (aParticlesList[_local2] == _arg1){ this.removeChild((_arg1 as OSprite)); (_arg1 as OSprite).Free(); _arg1 = null; aParticlesList.splice(_local2, 1); return; }; _local2++; }; } public function addSimpleParticle(_arg1:int, _arg2:int, _arg3:int):void{ var _local4:CParticle; _local4 = new CSimpleFallParticle(_arg1, this); aParticlesList.push(_local4); (_local4 as CSimpleFallParticle).prX = _arg2; (_local4 as CSimpleFallParticle).prY = _arg3; this.addChild((_local4 as OSprite)); } override public function Free():void{ this.removeEventListener(Event.ENTER_FRAME, onTimer); super.Free(); } public function onTimer(_arg1:Event):void{ var _local2:int; _local2 = 0; while (_local2 < aParticlesList.length) { (aParticlesList[_local2] as CParticle).onTimer(); _local2++; }; } public function addRunParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:CParticle; _local5 = new CSimpleRunParticle(_arg1, this, _arg2, _arg3, _arg4); aParticlesList.push(_local5); (_local5 as CSimpleRunParticle).prX = _arg2; (_local5 as CSimpleRunParticle).prY = _arg3; this.addChild((_local5 as OSprite)); } public function addSimpleDigitParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:CParticle; _local5 = new CSimpleDigitParticle(_arg2, _arg1, this); aParticlesList.push(_local5); (_local5 as CSimpleDigitParticle).prX = _arg3; (_local5 as CSimpleDigitParticle).prY = _arg4; this.addChild((_local5 as OSprite)); } } }//package RES.OBJECTS.Particle
Section 88
//CSimpleDigitParticle (RES.OBJECTS.Particle.CSimpleDigitParticle) package RES.OBJECTS.Particle { import ENGINE.DISPLAY.*; import flash.geom.*; import RES.OBJECTS.*; public class CSimpleDigitParticle extends OSprite implements CParticle { private var TotalTime:int;// = 100 protected var dAlpha:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; protected var dy:Number; protected var dr:Number; protected var dx:Number; private var iTime:int; protected var dVelY:Number; protected var dVelX:Number; public function CSimpleDigitParticle(_arg1:int, _arg2:int, _arg3:CParticleContainer){ var _local4:Point; var _local5:Number; var _local6:Number; TotalTime = 100; this.cParticleContainer = _arg3; super(); gBitmap = new OBitmap(); gBitmap.CopyFrom(CPrototypeFactory.aParticles[(_arg2 - 1)][(_arg1 % CPrototypeFactory.aParticles[0].length)]); this.addChild(gBitmap); this.dx = ((Math.random() * 3) - 1.5); this.dy = ((Math.random() * 3) - 1.5); _local4 = new Point(dx, dy); _local5 = (_local4.length * 0.15); if (Math.random() < 0.5){ _local4.normalize((_local4.length * 1.15)); } else { _local4.normalize((_local4.length * 0.85)); }; dx = _local4.x; dy = _local4.y; dVelX = (dx / 100); dVelY = (dy / 100); _local6 = (TotalTime * 0.15); if (Math.random() < 0.5){ TotalTime = (TotalTime - _local6); } else { TotalTime = (TotalTime + _local6); }; this.dAlpha = (1 / ((2 * TotalTime) / 3)); this.alpha = 1; iTime = 0; } override public function Free():void{ if (gBitmap){ gBitmap = null; }; } public function onTimer():void{ iTime++; if (iTime > (TotalTime / 3)){ this.alpha = (this.alpha - this.dAlpha); }; if ((((iTime > TotalTime)) || ((this.alpha <= 0.2)))){ cParticleContainer.removeParticle(this); }; this.Move(dx, dy); dx = (dx - dVelX); dy = (dy - dVelY); } } }//package RES.OBJECTS.Particle
Section 89
//CSimpleFallParticle (RES.OBJECTS.Particle.CSimpleFallParticle) package RES.OBJECTS.Particle { import ENGINE.DISPLAY.*; import RES.OBJECTS.*; public class CSimpleFallParticle extends OSprite implements CParticle { private const TotalTime:int = 100; protected var dAlpha:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; protected var dy:Number; protected var dr:Number; protected var dx:Number; private var iTime:int; protected var dVelY:Number; protected var dVelX:Number; public function CSimpleFallParticle(_arg1:int, _arg2:CParticleContainer){ this.cParticleContainer = _arg2; super(); gBitmap = new OBitmap(); gBitmap.CopyFrom(CPrototypeFactory.aParticles[(_arg1 % CPrototypeFactory.aParticles.length)]); this.addChild(gBitmap); this.dx = ((Math.random() * 3) - 1.5); this.dy = ((Math.random() * 3) - 1.5); dVelX = (dx / 100); dVelY = (dy / 100); this.dAlpha = (1 / ((2 * TotalTime) / 3)); this.alpha = 1; iTime = 0; } public function onTimer():void{ iTime++; if (iTime > (TotalTime / 3)){ this.alpha = (this.alpha - this.dAlpha); }; if ((((iTime > TotalTime)) || ((this.alpha <= 0.2)))){ cParticleContainer.removeParticle(this); }; this.Move(dx, dy); dx = (dx - dVelX); dy = (dy - dVelY); } } }//package RES.OBJECTS.Particle
Section 90
//CSimpleRunParticle (RES.OBJECTS.Particle.CSimpleRunParticle) package RES.OBJECTS.Particle { import ENGINE.DISPLAY.*; import RES.OBJECTS.*; public class CSimpleRunParticle extends OSprite implements CParticle { private const TotalTime:int = 50; private var iRadius:Number; protected var dAlpha:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; private var x0:Number; private var dAngle:Number; private var iTime:int; private var y0:Number; private var iAngle:Number; public function CSimpleRunParticle(_arg1:int, _arg2:CParticleContainer, _arg3:Number, _arg4:Number, _arg5:Number){ this.cParticleContainer = _arg2; super(); gBitmap = new OBitmap(); gBitmap.CopyFrom(CPrototypeFactory.aParticles[(_arg1 % CPrototypeFactory.aParticles.length)]); this.addChild(gBitmap); iRadius = _arg5; x0 = _arg3; y0 = _arg4; iAngle = ((((2 * Math.PI) / 12) * (_arg1 % 12)) * 2); dAngle = ((2 * Math.PI) / TotalTime); this.dAlpha = (1 / (TotalTime / 3)); this.alpha = 1; iTime = 0; } public function onTimer():void{ iTime++; if (iTime > ((2 * TotalTime) / 3)){ this.alpha = (this.alpha - this.dAlpha); }; if ((((iTime > TotalTime)) || ((this.alpha <= 0.2)))){ cParticleContainer.removeParticle(this); }; iAngle = (iAngle + dAngle); this.Pos((x0 + (iRadius * Math.cos(iAngle))), (y0 - (iRadius * Math.sin(iAngle)))); } } }//package RES.OBJECTS.Particle
Section 91
//Command (RES.OBJECTS.SENDRECEIVE.Command) package RES.OBJECTS.SENDRECEIVE { public class Command { public static const BeginFreeze:String = "BeginFreeze"; public static const StartHintsPanelSplash:String = "StartHintsPanelSplash"; public static const WrongObjectSound:String = "WrongObjectSound"; public static const RemoveObject:String = "RemoveObject"; public static const ChangeText:String = "ChangeText"; public static const ScoreForHint:String = "ScoreForHint"; public static const StopHintsPanelSplash:String = "StopHintsPanelSplash"; public static const DoubleClick:String = "DoubleClick"; public static const AddHint:String = "AddHint"; public static const DecreaseTime:String = "DecreaseTime"; public static const TimeEnd:String = "TimeEnd"; public static const ChangeCurrentObject:String = "ChangeCurrentObject"; public static const EndFreeze:String = "EndFreeze"; public static const ApplyHint:String = "ApplyHint"; public static const DisableHint:String = "DisableHint"; public static const CurrentObjectSound:String = "CurrentObjectSound"; public static const ChangeTime:String = "ChangeTime"; public static const AddScoreSound:String = "AddScoreSound"; } }//package RES.OBJECTS.SENDRECEIVE
Section 92
//OReceiver (RES.OBJECTS.SENDRECEIVE.OReceiver) package RES.OBJECTS.SENDRECEIVE { public class OReceiver { private var iListeners:Array; public function OReceiver(){ iListeners = new Array(); } public function AddListener(_arg1:String, _arg2:Function):void{ iListeners[_arg1] = _arg2; } public function RemoveListener(_arg1:String):void{ if (iListeners[_arg1]){ iListeners[_arg1] = null; delete iListeners[_arg1]; }; } public function Reaction(_arg1:String, _arg2:Array):void{ if (iListeners[_arg1]){ var _local3 = iListeners; _local3[_arg1](_arg2); }; } } }//package RES.OBJECTS.SENDRECEIVE
Section 93
//OSender (RES.OBJECTS.SENDRECEIVE.OSender) package RES.OBJECTS.SENDRECEIVE { public class OSender { private var iReceivers:Array; public function OSender(){ iReceivers = new Array(); } public function AddReceiver(_arg1:OReceiver):int{ if (_arg1){ return (iReceivers.push(_arg1)); }; return (-1); } public function SendCommand(_arg1:String, _arg2:Array):void{ var _local3:OReceiver; for each (_local3 in iReceivers) { _local3.Reaction(_arg1, _arg2); }; } public function RemoveReceiver(_arg1:int):void{ iReceivers.splice(_arg1, 1); } } }//package RES.OBJECTS.SENDRECEIVE
Section 94
//OMButton (RES.OBJECTS.TEXTBUTTON.OMButton) package RES.OBJECTS.TEXTBUTTON { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OMButton extends OButton { public var iTextShadow:OBitmap; public var iTextOut:OBitmap; private var iColor2:int; public var iTextOver:OBitmap; private var iFontSize:int; private var iColor1:int; public function OMButton(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); } override public function set prVisible(_arg1:Boolean):void{ super.prVisible = _arg1; this.visible = _arg1; } override public function OnRollOver(_arg1:MouseEvent):void{ super.OnRollOver(_arg1); this.iTextOver.visible = true; this.iTextOut.visible = false; this.iTextShadow.visible = true; } override public function OnRollOut(_arg1:MouseEvent):void{ super.OnRollOut(_arg1); this.iTextOver.visible = false; this.iTextOut.visible = true; this.iTextShadow.visible = true; } override public function OnMouseDown(_arg1:MouseEvent):void{ this.iTextOver.visible = false; this.iTextOut.visible = true; this.iTextShadow.visible = false; super.OnMouseDown(_arg1); } } }//package RES.OBJECTS.TEXTBUTTON
Section 95
//AIConvertChar (RES.OBJECTS.UTILS.AIConvertChar) package RES.OBJECTS.UTILS { public class AIConvertChar { public static const ABC:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; public static function ToTriadChar(_arg1:int):String{ var _local2:int; var _local3:String; _local2 = _arg1; _local3 = ""; do { _local3 = (_local3 + ABC.charAt((_local2 % ABC.length))); _local2 = (_local2 / ABC.length); } while (_local2 != 0); while (_local3.length < 3) { _local3 = (_local3 + "A"); }; return (_local3); } public static function ToChar(_arg1:int):String{ var _local2:int; var _local3:String; _local2 = _arg1; _local3 = ""; do { _local3 = ABC.charAt((_local2 % ABC.length)); _local2 = (_local2 / ABC.length); } while (_local2 != 0); return (_local3); } public static function FromChar(_arg1:String):int{ var _local2:String; var _local3:int; _local2 = _arg1; _local3 = 0; while (_local2 != "") { _local3 = (_local3 * ABC.length); _local3 = (_local3 + ABC.indexOf(_local2.substr((_local2.length - 1), 1))); _local2 = _local2.substr(0, (_local2.length - 1)); }; return (_local3); } public static function ToDoubleChar(_arg1:int):String{ var _local2:int; var _local3:String; _local2 = _arg1; _local3 = ""; do { _local3 = (_local3 + ABC.charAt((_local2 % ABC.length))); _local2 = (_local2 / ABC.length); } while (_local2 != 0); while (_local3.length < 2) { _local3 = (_local3 + "A"); }; return (_local3); } } }//package RES.OBJECTS.UTILS
Section 96
//OFlairSplash (RES.OBJECTS.UTILS.OFlairSplash) package RES.OBJECTS.UTILS { import flash.events.*; import flash.display.*; public class OFlairSplash extends Sprite { private var iMin:Number; private var iNumSplash:int; private var d:DisplayObject; private var iCounterSplash:int; private var iDA:Number; private var iDisplayObjects:Array; private var iSplashMode:Boolean; private var iA:Number; public function OFlairSplash(_arg1:Number=1, _arg2:Number=-0.05, _arg3:Number=0.2, _arg4:int=2147483647){ iDisplayObjects = new Array(); iSplashMode = false; iA = _arg1; iDA = _arg2; iMin = _arg3; iNumSplash = _arg4; } public function set Splash(_arg1:Boolean):void{ iSplashMode = _arg1; if (iSplashMode){ iCounterSplash = 0; addEventListener(Event.ENTER_FRAME, OnEnterFrame); }; } public function set DeltaAlpha(_arg1:Number):void{ if (!iSplashMode){ iDA = _arg1; }; } public function set Alpha(_arg1:Number):void{ if (!iSplashMode){ iA = _arg1; }; } public function get Splash():Boolean{ return (iSplashMode); } public function set MinAlpha(_arg1:Number):void{ if (!iSplashMode){ iMin = _arg1; }; } public function Free():void{ iDisplayObjects = null; removeEventListener(Event.ENTER_FRAME, OnEnterFrame); } public function AddDisplayObject(_arg1:DisplayObject):void{ iDisplayObjects.push(_arg1); } private function OnEnterFrame(_arg1:Event):void{ if (iSplashMode){ iA = (iA + iDA); if ((((iA <= iMin)) || ((iA >= 1)))){ iDA = (iDA * -1); if (iA < iMin){ iA = iMin; }; if (iA > 1){ iA = 1; }; if (iNumSplash != int.MAX_VALUE){ iCounterSplash++; }; }; for each (d in iDisplayObjects) { d.alpha = iA; }; if (iCounterSplash == iNumSplash){ iSplashMode = false; removeEventListener(Event.ENTER_FRAME, OnEnterFrame); }; }; } public function set NumSplash(_arg1:Number):void{ if (!iSplashMode){ iNumSplash = _arg1; }; } } }//package RES.OBJECTS.UTILS
Section 97
//OLOpponentPlay (RES.OBJECTS.UTILS.OLOpponentPlay) package RES.OBJECTS.UTILS { import flash.events.*; import RES.OBJECTS.MULTYPLAYER.*; import flash.utils.*; public class OLOpponentPlay { private var iTCount:int; private var iField:OMPGame; private var iIndex:int; private var iRecord:String; private var iTimer:Timer; private var iState:int; private var iCommand:int; private var iTDelay:int; public static const stPlay:int = 1; public static const stNone:int = 0; public static const stEnd:int = 4; public function OLOpponentPlay(_arg1:OMPGame, _arg2:String){ iField = _arg1; iRecord = _arg2; iTimer = new Timer(20); iTimer.addEventListener(TimerEvent.TIMER, OnTimer); iTimer.start(); this.State = stNone; } public function OnTimer(_arg1:TimerEvent):void{ switch (iState){ case stNone: break; case stPlay: if ((getTimer() - iTCount) > iTDelay){ switch (iCommand){ case OMPGame.comSelectNumber: iField.ClickOnNumber(iIndex, 100); break; case OMPGame.comLevelComplete: iField.LevelComplete(); break; case OMPGame.comLevelFailed: iField.LevelFailed(); break; }; ParseCommand(); }; break; case stEnd: ParseCommand(); break; }; } public function AddCommand(_arg1:String):void{ this.iRecord = (this.iRecord + _arg1); } public function Free():void{ this.iTimer.stop(); iTimer = null; } private function get State():int{ return (iState); } private function ParseCommand():void{ if (iRecord.length == 0){ this.State = stEnd; return; }; iTCount = getTimer(); iTDelay = AIConvertChar.FromChar(iRecord.slice(0, 3)); iRecord = iRecord.substr(3); iCommand = AIConvertChar.FromChar(iRecord.slice(0, 1)); iRecord = iRecord.substr(1); switch (iCommand){ case OMPGame.comSelectNumber: iIndex = AIConvertChar.FromChar(iRecord.slice(0, 1)); iRecord = iRecord.substr(1); break; case OMPGame.comLevelComplete: break; case OMPGame.comLevelFailed: break; }; } private function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stNone: if (((iField) && (iRecord))){ this.State = stPlay; }; break; case stPlay: ParseCommand(); break; case stEnd: break; }; } } }//package RES.OBJECTS.UTILS
Section 98
//OLUtils (RES.OBJECTS.UTILS.OLUtils) package RES.OBJECTS.UTILS { import flash.geom.*; public class OLUtils { public static function CloneArray(_arg1:Array):Array{ var _local2:Array; var _local3:int; _local2 = new Array(); _local3 = 0; while (_local3 < _arg1.length) { if ((_arg1[_local3] is Array)){ _local2.push(CloneArray(_arg1[_local3])); } else { _local2.push(_arg1[_local3]); }; _local3++; }; return (_local2); } public static function XYtoAB(_arg1:Array):Array{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local2 = (_arg1[0][0] - _arg1[1][0]); _local3 = (_arg1[0][1] - _arg1[1][1]); _local4 = (_local3 / _local2); _local5 = (_arg1[0][1] - (_arg1[0][0] * _local4)); return ([_local4, _local5]); } public static function Basis(_arg1:Array):Point{ var _local2:Point; var _local3:Point; var _local4:Point; var _local5:Number; var _local6:Number; var _local7:Point; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Point; _local2 = _arg1[0]; _local3 = _arg1[1]; _local4 = _arg1[2].clone(); _local4.normalize(1); _local5 = _arg1[3]; _local6 = (((_local3.x - _local2.x) * _local4.x) + ((_local3.y - _local2.y) * _local4.y)); _local7 = new Point(((_local6 * _local4.x) + _local2.x), ((_local6 * _local4.y) + _local2.y)); _local8 = Math.abs(((-((_local3.x - _local2.x)) * _local4.y) + ((_local3.y - _local2.y) * _local4.x))); if (_local8 > _local5){ return (null); }; _local9 = Math.sqrt((Math.pow(_local5, 2) - Math.pow(_local8, 2))); _local10 = (_local6 - _local9); if (_local10 <= _arg1[2].length){ _local4.normalize(_local10); _local11 = new Point((_local2.x + _local4.x), (_local2.y + _local4.y)); }; return (_local11); } } }//package RES.OBJECTS.UTILS
Section 99
//CPrototypeFactory (RES.OBJECTS.CPrototypeFactory) package RES.OBJECTS { import ENGINE.DISPLAY.*; import flash.display.*; public class CPrototypeFactory { public static var aStars:Array; private static var iCellsIndex:int; public static var aLetters:Array; public static var aCells:Array; public static var aParticles:Array; private static var aAlphabet:Array; public static var aSimpleCells:Array; public static function createSimpleCellsBitmaps(_arg1:int):void{ CPrototypeFactory.createStar(_arg1); } public static function _createParticleBitmaps(_arg1:int):void{ var _local2:Array; var _local3:Array; var _local4:int; CPrototypeFactory.aParticles = new Array(); _local2 = [ODisplay.SpriteLib, Mysteriez2L.FallParticle]; _local3 = [ODisplay.SpriteScale, _local2, 1, 0, 0, 0]; _local4 = 0; while (_local4 < _arg1) { CPrototypeFactory.aParticles.push(ODisplay.OBitmapMake([null, _local3, 1, "GEL", Mysteriez2L.iGameColor[_local4], "text 30", 1, 0, 0])); _local4++; }; } public static function _createDigitParticleBitmaps(_arg1:int, _arg2:int):void{ var _local3:int; var _local4:Array; var _local5:Sprite; var _local6:Sprite; var _local7:Array; var _local8:Array; var _local9:int; var _local10:Sprite; CPrototypeFactory.aParticles = new Array(); _local3 = 0; while (_local3 < _arg2) { _local4 = new Array(); _local5 = ODisplay.SpriteText([ODisplay.SpriteText, Mysteriez2L.OFont, 15, 0, (_local3 + 1).toString()]); ODisplay.SpriteText([ODisplay.SpriteText, Mysteriez2L.OFont, 15, 0, (_local3 + 1).toString()]).x = (_local5.x - (_local5.width / 2)); _local5.y = (_local5.y - (_local5.height / 2)); _local6 = new Sprite(); _local6.addChild(_local5); _local7 = [ODisplay.SpriteLib, _local6]; _local8 = [ODisplay.SpriteScale, _local7, 1, 0, 0, 0]; _local9 = 0; while (_local9 < _arg1) { _local10 = Mysteriez2S.MakeColorSprite([_local6, Mysteriez2L.cColorsParticles[(_local9 % Mysteriez2L.cColorsParticles.length)]]); _local4.push(OBitmap.MakeTmp(_local10, 1, 0, 0)); _local9++; }; CPrototypeFactory.aParticles.push(_local4); _local3++; }; } public static function _createBitmaps(_arg1:int):void{ CPrototypeFactory._createParticleBitmaps(_arg1); } private static function createStar(_arg1:int):void{ } } }//package RES.OBJECTS
Section 100
//OCheckBox (RES.OBJECTS.OCheckBox) package RES.OBJECTS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OCheckBox extends OIObject { public var iCheck:OBitmap; private var iCheckFlag:Boolean; public var iHit:OButton; public var iUnCheck:OBitmap; public function OCheckBox(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); iCheck.prVisible = true; iUnCheck.prVisible = false; iCheckFlag = true; } public function set Checked(_arg1:Boolean):void{ iCheckFlag = _arg1; iCheck.prVisible = _arg1; iUnCheck.prVisible = !(_arg1); } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == iHit){ iCheckFlag = !(iCheckFlag); iCheck.prVisible = iCheckFlag; iUnCheck.prVisible = !(iCheckFlag); }; super.OnPress(_arg1, _arg2); if (((this.parent) && ((this.parent is OIObject)))){ OIObject(this.parent).OnPress(_arg1, this); }; } public function get Checked():Boolean{ return (iCheckFlag); } } }//package RES.OBJECTS
Section 101
//OGGame (RES.OBJECTS.OGGame) package RES.OBJECTS { import RES.OBJECTS.SENDRECEIVE.*; import RES.OBJECTS.OGAME.*; import RES.OBJECTS.MULTYPLAYER.*; import flash.utils.*; import RES.OBJECTS.UTILS.*; public class OGGame { private const iTimeCalculateScore:int = 6; private const iDeltaScore:int = 100; private const iPriceTime:int = 10; private const iOneTime:int = 60; private const iTimeMinValue:int = 40; private var iNumSecondForDecrease:int;// = 1 private var iGField:OGField; private var iScore:int; private var iState:int; private var iTimeBonusScore:int; private var iCounterEF:int; private var iTimeGame:int; private var iSender:OSender; public static const stLevelComplite:int = 4; public static const stWaitClick:int = 0; public static const SizeGame:int = 600; public static const stLevelFailed:int = 5; public static const iDecreaseTime:int = 10; public function OGGame(_arg1:Array, _arg2:int, _arg3:OReceiver, _arg4:int){ iNumSecondForDecrease = 1; super(); iGField = new OGField(_arg1, _arg4, this); iSender = new OSender(); iSender.AddReceiver(_arg3); iTimeGame = _arg2; Init(); State = stWaitClick; } public function get State():int{ return (iState); } public function Free():void{ iGField.Free(); iGField = null; } public function get Sender():OSender{ return (iSender); } public function get TimeBonusScore():int{ return (iTimeBonusScore); } public function OnEnterFrame():void{ iCounterEF++; switch (iState){ case stWaitClick: if ((iCounterEF % iOneTime) == 0){ iTimeGame--; iSender.SendCommand(Command.ChangeTime, [iTimeGame]); }; if (iTimeGame < iTimeMinValue){ iSender.SendCommand(Command.TimeEnd, []); }; if (iTimeGame == 0){ State = stLevelFailed; }; break; case stLevelComplite: if ((iCounterEF % iTimeCalculateScore) == 0){ if (iTimeGame > 0){ if (iTimeGame > iNumSecondForDecrease){ iTimeGame = (iTimeGame - iNumSecondForDecrease); } else { iNumSecondForDecrease = iTimeGame; iTimeGame = 0; }; iSender.SendCommand(Command.ChangeTime, [iTimeGame]); iScore = (iScore + (iPriceTime * iNumSecondForDecrease)); iSender.SendCommand(Command.AddScoreSound, []); }; }; break; case stLevelFailed: break; }; } public function set prVisible(_arg1:Boolean):void{ iGField.prVisible = _arg1; } public function get Field():OGField{ return (iGField); } public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stWaitClick: break; case stLevelComplite: iTimeBonusScore = (iTimeGame * iPriceTime); iGField.ZoomOff(); break; case stLevelFailed: iTimeBonusScore = 0; iGField.ZoomOff(); iGField.iRecordString = (iGField.iRecordString + (AIConvertChar.ToTriadChar(int((getTimer() - iGField.iRecordTime))) + AIConvertChar.ToChar(OMPGame.comLevelFailed))); break; }; } public function Miss():void{ iTimeGame = (iTimeGame - iDecreaseTime); iSender.SendCommand(Command.DecreaseTime, [iDecreaseTime]); if (iTimeGame < 0){ iTimeGame = 0; }; iSender.SendCommand(Command.ChangeTime, [iTimeGame]); } public function get Score():int{ return (iScore); } public function get prRecord():String{ return (this.iGField.iRecordString); } public function CalculateScore():void{ iScore = (iScore + iDeltaScore); } private function Init():void{ iSender.SendCommand(Command.ChangeTime, [iTimeGame]); iScore = 0; } } }//package RES.OBJECTS
Section 102
//OGInfo (RES.OBJECTS.OGInfo) package RES.OBJECTS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; import flash.utils.*; public class OGInfo extends OIObject { private const TimeDelay:int = 1000; private var iContainer:OIObject; private var iTimer:int; private var iArray:Array; public static const stHide:int = 4; public static const infTimeDec:int = 0; private static const dAlpha:Number = 0.01; public static const stShow:int = 2; public static const stNormal:int = 0; public function OGInfo(){ super([], null); iContainer = new OIObject(Mysteriez2L.OGInfo); iArray = new Array(); this.State = stNormal; } private function Push(_arg1:int):void{ var _local2:OBitmap; var _local3:Number; var _local4:Number; _local2 = new OBitmap(); _local2.CopyFrom((iContainer.getChildAt(_arg1) as OBitmap)); _local3 = ((mouseX / OGlobal.Scale) - (_local2.prWidth / 2)); _local4 = ((mouseY / OGlobal.Scale) - (_local2.prHeight / 2)); if (_local3 < 0){ _local3 = -15; }; if (_local4 < 0){ _local4 = 0; }; if ((_local3 + _local2.prWidth) > (550 - 25)){ _local3 = ((550 - _local2.prWidth) - 25); }; if ((_local4 + _local2.prHeight) > 550){ _local4 = (550 - _local2.prHeight); }; _local2.Pos(_local3, _local4); iArray.push(_local2); this.addChild(_local2); } public function AddInfo(_arg1:int):void{ this.Push(_arg1); } override public function OnEnterFrame(_arg1:Event):void{ var _local2:int; var _local3:OBitmap; switch (this.iState){ case stNormal: if (iArray.length > 0){ this.State = stShow; }; break; case stShow: _local2 = 0; while (_local2 < iArray.length) { _local3 = iArray[_local2]; _local3.alpha = (_local3.alpha - dAlpha); _local3.prY = (_local3.prY - 2); if (_local3.alpha <= 0){ iArray.splice(_local2, 1); this.removeChild(_local3); _local3 = null; }; _local2++; }; if (iArray.length == 0){ this.State = stNormal; }; break; }; super.OnEnterFrame(_arg1); } override public function set State(_arg1:int):void{ this.iState = _arg1; switch (iState){ case stNormal: break; case stShow: iTimer = getTimer(); break; case stHide: this.State = stNormal; break; }; } } }//package RES.OBJECTS
Section 103
//OInfoObject (RES.OBJECTS.OInfoObject) package RES.OBJECTS { import flash.events.*; import ENGINE.INTERFACE.*; public class OInfoObject extends OIObject { public function OInfoObject(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); } override public function OnPress(_arg1:Event, _arg2):void{ (this.parent as OIObject).OnPress(_arg1, _arg2); } } }//package RES.OBJECTS
Section 104
//ORecord (RES.OBJECTS.ORecord) package RES.OBJECTS { import flash.geom.*; public class ORecord { private var iRecLenAct:int;// = 2 private var sAlphabet:String; private var iStr:String; private var iRecLenTime:int;// = 3 private var iCount:int;// = 62 private var iPos:int; private var iArr:Array; public static const actDelHint:int = 2700; public static const actComplete:int = 2900; public static const actBonus:int = 3000; public static const actFailed:int = 2800; public static const actAddHint:int = 2600; public static const actSetNumber:int = 2000; public static const FramesPurSecond:int = 12; public function ORecord(){ iRecLenTime = 3; iRecLenAct = 2; iCount = 62; super(); this.iPos = -1; iArr = new Array(); } public function WriteFrames(_arg1:int):void{ if (_arg1 > 0){ this.WriteTime(_arg1); } else { this.WriteTime(1); }; } public function WriteAddHint():void{ WriteAction(actAddHint); } public function get Length():int{ return (iArr.length); } public function ReadAction():int{ if (((!(this.iArr)) || ((this.iPos >= this.iArr.length)))){ return (-1); }; return (this.iArr[this.iPos++].y); } private function WriteAction(_arg1:int):void{ iStr = (iStr + ValueToCode(_arg1)); } public function WriteDeltaScore(_arg1:int):void{ WriteAction(_arg1); } public function WriteFailed():void{ WriteAction(actFailed); } public function set prStr(_arg1:String):void{ this.iStr = _arg1; } public function WriteBonus(_arg1:int):void{ var _local2:int; _local2 = (_arg1 / 10); if (_local2 >= (Math.pow(iCount, iRecLenAct) - actBonus)){ _local2 = ((Math.pow(iCount, iRecLenAct) - actBonus) - 1); }; WriteAction((actBonus + _local2)); } public function WriteStart():void{ this.iStr = ""; this.iPos = 0; this.sAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; } public function WriteSetNumber(_arg1:int):void{ WriteAction((actSetNumber + _arg1)); } public function get prStr():String{ return (this.iStr); } private function CodeToValue(_arg1:String):int{ var _local2:int; var _local3:int; _local2 = 0; _local3 = 0; while (_local3 < _arg1.length) { _local2 = (_local2 + (sAlphabet.indexOf(_arg1.charAt(_local3)) * Math.pow(iCount, ((_arg1.length - _local3) - 1)))); _local3++; }; return (_local2); } public function ReadTime():int{ if (((!(this.iArr)) || ((this.iPos >= this.iArr.length)))){ return (-1); }; return (this.iArr[this.iPos].x); } public function WriteTime(_arg1:int):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local2 = ((_arg1)<Math.pow(iCount, iRecLenTime)) ? _arg1 : (Math.pow(iCount, iRecLenTime) - 1); _local3 = (_local2 % iCount); _local4 = (((_local2 - _local3) / iCount) % iCount); _local5 = ((((_local2 - _local3) - (_local4 * iCount)) / (iCount * iCount)) % iCount); iStr = (iStr + ((sAlphabet.charAt(_local5) + sAlphabet.charAt(_local4)) + sAlphabet.charAt(_local3))); } public function ReadStart():void{ var _local1:int; var _local2:int; var _local3:Point; this.sAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; this.iPos = 0; _local1 = (iStr.length / (iRecLenTime + iRecLenAct)); _local2 = 0; while (_local2 < _local1) { _local3 = new Point(); _local3.x = CodeToValue(iStr.substr((_local2 * (iRecLenTime + iRecLenAct)), iRecLenTime)); _local3.y = CodeToValue(iStr.substr(((_local2 * (iRecLenAct + iRecLenTime)) + iRecLenTime), iRecLenAct)); iArr.push(_local3); _local2++; }; } public function WriteComplte():void{ WriteAction(actComplete); } public function get Over():Boolean{ return ((iPos >= Length)); } private function ValueToCode(_arg1:int):String{ var _local2:String; var _local3:int; var _local4:int; _local2 = ""; _local3 = (_arg1 % iCount); _local4 = (((_arg1 - _local3) / iCount) % iCount); _local2 = (_local2 + (sAlphabet.charAt(_local4) + sAlphabet.charAt(_local3))); return (_local2); } public function WriteDelHint():void{ WriteAction(actDelHint); } public function ReadFrames():int{ if (((!(this.iArr)) || ((this.iPos >= this.iArr.length)))){ return (-1); }; return (this.iArr[this.iPos].x); } } }//package RES.OBJECTS
Section 105
//OWChoosePlayer (RES.WINDOWS.OWChoosePlayer) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; public class OWChoosePlayer extends ODialog { public var iDelete:OButton; public var iNew:OButton; public var iCancel:OButton; private var iData; public var iListBox:OListBox; public var iAccept:OButton; private var iCurPlayer:String; public function OWChoosePlayer(){ super(Mysteriez2L.OWChoosePlayer); } override public function Init():void{ super.Init(); this.iData = Mysteriez2L.iGAME.prPlayersData; this.iCurPlayer = Mysteriez2L.iGAME.prPlayerName; this.iListBox.SetCurrentElement(Mysteriez2L.iGAME.prPlayerName, Mysteriez2L.iGAME.prPlayerNames); } override public function set prActive(_arg1:Boolean):void{ if (_arg1){ this.iListBox.SetCurrentElement(Mysteriez2L.iGAME.prPlayerName, Mysteriez2L.iGAME.prPlayerNames); }; super.prActive = _arg1; } override public function OnPress(_arg1:Event, _arg2):void{ if (!this.prMouseEnabled){ return; }; if (_arg2 == this.iNew){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miEnterNewName); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iDelete){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miDeletePlayerConfirm); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iCancel){ Mysteriez2L.iGAME.prPlayersData = this.iData; Mysteriez2L.iGAME.prPlayerName = this.iCurPlayer; (this.parent as OWindow).OnPress(null, Mysteriez2L.miMenu); this.prVisible = false; return; }; if (_arg2 == this.iAccept){ if (Mysteriez2L.iMP.isConnected){ Mysteriez2L.iMP.disconnect(); }; (this.parent as OWindow).OnPress(null, Mysteriez2L.miMenu); this.prVisible = false; return; }; if ((((_arg2 == this.iListBox)) && (!((Mysteriez2L.iGAME.prPlayerName == this.iListBox.prCurrentLBParam))))){ Mysteriez2L.iGAME.prPlayerName = this.iListBox.prCurrentLBParam; return; }; } override public function Free():void{ this.iListBox = null; this.iNew = null; this.iDelete = null; this.iAccept = null; this.iCancel = null; super.Free(); } } }//package RES.WINDOWS
Section 106
//OWDemo (RES.WINDOWS.OWDemo) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import flash.geom.*; import ENGINE.INTERFACE.*; import RES.OBJECTS.SENDRECEIVE.*; import RES.OBJECTS.*; import ENGINE.CORE.*; import flash.utils.*; import RES.OBJECTS.UTILS.*; import RES.OBJECTS.OLEVELS.*; public class OWDemo extends OIObject { private const iMap:Array; private const iNumMoveObject:int = 3; private const iSpeed:int = 5; private var iCounterMoveObject:int; private var iDPP:Point; private var iSpeedCursor:Point; private var iTimer:int; private var iIndHint:int; private var iSPC:Point; public var iPlayProgram:Array; private var iDelay:int; private var FindColors2:Array; private var FindColors1:Array; private var iEndMovePos:Point; private var iCursor:OBitmap; private var iLoopOn:Boolean; private var _iReceiver:OReceiver; private var iGame:OGGame; public static const stStart:int = 1; public static const comLoop:int = 6; public static const comClick:int = 4; public static const comMove:int = 2; public static const stMove:int = 2; public static const comWait:int = 3; public static const comEnd:int = 7; public static const stDoubleClick:int = 5; public static const comStart:int = 1; public static const stClick:int = 4; public static const stEndAnimation:int = 6; public static const stWait:int = 3; public static const stNone:int = 0; public static const stEnd:int = 7; public static const comDoubleClick:int = 5; public function OWDemo(_arg1:OReceiver){ iSPC = new Point(150, 150); iPlayProgram = [[comStart, 1500], [comMove, 100, 100], [comWait, 2000], [comClick], [comEnd, 2000]]; iMap = []; FindColors1 = ["0", "30", "60", "90"]; FindColors2 = ["150", "180", "210", "240"]; super([]); } private function NextStep():void{ var _local1:Array; _local1 = iPlayProgram.shift(); if (_local1 == null){ return; }; switch (_local1[0]){ case comStart: iDelay = _local1[1]; this.State = stStart; break; case comMove: iDPP.x = _local1[1]; iDPP.y = _local1[2]; this.State = stMove; break; case comClick: iGame.Field.OnClickToIndex(_local1[1]); this.State = stClick; break; case comDoubleClick: this.State = stDoubleClick; break; case comWait: iDelay = _local1[1]; this.State = stWait; break; case comLoop: iLoopOn = !(iLoopOn); iGame.Field.OnZoom(); NextStep(); break; case comEnd: iDelay = _local1[1]; this.State = stEnd; break; }; } override public function Free():void{ super.Free(); } public function MoveCursor(_arg1:Point):Boolean{ var _local2:Point; var _local3:Point; _local2 = _arg1; _local3 = new Point((_local2.x - iCursor.prX), (_local2.y - iCursor.prY)); iSpeedCursor.x = (_local3.x * Math.abs((iSpeed / _local3.length))); iSpeedCursor.y = (_local3.y * Math.abs((iSpeed / _local3.length))); iCursor.prX = (iCursor.prX + iSpeedCursor.x); iCursor.prY = (iCursor.prY + iSpeedCursor.y); return ((((Math.abs((iCursor.prX - _local2.x)) < 4)) && ((Math.abs((iCursor.prY - _local2.y)) < 4)))); } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); iGame.OnEnterFrame(); switch (this.State){ case stNone: break; case stStart: if ((getTimer() - iTimer) > iDelay){ NextStep(); }; break; case stMove: if (iLoopOn){ iGame.Field.iZoom.Zoom((iCursor.prX * OGlobal.Scale), (iCursor.prY * OGlobal.Scale)); }; if (MoveCursor(iDPP)){ NextStep(); }; break; case stWait: if ((getTimer() - iTimer) > iDelay){ NextStep(); }; break; case stClick: NextStep(); break; case stEndAnimation: if ((getTimer() - iTimer) > iDelay){ NextStep(); }; break; case stEnd: NextStep(); break; }; } override public function set State(_arg1:int):void{ this.iState = _arg1; switch (this.iState){ case stNone: break; case stStart: iLoopOn = false; iTimer = getTimer(); NewField(); iCursor.Pos(iSPC.x, iSPC.y); this.addChild(iCursor); break; case stMove: case stWait: iTimer = getTimer(); break; case stClick: iTimer = getTimer(); break; case stEndAnimation: iTimer = getTimer(); break; case stEnd: break; }; } override public function Init():void{ super.Init(); Mysteriez2L.OGFind; iCursor = ODisplay.OBitmapSpriteFillRect([ODisplay.OBitmapSpriteFillRect, 30, 30, [ODisplay.SpriteLib, Mysteriez2L.OCursor], "GEL", "white", "border", 1, 0, 0, null, 0, true]); iSpeedCursor = new Point(); iEndMovePos = new Point(); iDPP = new Point(); } public function Play(_arg1:Array):void{ iPlayProgram = OLUtils.CloneArray(_arg1); this.State = stStart; } private function NewField():void{ if (iGame){ removeChild(iGame.Field); iGame.Free(); iGame = null; }; iGame = new OGGame(OEmbedsLevels.iDataDemo, 300, null, 300); iGame.Field.iZoom.iIfMouse = false; iGame.Field.mouseEnabled = false; iGame.Field.mouseChildren = false; addChild(iGame.Field); } } }//package RES.WINDOWS
Section 107
//OWDialog (RES.WINDOWS.OWDialog) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; public class OWDialog extends OWindow { public static var stHide:int = 3; public static var stNormal:int = 2; public static var stInvisible:int = 0; public static var stSetActive:int = 6; public static var stSetInactive:int = 5; public static var stInactive:int = 4; public static var stShow:int = 1; public function OWDialog(_arg1:Array){ super(_arg1); } override public function Init():void{ super.Init(); this.PosCenter(); this.State = stShow; } public function set Enabled(_arg1:Boolean):void{ if (_arg1){ this.State = stSetActive; } else { this.State = stSetInactive; }; } override public function OnEnterFrame(_arg1:Event):void{ switch (this.iState){ case stShow: if (this.alpha >= 1){ this.State = stNormal; } else { this.alpha = (this.alpha + 0.05); }; break; case stHide: if (this.alpha <= 0){ this.State = stInvisible; } else { this.alpha = (this.alpha - 0.05); }; break; case stSetInactive: if (this.alpha <= 0.2){ this.State = stInactive; } else { this.alpha = (this.alpha - 0.05); }; break; case stSetActive: if (this.alpha >= 1){ this.State = stNormal; } else { this.alpha = (this.alpha + 0.05); }; break; }; } override public function set State(_arg1:int):void{ this.iState = _arg1; switch (this.iState){ case stInvisible: this.visible = false; break; case stShow: this.visible = true; this.alpha = 0; break; case stNormal: this.Enabled = true; this.mouseEnabled = true; this.visible = true; this.alpha = 1; break; case stInactive: this.Enabled = false; this.mouseEnabled = false; break; }; } } }//package RES.WINDOWS
Section 108
//OWEnterName (RES.WINDOWS.OWEnterName) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; public class OWEnterName extends ODialog { private var iHasCancel:Boolean; public var iCancel:OButton; public var iName:OInput; public var iAccept:OButton; public function OWEnterName(_arg1:Boolean=true){ this.iHasCancel = _arg1; super(Mysteriez2L.OWEnterName); } override public function Init():void{ super.Init(); this.iName.prText = (Mysteriez2L.iGAME.prPlayerName) ? Mysteriez2L.iGAME.prPlayerName : ""; if (!this.iHasCancel){ this.iCancel.visible = false; this.iAccept.prX = 78; }; this.prX = 485; } public function set prName(_arg1:String):void{ this.iName.prText = _arg1; } override public function OnPress(_arg1:Event, _arg2):void{ var _local3:String; if (!this.prMouseEnabled){ return; }; if (_arg2 == this.iCancel){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miChoosePlayer); this.prVisible = false; return; }; if (_arg2 == this.iAccept){ if (this.iName.prText.length > 0){ _local3 = OUtils.ClearString(this.iName.prText.toUpperCase()); if (_local3.length == 0){ this.iName.prText = ""; return; }; Mysteriez2L.iGAME.prPlayerName = _local3; if (this.iHasCancel){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miChoosePlayer); }; this.prVisible = false; }; this.iName.prText = ""; }; } override public function Free():void{ super.Free(); this.iName = null; this.iAccept = null; this.iCancel = null; } public function get prName():String{ return (this.iName.prText); } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); SetNameFocus(); } private function SetNameFocus():void{ if (!this.stage){ return; }; if (this.stage.focus == this.iName.iText){ return; }; this.iName.iText.setSelection(this.iName.iText.length, this.iName.iText.length); this.stage.focus = this.iName.iText; } } }//package RES.WINDOWS
Section 109
//OWGame (RES.WINDOWS.OWGame) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import RES.OBJECTS.SENDRECEIVE.*; import ENGINE.GAME.*; import RES.OBJECTS.OGAME.*; import RES.OBJECTS.*; import RES.OBJECTS.MULTYPLAYER.*; import ENGINE.CORE.*; import flash.utils.*; import flash.net.*; import ENGINE.SMARTFOX.*; import ENGINE.AD.*; import RES.OBJECTS.DIGITS_PANEL.*; import RES.OBJECTS.OGTIMER.*; import RES.OBJECTS.UTILS.*; import RES.OBJECTS.OLEVELS.*; public class OWGame extends OWindow { private var iGame:OGGame; public var iScoreCounter:OCounter; public var iAllSpr:OSprite; private var iITimer:int; private var iNameO:String; private var iInfoP:OWInfoPanel; private var iLevelVal:int; public var iName:OIObject; private var iDigitsPanel:OGDigitsPanel; public var iLevel:OIObject; public var iScoreCounterO:OCounter; private var iOppScore:int; private var iInfo:OIObject; public var iLoop:OCheckBox; private var iOpponentRecord:String; private var iGameMP:OMPGame; public var iLevelCounter:OCounter; private var iLevelData:Array; private var iGTimer:OGTimer; private var iShowTime:int; private var iLoaderLevel:Loader; public var iPause:OCheckBox; private var iOppEndGame:Boolean; private var iDAlpha:Number;// = 0.025 public var iGameName:OBitmap; public var iPanelBorder:OBitmap; private var iMultiPlayer:Boolean; public var iSite:OIObject; private var iInfoGame:OGInfo; public var iMenu:OButton; private var iRecordO:String; private var iReceiver:OReceiver; private var iOPlayer:OLOpponentPlay; private var iCounterLevelFailed:int; public var iInvisibleButton:OButton; private var iRNDIndex:int; private var iSplashObject:OFlairSplash; public var iScore:OIObject; private var iSaveKoef:Number;// = 0.5 private var iRecO:ORecord; public var iScoreO:OIObject; public var iExcellent:OIObject; private var iZoom:OGZoom; public var iGameNamePlus:OIObject; public var iBorder:OBitmap; public static const stStart:int = 4; public static const stLevelNotComplete:int = 8; public static const stGameFieldHide:int = 11; public static const stPause:int = 10; public static const stShowResults:int = 9; public static const stLoadLevel:int = 3; public static const stGoToPlay:int = 1; public static const stConnection:int = 2; public static const stLoadLevelData:int = 12; public static const stShowGoal:int = 5; public static const stPlay:int = 6; public static const stLevelComplete:int = 7; public static const stShow:int = 0; public function OWGame(){ iDAlpha = 0.025; iSaveKoef = 0.5; super(Mysteriez2L.OWGame, ODialog.iDefAnimators); iReceiver = new OReceiver(); iReceiver.AddListener(Command.ChangeTime, ChangeTime); iReceiver.AddListener(Command.DecreaseTime, DecreaseTime); iReceiver.AddListener(Command.TimeEnd, TimeEnd); iReceiver.AddListener(Command.AddScoreSound, AddScoreSound); iReceiver.AddListener(Command.CurrentObjectSound, CurrentObjectSound); iReceiver.AddListener(Command.WrongObjectSound, WrongObjectSound); iReceiver.AddListener(Command.RemoveObject, RemoveObject); } private function get prGameIndex():int{ return (((Mysteriez2L.GameType * 10) + iRNDIndex)); } private function AddAllSpr():void{ this.iAllSpr = new OSprite(); this.iAllSpr.graphics.beginFill(0); this.iAllSpr.graphics.drawRect(0, 0, 800, 600); this.iAllSpr.graphics.endFill(); this.iAllSpr.alpha = 0; this.iAllSpr.height = 600; this.iAllSpr.width = 800; this.iAllSpr.hitArea = this.iAllSpr; this.addChild(this.iAllSpr); this.addEventListener(MouseEvent.CLICK, OnClick); OGlobal.prStage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); } private function Path(_arg1:String):String{ return (_arg1.substring(0, _arg1.lastIndexOf("/"))); } private function SetAlphaGame(_arg1:Number):void{ if (iGame){ iGame.Field.alpha = _arg1; }; if (iGameName){ iGameName.alpha = _arg1; }; if (iSite){ iSite.alpha = _arg1; }; if (iMenu){ iMenu.alpha = _arg1; }; if (iLevel){ iLevel.alpha = _arg1; }; if (iLevelCounter){ iLevelCounter.alpha = _arg1; }; if (iScore){ iScore.alpha = _arg1; }; if (iScoreCounter){ iScoreCounter.alpha = _arg1; }; if (iInfoP){ iInfoP.alpha = _arg1; }; if (iPause){ iPause.alpha = _arg1; }; if (iLoop){ iLoop.alpha = _arg1; }; if (iName){ iName.alpha = _arg1; }; if (iPanelBorder){ iPanelBorder.alpha = _arg1; }; if (iGTimer){ iGTimer.alpha = _arg1; }; } private function SplashInfoMessage():Boolean{ var _local1:Boolean; _local1 = false; if (this.iInfo.prAnimation){ return (false); }; this.iInfo.alpha = (this.iInfo.alpha + this.iDAlpha); if ((((this.iDAlpha > 0)) && ((this.iInfo.alpha >= 1)))){ this.iInfo.alpha = 1; this.iDAlpha = (this.iDAlpha * -1); }; if ((((this.iDAlpha < 0)) && ((this.iInfo.alpha <= 0)))){ this.iInfo.alpha = 0; this.iDAlpha = (this.iDAlpha * -1); _local1 = true; }; return (_local1); } override public function Free():void{ super.Free(); if (iOPlayer){ iOPlayer.Free(); }; } private function DecreaseTime(_arg1:Array):void{ if (iInfoGame){ iInfoGame.AddInfo(OGInfo.infTimeDec); }; iGTimer.FonVisible = true; iShowTime = getTimer(); } private function TimeEnd(_arg1:Array):void{ if (iGTimer.State != OGTimer.stSplashBorder){ iGTimer.State = OGTimer.stSplashBorder; }; } private function OnKeyDown(_arg1:KeyboardEvent):void{ switch (this.State){ case stLevelComplete: case stLevelNotComplete: State = stGameFieldHide; if (contains(iAllSpr)){ removeChild(iAllSpr); }; OGlobal.prStage.removeEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); break; }; } private function ChangeTime(_arg1:Array):void{ iGTimer.ChangeTime(_arg1[0]); } private function OnClick(_arg1:MouseEvent):void{ switch (this.State){ case stPause: Pause(false); break; case stLevelComplete: case stLevelNotComplete: State = stGameFieldHide; if (contains(iAllSpr)){ removeChild(iAllSpr); }; this.removeEventListener(MouseEvent.CLICK, OnClick); break; case stShowGoal: iInfo.removeEventListener(MouseEvent.CLICK, OnClick); iInfo.buttonMode = false; this.AddInfo(null, true); State = stPlay; break; }; } private function AddInfo(_arg1:OIObject, _arg2:Boolean=true, _arg3:Boolean=false):void{ if (this.iInfo){ this.removeChild(this.iInfo); this.iInfo.Free(); this.iInfo = null; }; if (_arg1){ this.iInfo = _arg1; this.iInfo.Pos(0, 0); this.iInfo.Pos(0, (300 - (this.iInfo.prHeight / 2))); if (_arg3){ this.iInfo.Pos(-100, (300 - (this.iInfo.prHeight / 2))); }; if (_arg2){ this.iInfo.SetVisible(false); this.iInfo.prVisible = true; }; this.addChild(this.iInfo); }; } private function PlayOpponent():void{ if (((iMultiPlayer) && (!(iOppEndGame)))){ if (((!((iGameMP.State == OMPGame.stLevelComplite))) && (!((iGameMP.State == OMPGame.stLevelFailed))))){ iScoreCounterO.prValue = iGameMP.Score; }; if ((((iGameMP.State == OMPGame.stLevelComplite)) || ((iGameMP.State == OMPGame.stLevelFailed)))){ iInfoP.prScore = iGameMP.Score; if (iGameMP.State == OMPGame.stLevelComplite){ iInfoP.State = OWInfoPanel.stCompleteLevel; } else { iInfoP.State = OWInfoPanel.stFailedLevel; }; SetVisibleGameOpponent(false); iOppEndGame = true; }; }; } override public function OnEnterFrame(_arg1:Event):void{ var _local2:Number; var _local3:int; var _local4:Boolean; var _local5:Array; switch (this.iState){ case stShow: if (!this.prAnimation){ if (iLevelVal > 0){ this.State = stLoadLevelData; } else { this.State = stGoToPlay; }; }; break; case stGoToPlay: if (!this.iInfo.prVisible){ this.AddInfo(null); this.State = stLoadLevelData; }; break; case stLoadLevelData: _local2 = (iLoaderLevel.contentLoaderInfo.bytesLoaded / iLoaderLevel.contentLoaderInfo.bytesTotal); OWLoadProgress(iInfo).iProgress.prValue = (_local2 * 100); SplashInfoMessage(); break; case stConnection: _local3 = getTimer(); _local4 = this.SplashInfoMessage(); if (((((_local3 - this.iITimer) > 5000)) && (_local4))){ this.State = stStart; }; if (((((_local3 - this.iITimer) > 2000)) && ((Mysteriez2L.iMP.State == OMultiplayer.stInZone)))){ this.State = stLoadLevel; }; break; case stLoadLevel: _local4 = this.SplashInfoMessage(); iMultiPlayer = false; iRecordO = null; iNameO = null; if (((_local4) && (Mysteriez2L.iMP.prOpponentTurn))){ _local5 = Mysteriez2L.iMP.prOpponentTurn.split(","); if (_local5.length > 2){ this.State = stStart; break; }; if ((((((_local5[0] == "none")) && ((_local5[1] == "none")))) || ((((_local5[0] == "")) || ((_local5[1] == "")))))){ iMultiPlayer = false; iRecordO = null; iNameO = null; } else { iMultiPlayer = true; iRecordO = _local5[1]; iNameO = _local5[0]; }; this.State = stStart; break; }; if ((getTimer() - iITimer) > 10000){ State = stStart; }; break; case stStart: if ((getTimer() - iITimer) > 2000){ this.State = stShowGoal; }; break; case stShowGoal: PlayOpponent(); break; case stPlay: iScoreCounter.prValue = iGame.Score; iGame.OnEnterFrame(); if (iGTimer.FonVisible){ if ((getTimer() - iShowTime) > 1000){ iGTimer.FonVisible = false; }; }; if (iGame.State == OGGame.stLevelComplite){ this.State = stLevelComplete; }; if (iGame.State == OGGame.stLevelFailed){ State = stLevelNotComplete; }; PlayOpponent(); break; case stPause: PlayOpponent(); SplashInfoMessage(); break; case stLevelComplete: case stLevelNotComplete: iGame.OnEnterFrame(); iScoreCounter.prValue = iGame.Score; PlayOpponent(); break; case stGameFieldHide: this.State = stShowResults; break; case stShowResults: if (((!(this.iInfo.prVisible)) && (!(this.iInfo.prAnimation)))){ this.State = stLoadLevelData; }; break; }; super.OnEnterFrame(_arg1); } override public function set State(_arg1:int):void{ var _local2:URLRequest; this.iState = _arg1; switch (this.iState){ case stShow: iLevelVal = Mysteriez2L.iGAME.prLevel; break; case stGoToPlay: this.AddInfo(new OWInstruction()); break; case stLoadLevelData: if (OGBitmapFactory.PlayBook.prVisible == false){ OGBitmapFactory.PlayBook.prVisible = true; }; iLevelVal = Mysteriez2L.iGAME.prLevel; if (iLevelVal == 0){ iLevelData = OEmbedsLevels.iDataLevel1[0]; this.State = stConnection; return; }; iITimer = 0; iLoaderLevel = new Loader(); this.AddInfo(new OWLoadProgress(), true); _local2 = new URLRequest(((Path(this.loaderInfo.url) + "/") + OLLevels._LevelList(iLevelVal)[0])); iLoaderLevel.load(_local2); iLoaderLevel.contentLoaderInfo.addEventListener(Event.COMPLETE, OnLoadComplete); iLoaderLevel.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, OnProgress); break; case stConnection: this.AddBanner(true, 600, 260); Mysteriez2L.iMP.ClearOpponentTurn(true); this.iITimer = getTimer(); this.AddInfo(Mysteriez2S.ColorHeaderM(Mysteriez2L.OWGameConnection), true); if (Mysteriez2L.iMP.State == OMultiplayer.stInZone){ this.State = stLoadLevel; } else { if (Mysteriez2L.iMP.State != OMultiplayer.stConnection){ Mysteriez2L.iMP.State = OMultiplayer.stNone; Mysteriez2L.iMP.Init(Mysteriez2L.sDomain, Mysteriez2L.sServer, Mysteriez2L.sZone, Mysteriez2L.sXTName, Mysteriez2L.iGAME.prPlayerName); }; }; break; case stLoadLevel: Mysteriez2L.iMP.ClearOpponentTurn(true); Mysteriez2L.iMP.Turn(["rdl", (Mysteriez2L.iGAME.prLevel % OLLevels.LevelCount), int((Mysteriez2L.iGAME.prLevel / OLLevels.LevelCount)), Mysteriez2L.iGAME.prPlayerName]); break; case stStart: iLevelCounter.prValue = (iLevelVal + 1); if (!this.iMultiPlayer){ Mysteriez2L.OWGameNewLevelWithNoOpponent[0][4] = ((Mysteriez2L.strLevel + " # ") + (iLevelVal + 1).toString()); this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameNewLevelWithHoutOpponent), true); if (Mysteriez2L.iMP.State == OMultiplayer.stInZone){ iInfoP.State = OWInfoPanel.stUserNotFound; } else { iInfoP.State = OWInfoPanel.stConnect; }; } else { Mysteriez2L.OWGameNewLevel[0][4] = ((Mysteriez2L.strLevel + " # ") + (iLevelVal + 1).toString()); Mysteriez2L.OWGameNewLevel[2][4] = this.iNameO; this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameNewLevelWithOpponent), true); iInfoP.prOpponent = this.iNameO; iInfoP.State = OWInfoPanel.stOpponent; }; iITimer = getTimer(); break; case stShowGoal: this.AddBanner(false); NewGame(); if (iMultiPlayer){ NewGameOpponent(); SetVisibleGameOpponent(true); }; iGame.Field.mouseEnabled = false; iGame.Field.mouseChildren = false; SetVisibleGame(true); iGame.Field.alpha = 0.1; this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameGoal)); iInfo.addEventListener(MouseEvent.CLICK, OnClick); this.iInfo.buttonMode = true; iITimer = getTimer(); iPause.mouseEnabled = false; iPause.mouseChildren = false; iLoop.mouseEnabled = false; iLoop.mouseChildren = false; break; case stPlay: iGame.Field.alpha = 1; iGame.Field.mouseEnabled = true; iGame.Field.mouseChildren = true; iGame.Field.OnZoom(); OSound.PlaySound(Mysteriez2L.OSBubbleBang07); iITimer = getTimer(); iPause.mouseEnabled = true; iPause.mouseChildren = true; iLoop.mouseEnabled = true; iLoop.mouseChildren = true; break; case stPause: this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameP), true); iInfo.addEventListener(MouseEvent.CLICK, OnClick); iInfo.buttonMode = true; iGame.Field.prVisible = false; break; case stLevelComplete: iOppScore = (((iMultiPlayer) && (!((iGameMP.State == OMPGame.stLevelComplite))))) ? iScoreCounterO.prValue : 0; Mysteriez2L.iGAME.Write(OGame.catTmp, "Score", iScoreCounter.prValue); Mysteriez2L.iGAME.Write(OGame.catTmp, "TimeBonus", iGame.TimeBonusScore); Mysteriez2L.iGAME.Write(OGame.catTmp, "Bonus", iOppScore); Mysteriez2L.iGAME.Write(OGame.catTmp, "Result", ((iScoreCounter.prValue + iOppScore) + iGame.TimeBonusScore)); Mysteriez2L.OWResults[6][6] = Mysteriez2L.strNextLevel; Mysteriez2L.iMP.Turn(["wrl", (Mysteriez2L.iGAME.prLevel % OLLevels.LevelCount), int((Mysteriez2L.iGAME.prLevel / OLLevels.LevelCount)), Mysteriez2L.iGAME.prPlayerName, iGame.prRecord]); iITimer = getTimer(); this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameCL), true); Mysteriez2L.iGAME.NextLevel(); AddAllSpr(); OSound.PlaySound(Mysteriez2L.OSBubbleBang03); iGame.Field.alpha = 0.3; break; case stLevelNotComplete: Mysteriez2L.iGAME.Write(OGame.catTmp, "Score", iScoreCounter.prValue); Mysteriez2L.iGAME.Write(OGame.catTmp, "TimeBonus", 0); Mysteriez2L.iGAME.Write(OGame.catTmp, "Bonus", 0); Mysteriez2L.iGAME.Write(OGame.catTmp, "Result", iScoreCounter.prValue); if (iGame.Score > 0){ Mysteriez2L.iMP.Turn(["wrl", (Mysteriez2L.iGAME.prLevel % OLLevels.LevelCount), int((Mysteriez2L.iGAME.prLevel / OLLevels.LevelCount)), Mysteriez2L.iGAME.prPlayerName, iGame.prRecord]); }; iITimer = getTimer(); this.AddInfo(OInterface.OIObjectMake(Mysteriez2L.OWGameNCL), true); Mysteriez2L.iGAME.NextLevel(); AddAllSpr(); OSound.PlaySound(Mysteriez2L.OSBubbleBang04); iGame.Field.alpha = 0.3; break; case stGameFieldHide: SetVisibleGame(false); if (iMultiPlayer){ SetVisibleGameOpponent(false); }; this.iInfo.prVisible = false; break; case stShowResults: if (iGame){ removeChild(iGame.Field); iGame.Free(); iGame = null; iInfoGame = null; }; if (iDigitsPanel){ removeChild(iDigitsPanel); iDigitsPanel.Free(); iDigitsPanel = null; }; if (iGTimer){ removeChild(iGTimer); iGTimer.Free(); iGTimer = null; }; if (iGameMP){ removeChild(iGameMP); iOPlayer.Free(); iOPlayer = null; iGameMP.Free(); iGameMP = null; }; OGBitmapFactory.PlayBook.prVisible = false; this.AddInfo(new OWResults()); break; }; } private function RemoveObject(_arg1:Array):void{ if (iDigitsPanel){ iDigitsPanel.RemoveDigit(_arg1[0]); }; } private function AddScoreSound(_arg1:Array):void{ OSound.PlaySound(Mysteriez2L.OSBubbleBang05); } private function AddBanner(_arg1:Boolean, _arg2:int=0, _arg3:int=0):void{ if (Mysteriez2L.sDebug == true){ return; }; if (_arg1){ OAdBanners.AddTBanner(this, 0, 0, _arg2, _arg3); OAdBanners.AddBBanner(this, 0, (600 - _arg3), _arg2, _arg3); } else { OAdBanners.RemoveTBanner(this); OAdBanners.RemoveBBanner(this); }; } override public function Init():void{ super.Init(); this.iInfoP = new OWInfoPanel(); this.iInfoP.Pos(600, 85); this.iInfoP.prVisible = false; this.addChild(this.iInfoP); this.State = stShow; this.iRNDIndex = (Math.random() * 10); CPrototypeFactory._createParticleBitmaps(7); iCounterLevelFailed = 0; this.iSite.addEventListener(MouseEvent.CLICK, OnClickSite); OGlobal.prStage.addEventListener(Event.DEACTIVATE, OnDeactivate); iSite.buttonMode = true; OGBitmapFactory.PlayBook.prVisible = true; iSplashObject = new OFlairSplash(1, -0.05, 0.1, 1); } private function WrongObjectSound(_arg1:Array):void{ OSound.PlaySound(Mysteriez2L.OSBubbleBang02); } private function OnProgress(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = (_arg1.bytesLoaded / _arg1.bytesTotal); OWLoadProgress(iInfo).iProgress.prValue = (_local2 * 100); } private function NewGameOpponent():void{ iGameMP = new OMPGame(iLevelData[2]); iOPlayer = new OLOpponentPlay(iGameMP, iRecordO); iGameMP.Pos(611, 100); addChild(iGameMP); iOppEndGame = false; } override public function set prActive(_arg1:Boolean):void{ if (_arg1){ this.State = stShow; }; super.prActive = _arg1; } private function SetVisibleGameOpponent(_arg1:Boolean):void{ if (iScoreO){ iScoreO.prVisible = _arg1; }; if (iScoreCounterO){ iScoreCounterO.prVisible = _arg1; }; if (iGameMP){ iGameMP.prVisible = _arg1; }; } private function get prLevelIndex():int{ return ((((iLevelVal + 1) * 10) + iRNDIndex)); } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iMenu){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miMenu); this.SetVisible(false); OGBitmapFactory.PlayBook.prVisible = false; return; }; if (_arg2 == this.iLoop){ iGame.Field.OnZoom(); OSound.PlaySound(Mysteriez2L.OSBubbleBang06); }; if (_arg2 == this.iPause){ Pause(!(iPause.Checked)); OSound.PlaySound(Mysteriez2L.OSBubbleBang06); }; } private function NewGame():void{ var _local1:int; var _local2:int; var _local3:int; iScoreCounter.prValue = 0; iScoreCounterO.prValue = 0; iGTimer = new OGTimer(); iGTimer.Pos(620, 70); iShowTime = 0; addChild(iGTimer); iDigitsPanel = new OGDigitsPanel(iLevelData[2], false); iDigitsPanel.Pos(615, 310); addChild(iDigitsPanel); _local1 = (iLevelVal / OLLevels.LevelCount); _local2 = OLLevels._LevelList(iLevelVal)[1]; _local3 = (_local2 - (_local1 * OLLevels.iTimeLevelDecrement)); if (_local3 < OLLevels.iTimeLevelDecrement){ _local3 = OLLevels.iTimeLevelDecrement; }; iGame = new OGGame(iLevelData, _local3, iReceiver, 550); iGame.Field.Pos((((OGGame.SizeGame - 550) / 2) + 15), (((OGGame.SizeGame - 550) / 2) - 10)); addChild(iGame.Field); iInfoGame = new OGInfo(); iGame.Field.addChildAt(iInfoGame, 2); iGame.Field.iCheckZoom = iLoop; } private function get prSeed():int{ return ((29989 + (7 * (((Mysteriez2L.iGAME.prLevel + 1) * 10) + iRNDIndex)))); } private function OnClickSite(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(Mysteriez2L.strConnect2URL)); } private function OnDeactivate(_arg1:Event):void{ Pause(true); } private function Pause(_arg1:Boolean):void{ if (_arg1){ if (State == stPlay){ State = stPause; iPause.Checked = false; }; } else { if (State == stPause){ iState = stPlay; iInfo.removeEventListener(MouseEvent.CLICK, OnClick); iInfo.buttonMode = false; this.AddInfo(null, true); iGame.Field.prVisible = true; iPause.Checked = true; }; }; } private function SetVisibleGame(_arg1:Boolean):void{ if (iGame){ iGame.prVisible = _arg1; }; if (iGameName){ iGameName.prVisible = _arg1; }; if (iGameNamePlus){ iGameNamePlus.prVisible = _arg1; }; if (iSite){ iSite.prVisible = _arg1; }; if (iMenu){ iMenu.prVisible = _arg1; }; if (iLevel){ iLevel.prVisible = _arg1; }; if (iLevelCounter){ iLevelCounter.prVisible = _arg1; }; if (iScore){ iScore.prVisible = _arg1; }; if (iScoreCounter){ iScoreCounter.prVisible = _arg1; }; if (iInfoP){ iInfoP.prVisible = _arg1; }; if (iPause){ iPause.prVisible = _arg1; }; if (iLoop){ iLoop.prVisible = _arg1; }; if (iName){ iName.prVisible = _arg1; }; if (iPanelBorder){ iPanelBorder.prVisible = _arg1; }; if (iGTimer){ iGTimer.prVisible = _arg1; }; if (iInfoGame){ iInfoGame.prVisible = _arg1; }; if (iBorder){ iBorder.prVisible = _arg1; }; if (iDigitsPanel){ iDigitsPanel.prVisible = _arg1; }; } private function OnLoadComplete(_arg1:Event):void{ iLevelData = Object(iLoaderLevel.content).getLevelInfo(); this.State = stConnection; } private function ScoreCalc(_arg1:Number):int{ return (_arg1); } private function CurrentObjectSound(_arg1:Array):void{ OSound.PlaySound(Mysteriez2L.OSBubbleBang01); } } }//package RES.WINDOWS
Section 110
//OWHighScores (RES.WINDOWS.OWHighScores) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.GAME.*; public class OWHighScores extends ODialog { public var iClose:OButton; public var iPublish:OButton; public var iClear:OButton; public var iGlobal:OButton; public var iType:OListBox; public var iTable:OTab; public function OWHighScores(){ var _local1:OScoreParams; var _local2:int; _local2 = 0; while (_local2 < 5) { _local1 = Mysteriez2L.iGAME.GetLocalScores(0, _local2); Mysteriez2L.OWHighScoreLocalM[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : ""; Mysteriez2L.OWHighScoreLocalM[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : ""; _local1 = Mysteriez2L.iGAME.GetPersonalScores(0, _local2); Mysteriez2L.OWHighScorePersonalM[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : ""; Mysteriez2L.OWHighScorePersonalM[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : ""; _local2++; }; super(Mysteriez2L.OWHighScores); } override public function set prActive(_arg1:Boolean):void{ var _local2:OScoreParams; if (_arg1){ _local2 = Mysteriez2L.iGAME.GetLocalScores(0, 0); if (!_local2){ (iTable.getChildAt(0) as OSprite).Free(); }; _local2 = Mysteriez2L.iGAME.GetPersonalScores(0, 0); if (!_local2){ (iTable.getChildAt(1) as OSprite).Free(); }; }; super.prActive = _arg1; } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iClose){ this.prVisible = false; return; }; if (_arg2 == this.iType){ this.iTable.prValue = this.iType.prCurrentInd; return; }; if (_arg2 == this.iClear){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miDeleteScoresConfirm); this.prActive = false; this.prVisible = false; return; }; (this.parent as OWindow).OnPress(null, Mysteriez2L.miCommingSoon); this.prActive = false; } override public function Free():void{ this.iType = null; this.iTable = null; this.iGlobal = null; this.iPublish = null; this.iClear = null; this.iClose = null; super.Free(); } } }//package RES.WINDOWS
Section 111
//OWInfoPanel (RES.WINDOWS.OWInfoPanel) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import RES.OBJECTS.*; import flash.utils.*; import flash.net.*; public class OWInfoPanel extends OIObject { private var iTimer:int; private var iTDelta:int; private var iMode:int; private var iInfo:OInfoObject; private var iScore:int; private var iOpponent:String; public static const stFailedLevel:int = 7; public static const stConnect:int = 1; public static const stEndLevel:int = 5; public static const stCompleteLevel:int = 6; public static const stInGame:int = 3; public static const stNone:int = 0; public static const stUserNotFound:int = 2; public static const stOpponent:int = 4; public function OWInfoPanel(){ super(null, OInterface.iDefAnimators); } public function set prOpponent(_arg1:String):void{ this.iOpponent = _arg1; } private function ShowConnect():void{ var _local1:int; _local1 = Mysteriez2L.OWInfoColors[((this.iMode + 2) % Mysteriez2L.OWInfoColors.length)]; switch ((this.iMode % 3)){ case 0: Mysteriez2L.OWInfoPConnect[0][4] = Mysteriez2L.strConnect1.toLowerCase(); Mysteriez2L.OWInfoPConnect[0][6] = 40; Mysteriez2L.OWInfoPConnect[1][6] = Mysteriez2L.strPlayOnline1; break; case 1: Mysteriez2L.OWInfoPConnect[0][4] = Mysteriez2L.strConnect2.toLowerCase(); Mysteriez2L.OWInfoPConnect[0][6] = 40; Mysteriez2L.OWInfoPConnect[1][6] = Mysteriez2L.strMoreGames1; break; case 2: Mysteriez2L.OWInfoPConnect[0][4] = Mysteriez2L.strConnect3.toLowerCase(); Mysteriez2L.OWInfoPConnect[0][6] = 40; Mysteriez2L.OWInfoPConnect[1][6] = Mysteriez2L.strSendMail; break; }; this.InitObject(Mysteriez2L.OWInfoPConnect); } private function ShowUserNotFound():void{ var _local1:String; var _local2:int; var _local3:Array; var _local4:Array; _local1 = Mysteriez2L.iMP.prOpponentTurn; Mysteriez2L.iMP.ClearOpponentTurn(true); Mysteriez2L.iMP.Turn(["rdr"]); if (_local1){ _local3 = _local1.split(/,/); if ((((((_local3.length == 2)) || ((_local3[1] == "")))) || (isNaN(_local3[2])))){ return; }; }; iTDelta = 30000; _local2 = Mysteriez2L.OWInfoColors[Math.round((Math.random() * (Mysteriez2L.OWInfoColors.length - 1)))]; switch ((this.iMode % 5)){ case 0: Mysteriez2L.OWInfoPUserNotFound[0][4] = Mysteriez2L.iMP.prUsersCount.toString().toLowerCase(); Mysteriez2L.OWInfoPUserNotFound[0][6] = 40; Mysteriez2L.OWInfoPUserNotFound[1][6] = (Mysteriez2L.OWInfoPUserNotFound[0][6] + 50); Mysteriez2L.OWInfoPUserNotFound[1][4] = Mysteriez2L.strPlayersOnline1.toLowerCase(); break; default: if (!_local1){ return; }; _local4 = _local1.split(/,/); Mysteriez2L.OWInfoPUserNotFound[0][4] = ((int(_local4[0]) + 1).toString() + Mysteriez2L.strPlace).toLowerCase(); Mysteriez2L.OWInfoPUserNotFound[0][6] = 40; Mysteriez2L.OWInfoPUserNotFound[1][6] = (Mysteriez2L.OWInfoPUserNotFound[0][6] + 50); Mysteriez2L.OWInfoPUserNotFound[1][4] = ((_local4[1].toString() + Mysteriez2L.strHasReiting) + _local4[2].toString()).toLowerCase(); break; }; this.InitObject(Mysteriez2L.OWInfoPUserNotFound); } override public function Init():void{ super.Init(); } public function set prScore(_arg1:int):void{ this.iScore = _arg1; } override public function OnPress(_arg1:Event, _arg2):void{ var _local3:String; var _local4:URLRequest; switch ((this.iMode % 3)){ case 0: _local3 = Mysteriez2L.strConnect1URL; break; case 1: _local3 = Mysteriez2L.strConnect2URL; break; case 2: _local3 = Mysteriez2L.strConnect3URL; break; }; _local4 = new URLRequest(_local3); navigateToURL(_local4); } override public function Free():void{ this.iInfo = null; super.Free(); } private function InitObject(_arg1:Array):void{ if (this.iInfo){ this.removeChild(this.iInfo); this.iInfo.Free(); this.iInfo = null; }; if (!_arg1){ return; }; this.iInfo = new OInfoObject(_arg1, OInterface.iDefSlowAnimators); this.addChild(this.iInfo); this.iInfo.SetVisible(false); this.iInfo.prVisible = true; } override public function OnEnterFrame(_arg1:Event):void{ var _local2:int; super.OnEnterFrame(_arg1); switch (this.iState){ case stConnect: _local2 = getTimer(); if ((_local2 - this.iTimer) >= 30000){ this.iMode++; this.ShowConnect(); this.iTimer = _local2; }; break; case stUserNotFound: _local2 = getTimer(); if ((_local2 - this.iTimer) >= iTDelta){ this.iMode++; this.ShowUserNotFound(); this.iTimer = _local2; }; break; }; } override public function set State(_arg1:int):void{ this.iState = _arg1; switch (this.iState){ case stNone: this.InitObject(null); break; case stConnect: this.iMode = 0; this.ShowConnect(); this.iTimer = getTimer(); break; case stUserNotFound: this.iMode = 0; iTDelta = 1000; this.ShowUserNotFound(); this.iTimer = getTimer(); break; case stInGame: Mysteriez2L.OWInfoP[0][2] = 20; Mysteriez2L.OWInfoP[0][3] = Mysteriez2L.OWInfoColors[0]; Mysteriez2L.OWInfoP[0][6] = 110; Mysteriez2L.OWInfoP[0][4] = (((((Mysteriez2L.strOpponent1 + "\n") + this.iOpponent) + "\n") + Mysteriez2L.strOpponent2) as String).toLowerCase(); this.InitObject(Mysteriez2L.OWInfoP); this.iTimer = getTimer(); break; case stOpponent: Mysteriez2L.OWInfoPPlayer[0][4] = this.iOpponent.toLowerCase(); this.InitObject(Mysteriez2L.OWInfoPPlayer); break; case stEndLevel: Mysteriez2L.OWInfoP[0][2] = 20; Mysteriez2L.OWInfoP[0][6] = 35; Mysteriez2L.OWInfoP[0][4] = (((this.iOpponent + Mysteriez2L.strLevelScore) + this.iScore) as String).toLowerCase(); this.InitObject(Mysteriez2L.OWInfoP); this.iTimer = getTimer(); break; case stCompleteLevel: Mysteriez2L.OWInfoP[0][2] = 20; Mysteriez2L.OWInfoP[0][6] = 35; Mysteriez2L.OWInfoP[0][4] = (((this.iOpponent + Mysteriez2L.strCompleteLevel) + this.iScore) as String).toLowerCase(); this.InitObject(Mysteriez2L.OWInfoP); this.iTimer = getTimer(); break; case stFailedLevel: Mysteriez2L.OWInfoP[0][2] = 20; Mysteriez2L.OWInfoP[0][6] = 35; Mysteriez2L.OWInfoP[0][4] = (((this.iOpponent + Mysteriez2L.strFailedLevel) + this.iScore) as String).toLowerCase(); this.InitObject(Mysteriez2L.OWInfoP); this.iTimer = getTimer(); break; }; } } }//package RES.WINDOWS
Section 112
//OWInstruction (RES.WINDOWS.OWInstruction) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import RES.OBJECTS.SENDRECEIVE.*; import RES.OBJECTS.OGAME.*; import RES.OBJECTS.*; public class OWInstruction extends OWindow { private const iTestPlayProgram2:Array; private const iTestPlayProgram3:Array; private const iTestPlayProgram1:Array; private var list:Array; public var iBorder:OBitmap; private var iDemo:OWDemo; public var iGraphics:OBitmap; private var iIsOWGame:Boolean; public var iClose:OButton; private var iTimer:int; private var iReceiver:OReceiver; public var iInfoText:OIObject; private var iPlayIndex:int;// = 0 private static const stNone:int = 0; private static const stPlay:int = 1; public function OWInstruction(){ iPlayIndex = 0; iTestPlayProgram3 = [[OWDemo.comStart], [OWDemo.comLoop], [OWDemo.comMove, 40, 150], [OWDemo.comClick, 3], [OWDemo.comWait, 1000], [OWDemo.comLoop], [OWDemo.comMove, 170, 150], [OWDemo.comClick, 0], [OWDemo.comWait, 1000], [OWDemo.comMove, 100, 70], [OWDemo.comClick, 4], [OWDemo.comWait, 1000], [OWDemo.comMove, 200, 30], [OWDemo.comClick, 2], [OWDemo.comWait, 1000], [OWDemo.comMove, 170, 230], [OWDemo.comClick, 1], [OWDemo.comWait, 1000], [OWDemo.comEnd]]; iTestPlayProgram1 = [[OWDemo.comStart], [OWDemo.comLoop], [OWDemo.comMove, 40, 150], [OWDemo.comClick, 3], [OWDemo.comWait, 1000], [OWDemo.comMove, 200, 30], [OWDemo.comClick, 2], [OWDemo.comWait, 1000], [OWDemo.comMove, 170, 150], [OWDemo.comClick, 0], [OWDemo.comWait, 1000], [OWDemo.comEnd]]; iTestPlayProgram2 = [[OWDemo.comStart], [OWDemo.comWait, 1000], [OWDemo.comLoop], [OWDemo.comMove, 170, 150], [OWDemo.comClick, 0], [OWDemo.comLoop], [OWDemo.comWait, 1000], [OWDemo.comMove, 100, 70], [OWDemo.comClick, 4], [OWDemo.comLoop], [OWDemo.comWait, 1000], [OWDemo.comMove, 200, 30], [OWDemo.comClick, 2], [OWDemo.comLoop], [OWDemo.comWait, 1000], [OWDemo.comMove, 170, 230], [OWDemo.comClick, 1], [OWDemo.comWait, 1000], [OWDemo.comEnd]]; list = [iTestPlayProgram1, iTestPlayProgram2, iTestPlayProgram3]; super(Mysteriez2L.OWInstructions); } override public function Init():void{ var _local1:OBitmap; CPrototypeFactory._createParticleBitmaps(7); super.Init(); iReceiver = new OReceiver(); iDemo = new OWDemo(iReceiver); iDemo.Pos(150, 97); addChild(iDemo); this.iBorder.prX = (iDemo.prX - 10); this.iBorder.prY = (iDemo.prY - 10); this.iGraphics.prX = (iBorder.prX - iGraphics.prWidth); this.iGraphics.prY = (iBorder.prY + ((iBorder.prHeight - iGraphics.prHeight) / 2)); _local1 = new OBitmap(); _local1.CopyFrom(this.iGraphics); _local1.prX = (((iGraphics.prX + iBorder.prWidth) + (2 * iGraphics.prWidth)) - 2); _local1.prY = iGraphics.prY; _local1.scaleX = -1; this.addChild(_local1); iPlayIndex = 0; iIsOWGame = true; if (OGBitmapFactory.PlayBook.prVisible == false){ OGBitmapFactory.PlayBook.prVisible = true; iIsOWGame = false; }; State = stNone; } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iClose){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miLastWindow); this.prVisible = false; }; } private function ChangeText(_arg1:Array):void{ Mysteriez2L.OWInstructionsInfo[0][0][4] = Mysteriez2L.OWInstructionsText[iPlayIndex]; Mysteriez2L.OWInstructions[2][1] = Mysteriez2L.OWInstructionsInfo[0]; if (iInfoText){ this.removeChild(iInfoText); iInfoText = Mysteriez2L.OWInstructions[2][0](Mysteriez2L.OWInstructions[2]); this.addChild(iInfoText); }; iPlayIndex++; if (iPlayIndex > (Mysteriez2L.OWInstructionsText.length - 1)){ iPlayIndex = 0; }; } override public function Free():void{ super.Free(); if (iDemo){ iDemo.Free(); iDemo = null; }; if (!iIsOWGame){ OGBitmapFactory.PlayBook.prVisible = false; }; } override public function OnEnterFrame(_arg1:Event):void{ switch (State){ case stPlay: if (iDemo.State == OWDemo.stEnd){ State = stPlay; }; break; }; } override public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stNone: State = stPlay; break; case stPlay: if (iInfoText){ this.removeChild(iInfoText); }; iInfoText = OInterface.OIObjectMake([null, Mysteriez2L.OWInstructionsInfo[iPlayIndex], null, 25, 440, null, 0, true]); this.addChild(iInfoText); iDemo.Play(list[iPlayIndex]); iPlayIndex++; if (iPlayIndex > 2){ iPlayIndex = 0; }; break; }; } } }//package RES.WINDOWS
Section 113
//OWIntro (RES.WINDOWS.OWIntro) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import RES.OBJECTS.OGAME.*; public class OWIntro extends OWindow { public var iVersion:OBitmap; public var iHeader:OBitmap; private var iTimer:Number; public var iHit:OSprite; public var iFooter:OBitmap; public var iAlpha:Array; public var iName:Array; public static var stShowFooter:int = 2; public static var stHide:int = 5; public static var stNormal:int = 4; public static var stShowName:int = 3; public static var stShowHeader:int = 1; public static var stInvisible:int = 6; public static var stBeforeShow:int = 0; public function OWIntro(){ super(Mysteriez2L.OWIntroParam); } override public function Init():void{ var _local1:int; var _local2:int; this.iName = new Array(); super.Init(); this.iHeader.alpha = 0; this.iFooter.alpha = 0; this.iVersion.alpha = 0; _local1 = this.iName.length; this.iAlpha = new Array(_local1); _local2 = 0; while (_local2 < (_local1 / 2)) { this.iAlpha[_local2] = (-(((_local1 / 2) - _local2)) * 0.3); this.iAlpha[((_local1 - _local2) - 1)] = (-(((_local1 / 2) - _local2)) * 0.3); this.iName[_local2].alpha = 0; this.iName[((_local1 - _local2) - 1)].alpha = 0; _local2++; }; this.hitArea = this.iHit; this.State = stBeforeShow; } override public function Free():void{ super.Free(); this.iHeader = null; this.iFooter = null; this.iName = null; } override public function OnMouseDown(_arg1:MouseEvent):void{ if (this.iState < OWIntro.stShowFooter){ return; }; this.prVisible = false; OGBitmapFactory.Name.alpha = 1; OGBitmapFactory.Name2.alpha = 1; OGBitmapFactory.Site.alpha = 1; OGBitmapFactory.NamePlus.alpha = 1; super.OnMouseDown(_arg1); } override public function OnEnterFrame(_arg1:Event):void{ switch (this.iState){ case stBeforeShow: if (this.iTimer-- <= 0){ this.State = stShowHeader; }; break; case stShowHeader: if (OGBitmapFactory.Site.alpha >= 1){ OGBitmapFactory.Site.alpha = 1; this.State = stShowFooter; } else { OGBitmapFactory.Site.alpha = (OGBitmapFactory.Site.alpha + 0.025); }; break; case stShowFooter: if (this.iFooter.alpha >= 1){ this.iFooter.alpha = 1; this.State = stShowName; } else { this.iFooter.alpha = (this.iFooter.alpha + 0.025); }; break; case stShowName: if (OGBitmapFactory.Name.alpha >= 1){ if (OGBitmapFactory.Name2.alpha >= 1){ this.State = stNormal; } else { OGBitmapFactory.Name2.alpha = (OGBitmapFactory.Name2.alpha + 0.025); OGBitmapFactory.NamePlus.alpha = (OGBitmapFactory.NamePlus.alpha + 0.025); }; } else { OGBitmapFactory.Name.alpha = (OGBitmapFactory.Name.alpha + 0.025); }; break; case stNormal: if (this.iTimer-- <= 0){ this.State = stHide; }; break; case stHide: this.State = stInvisible; break; }; } override public function set State(_arg1:int):void{ this.iState = _arg1; switch (this.iState){ case stBeforeShow: this.iTimer = 20; OGBitmapFactory.MainBorder.alpha = 1; break; case stNormal: this.iTimer = 180; break; case stInvisible: this.prVisible = false; OGBitmapFactory.Name.alpha = 1; OGBitmapFactory.Name2.alpha = 1; OGBitmapFactory.Site.alpha = 1; OGBitmapFactory.NamePlus.alpha = 1; break; }; } } }//package RES.WINDOWS
Section 114
//OWLoadProgress (RES.WINDOWS.OWLoadProgress) package RES.WINDOWS { import ENGINE.INTERFACE.*; public class OWLoadProgress extends OIObject { public var iProgress:OCounter; public function OWLoadProgress(_arg1:Array=null, _arg2:Array=null){ super(Mysteriez2L.OWLoadProgress, _arg2); } } }//package RES.WINDOWS
Section 115
//OWMenu (RES.WINDOWS.OWMenu) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import flash.utils.*; import flash.net.*; import ENGINE.SMARTFOX.*; public class OWMenu extends ODialog { public var iPlayers:OIObject; public var iMoreGames:OButton; public var iOptions:OButton; public var iBName:OButton; public var iCPlayers:OCounter; public var iTimer:int; public var iPlayOnlineStrategy:OButton; public var iHighScores:OButton; public var iInstructions:OButton; public var iInfo:OIObject; public var iLevelEditor:OButton; public function OWMenu(){ super(Mysteriez2L.OWMenu); } override public function set prVisible(_arg1:Boolean):void{ super.prVisible = _arg1; } override public function Init():void{ Mysteriez2L.OWMenu[0][4] = ((Mysteriez2L.strWelcome + " ") + Mysteriez2L.iGAME.prPlayerName); super.Init(); if (Mysteriez2L.iMP.prUsersCount == 0){ this.iPlayers.prAnimationEnabled = false; this.iPlayers.prVisible = false; this.iPlayers.prAnimationEnabled = true; this.iCPlayers.prAnimationEnabled = false; this.iCPlayers.prVisible = false; this.iPlayers.prAnimationEnabled = true; }; this.iCPlayers.prAnimationEnabled = false; this.iCPlayers.prValue = Mysteriez2L.iMP.prUsersCount; this.iPlayers.prAnimationEnabled = true; this.iCPlayers.Pos(this.iPlayOnlineStrategy.prX, (this.iCPlayers.prY + 35)); this.iPlayers.Pos((this.iCPlayers.prX + 40), this.iPlayers.prY); this.ShowUserReiting(true); } override public function set prActive(_arg1:Boolean):void{ super.prActive = _arg1; } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iBName){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miChoosePlayer); this.prVisible = false; return; }; if (_arg2 == this.iPlayOnlineStrategy){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miGameMP); Mysteriez2L.GameType = Mysteriez2L.STRATEGY; this.prVisible = false; return; }; if (_arg2 == this.iLevelEditor){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miLevelEditor); Mysteriez2L.GameType = Mysteriez2L.STRATEGY; this.prVisible = false; return; }; if (_arg2 == this.iOptions){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miOptions); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iInstructions){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miInstructions); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iHighScores){ (this.parent as OWindow).OnPress(null, Mysteriez2L.miHighScores); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iMoreGames){ navigateToURL(new URLRequest(Mysteriez2L.sURLSite)); return; }; (this.parent as OWindow).OnPress(null, Mysteriez2L.miCommingSoon); this.prActive = false; } override public function Free():void{ this.iBName = null; this.iCPlayers = null; this.iPlayers = null; this.iPlayOnlineStrategy = null; this.iOptions = null; this.iInstructions = null; this.iHighScores = null; this.iMoreGames = null; super.Free(); } private function InitObject(_arg1:Array):void{ if (this.iInfo){ this.removeChild(this.iInfo); this.iInfo.Free(); this.iInfo = null; }; if (!_arg1){ return; }; this.iInfo = new OIObject(_arg1, OInterface.iDefSlowAnimators); this.addChild(this.iInfo); this.iInfo.SetVisible(false); this.iInfo.prVisible = true; } override public function OnEnterFrame(_arg1:Event):void{ var _local2:int; if (this.iCPlayers.prValue != Mysteriez2L.iMP.prUsersCount){ if (Mysteriez2L.iMP.prUsersCount > 0){ if (!this.iPlayers.prVisible){ this.iCPlayers.prVisible = true; this.iPlayers.prVisible = true; }; } else { if (this.iPlayers.prVisible){ this.iCPlayers.prVisible = false; this.iPlayers.prVisible = false; }; }; this.iCPlayers.prValue = Mysteriez2L.iMP.prUsersCount; }; _local2 = getTimer(); if ((_local2 - this.iTimer) > 30000){ ShowUserReiting(false); }; super.OnEnterFrame(_arg1); } private function ShowUserReiting(_arg1:Boolean):void{ var _local2:String; var _local3:Array; if (_arg1){ Mysteriez2L.iMP.ClearOpponentTurn(true); Mysteriez2L.OWMenuReiting[0][4] = ((Mysteriez2L.iGAME.prPlayerName + Mysteriez2L.strReiting2.toLowerCase()) + Mysteriez2L.iGAME.prScore.toString()); this.InitObject(Mysteriez2L.OWMenuReiting); }; this.iTimer = getTimer(); if (Mysteriez2L.iMP.State != OMultiplayer.stInZone){ return; }; _local2 = Mysteriez2L.iMP.prOpponentTurn; Mysteriez2L.iMP.ClearOpponentTurn(true); Mysteriez2L.iMP.Turn(["rdr"]); if (!_local2){ return; }; _local3 = _local2.split(/,/); if ((((_local3[1] == "")) || (isNaN(_local3[2])))){ return; }; Mysteriez2L.OWMenuReiting[0][4] = (((((int(_local3[0]) + 1).toString() + Mysteriez2L.strReiting1) + _local3[1]) + Mysteriez2L.strReiting2) + _local3[2]); this.InitObject(Mysteriez2L.OWMenuReiting); } } }//package RES.WINDOWS
Section 116
//OWOptions (RES.WINDOWS.OWOptions) package RES.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; import flash.system.*; public class OWOptions extends OWDialog { public var iSound:OListBox; public var iFullScreen:OListBox; private var iSResList:Array; private var iSRes:Array; public var iMusic:OListBox; public var iCancel:OButton; public var iAccept:OButton; public function OWOptions(){ super(Mysteriez2L.OWOptions); } private function AddResolution(_arg1:int, _arg2:int):void{ if ((((_arg1 <= Capabilities.screenResolutionX)) && ((_arg2 <= Capabilities.screenResolutionY)))){ this.iSRes.push([_arg1, _arg2]); this.iSResList.push(((_arg1.toString() + " X ") + _arg2.toString())); }; } override public function Init():void{ var _local1:int; var _local2:int; var _local3:Number; var _local4:int; var _local5:int; var _local6:Number; super.Init(); this.iSound.prCurrentInd = int((Mysteriez2L.iGAME.prSoundVolume * 10)); this.iMusic.prCurrentInd = int((Mysteriez2L.iGAME.prMusicVolume * 10)); this.InitResolutions(); _local1 = OGlobal.prStage.stageWidth; _local2 = OGlobal.prStage.stageHeight; _local3 = 10000; _local4 = 0; _local5 = 0; while (_local5 < this.iSRes.length) { _local6 = (Math.abs((this.iSRes[_local5][0] - _local1)) + Math.abs((this.iSRes[_local5][1] - _local2))); if (_local6 < _local3){ _local4 = _local5; _local3 = _local6; }; _local5++; }; this.iFullScreen.prCurrentInd = ((((OGlobal.prStage.stageWidth == Capabilities.screenResolutionX)) && ((OGlobal.prStage.stageHeight == Capabilities.screenResolutionY)))) ? 1 : 0; } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iCancel){ this.prVisible = false; return; }; if (_arg2 == this.iAccept){ this.prVisible = false; Mysteriez2L.iGAME.prSoundVolume = (this.iSound.prCurrentInd / 10); Mysteriez2L.iGAME.prMusicVolume = (this.iMusic.prCurrentInd / 10); Mysteriez2L.iGAME.prFullScreen = (this.iFullScreen.prCurrentInd) ? true : false; fscommand("fullscreen", Mysteriez2L.iGAME.prFullScreen.toString()); return; }; } override public function Free():void{ this.iSound = null; this.iMusic = null; this.iFullScreen = null; this.iAccept = null; this.iCancel = null; this.iSRes = null; this.iSResList = null; super.Free(); } private function InitResolutions():void{ this.iSRes = new Array(); this.iSResList = new Array(); AddResolution(640, 480); AddResolution(800, 600); AddResolution(0x0400, 600); AddResolution(0x0400, 0x0300); AddResolution(0x0500, 0x0300); AddResolution(0x0500, 0x0400); AddResolution(Capabilities.screenResolutionX, Capabilities.screenResolutionY); } } }//package RES.WINDOWS
Section 117
//OWResults (RES.WINDOWS.OWResults) package RES.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.GAME.*; import ENGINE.CORE.*; import flash.utils.*; public class OWResults extends OAlert { private var iWInd:int;// = 0 private var iTimer:Timer; private var iDelta:Number;// = 0.025 public static const stScore:int = 3; public static const stHits:int = 1; public static const stStart:int = 0; public static const stMisses:int = 2; public function OWResults(){ var _local1:int; var _local2:int; var _local3:int; iWInd = 0; iDelta = 0.025; _local1 = Mysteriez2L.iGAME.Read(OGame.catTmp, "Score"); Mysteriez2L.OWResultsLevelScore[1][5] = _local1.toString(); _local1 = Mysteriez2L.iGAME.Read(OGame.catTmp, "TimeBonus"); Mysteriez2L.OWResultsTimeBonusScore[1][5] = _local1.toString(); _local1 = Mysteriez2L.iGAME.Read(OGame.catTmp, "Bonus"); Mysteriez2L.OWResultsBonusScore[1][5] = _local1.toString(); _local1 = Mysteriez2L.iGAME.Read(OGame.catTmp, "Result"); Mysteriez2L.OWResultsTotalScore[1][5] = _local1.toString(); Mysteriez2L.iGAME.AddScore(_local1); Mysteriez2L.iGAME.AddScoreInTable(_local1); _local2 = Mysteriez2L.iGAME.prMode; Mysteriez2L.iGAME.prMode = 0; Mysteriez2L.iGAME.AddScore(_local1); Mysteriez2L.iGAME.AddScoreInTable(_local1); Mysteriez2L.iGAME.prMode = _local2; _local3 = Mysteriez2L.iGAME.prScore; Mysteriez2L.OWResultsRaiting[1][4] = _local3.toString(); if (!(((Mysteriez2L.iGAME.prPlayerName == "")) || (isNaN(_local3)))){ Mysteriez2L.iMP.Turn(["wrr", Mysteriez2L.iGAME.prPlayerName, _local3]); }; super(Mysteriez2L.OWResults, null); } override public function Init():void{ super.Init(); this.Pos(0, 0); this.iTimer = new Timer(500, 8); this.iTimer.addEventListener(TimerEvent.TIMER, OnTimer); this.iTimer.start(); } override public function Free():void{ this.iTimer.stop(); this.iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); this.iTimer = null; super.Free(); } private function OnKeyDown(_arg1:KeyboardEvent):void{ this.prVisible = false; OGlobal.prStage.removeEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); } private function OnTimer(_arg1:TimerEvent):void{ switch (this.iTimer.currentCount){ case 1: (this.getChildAt(0) as OIObject).prVisible = true; (this.getChildAt(7) as OBitmap).prVisible = true; break; case 2: (this.getChildAt(1) as OIObject).prVisible = true; OSound.PlaySoundInd(1); break; case 3: (this.getChildAt(2) as OIObject).prVisible = true; OSound.PlaySoundInd(1); break; case 4: (this.getChildAt(3) as OIObject).prVisible = true; OSound.PlaySoundInd(1); break; case 5: (this.getChildAt(4) as OIObject).prVisible = true; (this.getChildAt(5) as OIObject).prVisible = true; (this.getChildAt(6) as OIObject).prVisible = true; OSound.PlaySoundInd(1); OGlobal.prStage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); break; }; } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); } } }//package RES.WINDOWS
Section 118
//Mysteriez2 (Mysteriez2) package { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import RES.OBJECTS.OGAME.*; import ENGINE.CORE.*; import RES.WINDOWS.*; import ENGINE.SMARTFOX.*; import ENGINE.AD.*; public class Mysteriez2 extends OApplication { private var iSystem:OSystem; public var iField:OSprite; private var iHighScoresTableValue:int; private var iWindow:OWindow; public function Mysteriez2(){ super("Mysteriez2"); Mysteriez2L.iGAME; OSound.PlayListAdd("music.mp3"); OSound.PlayMusic(); OAdBanners.InitTBanner(Mysteriez2L.sTBannerPrefix, Mysteriez2L.sBannerID); OAdBanners.InitBBanner(Mysteriez2L.sBBannerPrefix, Mysteriez2L.sBannerID); } protected function OnResize1(_arg1:Event):void{ var _local2:Stage; _local2 = Stage(_arg1.target); } override protected function OnMenuItem():void{ var _local1:int; var _local2:DisplayObject; _local1 = this.prMenuItem; switch (_local1){ case Mysteriez2L.miNullWindow: return; case Mysteriez2L.miLastWindow: _local2 = this.getChildAt((this.numChildren - 1)); this.iWindow = ((_local2 is OWindow)) ? (_local2 as OWindow) : null; if (this.iWindow){ this.iWindow.prActive = true; return; }; this.iWindow = new OWMenu(); this.prMenuItem = Mysteriez2L.miNullWindow; this.iWindow.Pos(455, 110); break; case Mysteriez2L.miIntro: this.iWindow = new OWIntro(); if (Mysteriez2L.iGAME.prPlayerName == ""){ this.prMenuItem = Mysteriez2L.miEnterNameFirst; } else { this.prMenuItem = Mysteriez2L.miMenu; }; break; case Mysteriez2L.miEnterNameFirst: this.iWindow = new OWEnterName(false); this.prMenuItem = Mysteriez2L.miMenu; break; case Mysteriez2L.miEnterNewName: this.iWindow = new OWEnterName(true); (this.iWindow as OWEnterName).prName = ""; this.prMenuItem = Mysteriez2L.miLastWindow; break; case Mysteriez2L.miMenu: switch (Mysteriez2L.iMP.State){ case OMultiplayer.stNone: Mysteriez2L.iMP.Init(Mysteriez2L.sDomain, Mysteriez2L.sServer, Mysteriez2L.sZone, Mysteriez2L.sXTName, Mysteriez2L.iGAME.prPlayerName); break; case OMultiplayer.stConnectionError: if (Mysteriez2L.iMP.prErrorsCount < 5){ Mysteriez2L.iMP.State = OMultiplayer.stNone; Mysteriez2L.iMP.Init(Mysteriez2L.sDomain, Mysteriez2L.sServer, Mysteriez2L.sZone, Mysteriez2L.sXTName, Mysteriez2L.iGAME.prPlayerName); }; break; }; this.iWindow = new OWMenu(); this.prMenuItem = Mysteriez2L.miNullWindow; this.iWindow.Pos(455, 127); break; case Mysteriez2L.miCommingSoon: this.iWindow = new OAlert(Mysteriez2L.OWCommingSoon, null); this.prMenuItem = Mysteriez2L.miLastWindow; break; case Mysteriez2L.miChoosePlayer: this.iWindow = new OWChoosePlayer(); this.prMenuItem = Mysteriez2L.miMenu; this.iWindow.prX = 475; break; case Mysteriez2L.miDeletePlayerConfirm: this.iWindow = new OAlert(Mysteriez2L.OWDeletePlayerConfirm, [Mysteriez2L.miDeletePlayer, Mysteriez2L.miChoosePlayer]); this.prMenuItem = Mysteriez2L.miChoosePlayer; this.iWindow.prX = 495; break; case Mysteriez2L.miDeletePlayer: Mysteriez2L.iGAME.DeletePlayer(Mysteriez2L.iGAME.prPlayerName); if (Mysteriez2L.iGAME.prPlayerName != ""){ this.OnMenuItem(); return; }; this.iWindow = new OWEnterName(false); this.prMenuItem = Mysteriez2L.miLastWindow; break; case Mysteriez2L.miOptions: this.iWindow = new OWOptions(); this.prMenuItem = Mysteriez2L.miLastWindow; this.iWindow.Pos(252, 20); break; case Mysteriez2L.miHighScores: this.iWindow = new OWHighScores(); this.prMenuItem = Mysteriez2L.miLastWindow; this.iWindow.prX = 445; this.iWindow.prY = 250; break; case Mysteriez2L.miDeleteScoresConfirm: this.iWindow = new OAlert(Mysteriez2L.OWDeleteScoresConfirm, [Mysteriez2L.miDeleteScores, Mysteriez2L.miHighScores]); this.prMenuItem = Mysteriez2L.miHighScores; this.iWindow.prX = 495; break; case Mysteriez2L.miDeleteScores: if (iHighScoresTableValue == 0){ Mysteriez2L.iGAME.ClearLocalScores(0); } else { Mysteriez2L.iGAME.ClearPersonalScores(0); }; this.OnMenuItem(); return; case Mysteriez2L.miGameMP: this.iWindow = new OWGame(); this.prMenuItem = Mysteriez2L.miMenu; break; case Mysteriez2L.miResultsMP: this.iWindow = new OWResults(); this.prMenuItem = Mysteriez2L.miLastWindow; break; case Mysteriez2L.miInstructions: this.iWindow = new OWInstruction(); this.prMenuItem = Mysteriez2L.miLastWindow; this.iWindow.prY = (300 - (iWindow.prHeight / 2)); break; }; this.addChild(this.iWindow); } override public function Init():void{ if (((((!(this.stage)) || ((this.stage.stageHeight == 0)))) || ((this.stage.stageWidth == 0)))){ return; }; this.InitBackground([Mysteriez2L.OBG01], 0); OGBitmapFactory.CreateBook(); addChild(OGBitmapFactory.Back); addChild(OGBitmapFactory.Book); addChild(OGBitmapFactory.NamePlus); addChild(OGBitmapFactory.LoopOnBook); addChild(OGBitmapFactory.PlayBook); OGBitmapFactory.PlayBook.SetVisible(false); if (Mysteriez2L.sDebug){ this.iSystem = new OSystem(); this.addChild(this.iSystem); }; super.Init(); this.prMenuItem = Mysteriez2L.miIntro; OnMenuItem(); OGlobal.prStage.addEventListener(Event.RESIZE, OnResize1); } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg1 == null){ this.prMenuItem = _arg2; }; } override protected function OnDeactivate(_arg1:Event):void{ Mysteriez2L.iGAME.SaveCache(); } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); Mysteriez2L.iMP.OnEnterFrame(); if (Mysteriez2L.sDebug){ OSystem.iUserText1 = (((((((" : " + Mysteriez2L.iMP.State.toString()) + " : ") + Mysteriez2L.iMP.prActiveRoomID.toString()) + " ") + Mysteriez2L.iMP.prPlayerID.toString()) + " : ") + Mysteriez2L.iMP.prError); }; if (this.iWindow){ if (this.iWindow.prAnimation){ return; }; if (!this.iWindow.prVisible){ if ((this.iWindow is OWHighScores)){ iHighScoresTableValue = (iWindow as OWHighScores).iTable.prValue; }; this.removeChild(this.iWindow); this.iWindow.Free(); this.iWindow = null; this.OnMenuItem(); } else { if (!this.iWindow.prActive){ this.OnMenuItem(); }; }; }; } } }//package
Section 119
//Mysteriez2L (Mysteriez2L) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.GAME.*; import RES.OBJECTS.*; import ENGINE.CORE.*; import ENGINE.SMARTFOX.*; public class Mysteriez2L { public static const strCancel:String = "Cancel"; public static const OSSmileSInd:int = 12; public static const strNamePlus:String = "daydreaming"; public static const miDeletePlayer:int = 9; public static const strMissed:String = "Skip"; public static const iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; public static const miDeleteScoresConfirm:int = 18; public static const cColorsParticles:Array = [0xFF0000, 0xFF00, 0xFF, 0xFFFF00, 0xFF00FF, 0xFFFF]; private static const OWSelectGameGameModeColor:Array = ["60", "30", "180", "70", "190", "220", "280", "100", "40", "150", "170", "250", "50", "260", "140", "330", "300", "350", "80", "120"]; public static const strDefPlayerName:String = "WELL"; public static const strResults1:String = "Results:"; public static const strPresents:String = "presents"; public static const miCommingSoon:int = 6; public static const strConnect1URL:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static const strLoadingLevel:String = "loading level..."; public static const OSBubbleBangSInd:int = 0; public static const strResults:String = "Results"; private static const OWGamePauseColor:Array = ["120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120", "120"]; public static const strChoosePlayer:String = "Choose a Player"; public static const sBBannerPrefix:String = "bottom/"; public static const strCommingSoon:String = "Coming Soon..."; public static const strTimeFreeze:String = "Time Freeze"; public static const strConnect2URL:String = "http://www.wellgames.com/?g=mysteriez2"; public static const miLastWindow:int = 1; public static const strInputText:String = "Input Text"; public static const strFullScreen:String = "Full Screen"; private static const iWOptionsVolume:Array = [Mysteriez2L.strOff, "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; public static const cFontName:String = "Bankir-Retro"; public static const ARCADE:int = 2; public static const strSite:String = "WELLGAMES.COM"; public static const miMenu:int = 5; public static const SQUARE:int = 0; public static const strNextLevel:String = "Next Level"; public static const strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static const strMoreGames:String = "More Games"; public static const strPlace:String = " Place"; public static const strPlayAgain:String = "Play Again"; public static const strSound:String = "Sound Volume"; public static const miOptions:int = 10; public static const sURLSite:String = "http://www.wellgames.com/?g=mysteriez2"; public static const cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static const miDeleteScores:int = 19; public static const strHighScores:String = "High Scores"; public static const strNewPlayer:String = "NEW PLAYER!"; public static const miDeletePlayerConfirm:int = 8; public static const miInstructions:int = 24; public static const strReiting1:String = " Place: "; public static const strReiting2:String = "'s Rating Is "; public static const strWindow:String = "Window"; public static const strDeleteScoresConfirm:String = "Are you sure you want to delete score table?"; public static const strOff:String = "Off"; public static const strHowToPlay:String = "How To Play"; public static const sServer:String = "www.wellgames.com"; public static const cColorsSite:Array = [8810577, 8810577, 8810577, 8810577, 9599576, 11113584, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603]; public static const strHasReiting:String = "'s Rating Is "; public static const strBonuses:String = "Bonuses"; public static const sDebug:Boolean = false; public static const strNew:String = "New"; public static const sTBannerPrefix:String = "top/"; public static const OWInstrInfo2:Array = [[Mysteriez2S.HeaderM, 550, 23, cMainColors[0], Mysteriez2L.strInstructionsText2, 0, -30, null, 0, true]]; public static const OWInstrInfo3:Array = [[Mysteriez2S.MakeCheckBoxM, 80, 60, "yellow", OLoop, OUnLoop, 40, -15, null, 0, true], [Mysteriez2S.HeaderM, 550, 23, cMainColors[0], Mysteriez2L.strInstructionsText3, 0, -30, null, 0, true]]; public static const strLevelScoreR:String = "Level Score: "; public static const OWInstrInfo1:Array = [[Mysteriez2S.HeaderM, 550, 25, cMainColors[0], Mysteriez2L.strInstructionsText1, 0, 0, null, 0, true]]; public static const strFailed:String = "Failed"; public static const miGameMP:int = 21; public static const strClick:String = "Click to play"; public static const strConnect2:String = "Try Other Multiplayer Games!"; public static const strConnect3:String = ("Tell A Friend\nAbout\n" + strGameName); public static const miResultsMP:int = 22; public static const strConnect1:String = "Play With Other Gamers In Multiplayer Mode!"; public static const sXTName:String = "m2"; public static const strGainedScore:String = "gained score :"; public static const strContinue:String = "Click to continue!"; public static const HEXAGON:int = 1; public static const DEMO:int = 3; public static const TRIANGLE:int = 2; public static const OWInstructionsInfo:Array = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; public static const sURLGame:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static const miEnterNewName:int = 4; public static const strTimeBonus:String = "Time bonus:"; public static const miIntro:int = 2; public static const strPause:String = "Pause"; public static const strClose:String = "Close"; private static const OWHighScoresType:Array = [Mysteriez2L.strLocal, Mysteriez2L.strPersonal]; public static const strPrToCont:String = "press to continue"; public static const strEnterName:String = "please enter your name:"; public static const strFailedLevel:String = " Has Failed The Level With Score "; public static const strMoreGames1:String = "More Games"; public static const strLevelConfirm1:String = "score"; public static const strLevelConfirm2:String = "to get to the next level you must beat your opponent"; private static const OWGoalColors:Array = ["60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60", "60"]; public static const strMusic:String = "Music Volume"; public static const strInstructions:String = "Instruction"; public static const cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static const strLevelScore:String = "'s Level Score Is "; public static const OWInstructionsText:Array = [strInstructionsText1, strInstructionsText2, strInstructionsText3]; public static const strComplete:String = "complete!"; public static const miResultsSP:int = 15; public static const strAccept:String = "Accept"; public static const strClear:String = "Clear"; public static const miSSaver:int = 25; public static const strCountNumbers1:String = "Find "; public static const strCountNumbers2:String = " numbers"; public static const strConnectionToServer:String = "Connecting To Server..."; public static const strSendMail:String = "Send Mail"; public static const strBack:String = "Back"; public static const strPlayersOnline1:String = "Players Online"; public static const strLevel1:String = "Level:"; public static const sZone:String = "Mysteriez2"; public static const strDeletePlayerConfirm:String = "Are you sure you want to delete this profile?"; public static const strBonusScore:String = "bonus score :"; public static const miLevelEditor:int = 26; public static const OSSmileEInd:int = 14; public static const sBannerID:String = "mysteriez2"; public static const strGameName:String = "MYSTERIEZ2!"; public static const strScore:String = "Score:"; public static const strYes:String = "Yes"; public static const miNullWindow:int = 0; public static const sDomain:String = "wellgames.com"; public static const strCompleteLevel:String = " Has Completed The Level With Score "; public static const miHighScores:int = 17; public static const strLevelEditor:String = "Level Editor"; public static const strTimeIsUp:String = "Time is up"; public static const strOptions:String = "Options"; public static const strMenu:String = "Menu"; public static const strDelete:String = "Delete"; public static const strOpponent1:String = "Opponent"; public static const strOpponent2:String = "In Game"; private static const iWOptionsOnOff:Array = [Mysteriez2L.strOff, Mysteriez2L.strOn]; public static const OSBubbleBangEInd:int = 10; public static const strAddHint:String = "EXTRA HINT!"; public static const strTimeDecrease:String = ("Time -" + OGGame.iDecreaseTime.toString()); public static const strYourRaiting:String = "Your Rating:"; public static const strLevelConfirm:String = "To get to the next level you need more than"; public static const STRATEGY:int = 1; public static const strPlayOnline1:String = "Play Online!"; public static const strChangePlayer:String = "click to change player"; public static const strCommingSoonI:String = "This option is not available at the moment"; public static const strFind:String = "Find all"; public static const strPersonal:String = "Personal"; public static const miChoosePlayer:int = 7; public static const miEnterNameFirst:int = 3; public static const cColors:Array = [8810577]; private static const OSoundParams:Array = [Mysteriez2L.OSBubbleBang01, Mysteriez2L.OSBubbleBang02, Mysteriez2L.OSBubbleBang03, Mysteriez2L.OSBubbleBang04, Mysteriez2L.OSBubbleBang05, Mysteriez2L.OSBubbleBang06, Mysteriez2L.OSBubbleBang07]; public static const strPlayOnline:String = "Play Online!"; public static const strLocal:String = "Local"; public static const strInstructionsText1:String = "Find numbers hidden among objects"; public static const strInstructionsText2:String = "Left mouse button double-click will turn on/off the magnifier"; public static const strInstructionsText3:String = "Or use “Magnifier” button on the right panel"; public static const strNo:String = "No"; public static const strLevel:String = "Level"; public static const OSOops:int = 15; public static const strWelcome:String = "Welcome"; public static const strPlayersOnline:String = "Players Online"; public static const strOn:String = "On"; public static var OTimerBorder:Class = Mysteriez2L_OTimerBorder; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OWGamePause:Array = [[Mysteriez2S.ColorHeaderM, 600, 60, cColors, strPause, OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [Mysteriez2S.ColorHeaderM, 600, 30, cColors, strContinue, OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; public static var OWGameGoal:Array = [OInterface.OIObjectMake, OWGameGoalArray, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var OGNumberCounterO:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OGNumberCounterElementO, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterElementO, 11, 0, "iDigits", 1, true]], 18, 35]; public static var OGTimer:Array = [[Mysteriez2S.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [Mysteriez2S.BorderM, 162, 37, TimeColor, OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [Mysteriez2S.HeaderM, 10, 40, TimeColor, ":", 88, -12, "iTimeDel", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 108, 0, "iSecondCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 125, 0, "iSecondCounter2", 0, false]]; public static var OWInfoP:Array = [[Mysteriez2S.HeaderM, 190, 20, OWInfoColors[0], Mysteriez2L.strConnect1.toLowerCase(), 15, 120, null, 0, true]]; private static var OWGameSite:Array = [[Mysteriez2S.MakeBitmapFromLib, 130, 15, OSiteM, 0, 0, null, 0, true]]; public static var OIRight:Class = Mysteriez2L_OIRight; public static var OWHighScores:Array = [[Mysteriez2S.HeaderM, 300, 25, cMainColors[0], Mysteriez2L.strHighScores, 0, -130, null, 0, true], [Mysteriez2S.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", Mysteriez2L.OWHighScoresType, 45, -90, "iType", 0, true], [Mysteriez2S.BorderM, 288, 206, cMainColors[3], OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, Mysteriez2L.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strClear, 55, 170, "iClear", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strClose, 170, 170, "iClose", 0, true]]; public static var OWDeleteScoresConfirm:Array = [[Mysteriez2S.HeaderM, 210, 20, cMainColors[0], Mysteriez2L.strDeleteScoresConfirm, -7, 85, null, 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strYes, 12, 210, "iButtons", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strNo, 103, 210, "iButtons", 1, true], [Mysteriez2S.BorderM, 289, 216, cMainColors[3], OConfirmBorder, -45, 50, null, 0, true]]; public static var OGameBorder:Class = Mysteriez2L_OGameBorder; private static var TimeColor:int = 0xFFFFFF; public static var OWGameConnection:Array = [Mysteriez2S.ColorHeaderM, 600, 50, Mysteriez2L.cColors, Mysteriez2L.strConnectionToServer, OInterface.iDefSlowAnimators]; public static var OWEnterName:Array = [[Mysteriez2S.HeaderM, 230, 25, cMainColors[0], Mysteriez2L.strNewPlayer, 0, 20, null, 0, true], [Mysteriez2S.HeaderM, 230, 20, cMainColors[0], Mysteriez2L.strEnterName, 0, 90, null, 0, true], [Mysteriez2S.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strAccept, 35, 210, "iAccept", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strCancel, 120, 210, "iCancel", 0, true]]; private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, Mysteriez2L.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, Mysteriez2L.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, Mysteriez2L.OTimerAnimator, null]; public static var OCursor:Class = Mysteriez2L_OCursor; private static var OWGameCompletedLevel:Array = [[Mysteriez2S.Header, 600, 60, "yellow", strLevel, 0, 0, null, 0, true], [Mysteriez2S.Header, 600, 60, "yellow", strComplete, 0, 60, null, 0, true], [Mysteriez2S.Header, 600, 35, "yellow", strPrToCont, 0, 130, null, 0, true]]; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OResultBorder:Class = Mysteriez2L_OResultBorder; public static var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array = [[Mysteriez2S.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [Mysteriez2S.Header, 530, 50, "red", Mysteriez2L.strCommingSoon, 0, 20, null, 0, true], [Mysteriez2S.Header, 530, 30, "magenta", Mysteriez2L.strCommingSoonI, 0, 125, null, 0, true], [Mysteriez2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, Mysteriez2L.strClose, 190, 210, null, 0, true]]; public static var OGameVersion:Class = Mysteriez2L_OGameVersion; public static var FindColors2:Array = ["150", "180", "210", "240"]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; public static var OButMC:Class = Mysteriez2L_OButMC; public static var recLevel:String; public static var OStop:Class = Mysteriez2L_OStop; public static var OWResultsTimeBonusScore:Array = [[Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], strTimeBonus.toLowerCase(), 0, 1, 400, 0, null, 0, true], [Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OLeft:Class = Mysteriez2L_OLeft; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, Mysteriez2L.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array = [[Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], strGainedScore.toLowerCase(), 0, 1, 400, 0, null, 0, true], [Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OILeft:Class = Mysteriez2L_OILeft; public static var OWResults:Array = [[Mysteriez2S.ColorHeaderM, 800, 40, cColorsSite, strResults, OInterface.iDefSlowAnimators, 190, -20, null, 0, false], [OInterface.OIObjectMake, OWResultsLevelScore, OInterface.iDefSlowAnimators, 55, 45, null, 0, false], [OInterface.OIObjectMake, OWResultsTimeBonusScore, OInterface.iDefSlowAnimators, 55, 85, null, 0, false], [OInterface.OIObjectMake, OWResultsBonusScore, OInterface.iDefSlowAnimators, 55, 125, null, 0, false], [OInterface.OIObjectMake, OWResultsTotalScore, OInterface.iDefSlowAnimators, 55, 165, null, 0, false], [OInterface.OIObjectMake, OWResultsRaiting, OInterface.iDefSlowAnimators, 190, 215, null, 0, false], [Mysteriez2S.MakeNewButton, 100, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strNextLevel.toLowerCase(), 545, 300, "iButtons", 0, false], [Mysteriez2S.BorderM, 290, 240, cMainColors[3], OResultBorder, 450, 45, null, 0, false]]; public static var OWGameNCL:Array = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; private static var OWGameScoreFOM:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 14, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 28, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 42, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 56, 0, "iDigits", 4, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 70, 0, "iDigits", 5, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 84, 0, "iDigits", 6, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 98, 0, "iDigits", 7, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementOM, 112, 0, "iDigits", 8, true]], 112, 20]; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWGameNewLevelWithNoOpponent:Array = [[Mysteriez2S.ColorHeaderM, 600, 50, Mysteriez2L.cColors, strSite, OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var OWResultsRaiting:Array = [[Mysteriez2S.ColorHeaderM, 800, 25, cColorsSite, strYourRaiting, OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [Mysteriez2S.HeaderM, 800, 25, cMainColors[0], "9", 0, 30, null, 0, true]]; private static var OTimerAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:15}; public static var OFont:Class = Mysteriez2L_OFont; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array = [[Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], strBonusScore.toLowerCase(), 0, 1, 400, 0, null, 0, true], [Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWResultsTotalScore:Array = [[Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], strLevelScoreR.toLowerCase(), 0, 1, 400, 0, null, 0, true], [Mysteriez2S.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWGameNewLevelWithOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevel, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); public static var OStart:Class = Mysteriez2L_OStart; public static var OEnterBorder:Class = Mysteriez2L_OEnterBorder; public static var OBorder:Class = Mysteriez2L_OBorder; private static var OWGameLoadLevel:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameLoadLevelElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevelElement, 30, 0, "iDigits", 1, true]], 100, 50]; public static var OWHighScoreLocalM:Array = [[Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[Mysteriez2S.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [Mysteriez2S.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, Mysteriez2L.OWGameCounterAnimator, null]; public static var OWColors:Array = ["0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"]; public static var OWIntroParam:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [Mysteriez2S.MakeBitmapFromLib, 0, 25, Mysteriez2L.OSiteM, 240, 275, "iHeader", 0, true], [Mysteriez2S.MakeBitmapFromLib, 0, 83, Mysteriez2L.OGameNameM, 100, 200, "iName", 0, true], [Mysteriez2S.MakeBitmapFromLib, 0, 60, Mysteriez2L.OGameVersion, 200, 360, "iVersion", 0, true], [Mysteriez2S.HeaderM, 400, 20, cMainColors[0], Mysteriez2L.strPresents, 0, 420, "iFooter", 0, true]]; public static var ODown:Class = Mysteriez2L_ODown; public static var OWGameP:Array = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var ODemoBorder:Class = Mysteriez2L_ODemoBorder; public static var OIDown:Class = Mysteriez2L_OIDown; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OScoresBorder:Class = Mysteriez2L_OScoresBorder; public static var OWDeletePlayerConfirm:Array = [[Mysteriez2S.HeaderM, 210, 20, cMainColors[0], Mysteriez2L.strDeletePlayerConfirm, -7, 85, null, 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strYes, 18, 210, "iButtons", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strNo, 103, 210, "iButtons", 1, true], [Mysteriez2S.BorderM, 289, 216, cMainColors[3], OConfirmBorder, -45, 50, null, 0, true]]; public static var OWColors1:Array = ["30", "0", "90", "60", "150", "120", "210", "180", "270", "240", "330", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"]; public static var OWColors2:Array = ["330", "270", "240", "210", "180", "150", "120", "90", "60", "30", "0", "330", "270", "240", "210", "180", "150", "120", "90", "60", "30", "0", "330", "270", "240", "210", "180", "150", "120", "90", "60", "30", "0"]; public static var OWColors3:Array = ["0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"]; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[Mysteriez2S.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OSmallGraphic:Class = Mysteriez2L_OSmallGraphic; public static var OBG01:Class = Mysteriez2L_OBG01; public static var OBack:Class = Mysteriez2L_OBack; public static var OWGameNewLevel:Array = [[Mysteriez2S.ColorHeaderM, 600, 50, Mysteriez2L.cColors, strSite, OInterface.iDefAnimators, 0, 0, null, 0, true], [Mysteriez2S.ColorHeaderM, 600, 40, Mysteriez2L.cColors, strOpponent1, OInterface.iDefAnimators, 0, 80, null, 0, true], [Mysteriez2S.ColorHeaderM, 600, 40, Mysteriez2L.cColors, strSite, OInterface.iDefAnimators, 0, 150, null, 0, true]]; public static var OWChoosePlayer:Array = [[Mysteriez2S.HeaderM, 250, 25, cMainColors[0], Mysteriez2L.strChoosePlayer, -10, -60, null, 0, true], [Mysteriez2S.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strNew, 15, 194, "iNew", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strDelete, 160, 194, "iDelete", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strAccept, 45, 230, "iAccept", 0, true], [Mysteriez2S.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strCancel, 130, 230, "iCancel", 0, true]]; private static var iGameType:int = 0; public static var OWHighScorePersonalM:Array = [[Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [Mysteriez2S.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OSBubbleBang01:Class = Mysteriez2L_OSBubbleBang01; public static var OWSSaver:Array = [[Mysteriez2S.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, Mysteriez2L.strMenu, 0, 0, "iMenu", 0, true], [Mysteriez2S.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, Mysteriez2L.strSite, 0, 0, "iSite", 0, true]]; public static var OFontArial:Class = Mysteriez2L_OFontArial; public static var OSBubbleBang05:Class = Mysteriez2L_OSBubbleBang05; public static var OSBubbleBang07:Class = Mysteriez2L_OSBubbleBang07; public static var OSBubbleBang02:Class = Mysteriez2L_OSBubbleBang02; public static var OPlayBook:Class = Mysteriez2L_OPlayBook; public static var OSBubbleBang06:Class = Mysteriez2L_OSBubbleBang06; public static var OWGameLevelElement:Array = [OInterface.OTabMake, [[Mysteriez2S.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OSBubbleBang03:Class = Mysteriez2L_OSBubbleBang03; public static var OSBubbleBang04:Class = Mysteriez2L_OSBubbleBang04; public static var OUnLoop:Class = Mysteriez2L_OUnLoop; public static var OWGame:Array = [[Mysteriez2S.MakeBitmapFromLib, 165, 61, OGameNameM, 635, 0, "iGameName", 0, false], [Mysteriez2S.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strMenu, 635, 520, "iMenu", 0, false], [Mysteriez2S.ColorHeaderM, 155, 22, Mysteriez2L.cColorsSite, Mysteriez2L.strNamePlus, OInterface.iDefSlowAnimators, 655, 44, "iGameNamePlus", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [Mysteriez2S.MakeCheckBoxM, 64, 53, "yellow", OLoop, OUnLoop, 655, 470, "iLoop", 0, false], [Mysteriez2S.MakeCheckBoxM, 64, 53, "green", OStop, OStart, 725, 470, "iPause", 0, false], [Mysteriez2S.ColorHeaderM, 80, 20, cColors, strScore, OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [Mysteriez2S.ColorHeaderM, 80, 20, cColors, strLevel1.toLowerCase(), OInterface.iDefAnimators, 650, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 730, 435, "iLevelCounter", 0, false], [Mysteriez2S.ColorHeaderM, 150, 20, cColors, strScore, OInterface.iDefAnimators, 600, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 698, 144, "iScoreCounterO", 0, false], [Mysteriez2S.BorderM, 160, 220, cMainColors[3], OGameBorder, 631, 293, "iBorder", 0, false]]; public static var OIUp:Class = Mysteriez2L_OIUp; private static var OWGameCompletedLevelM:Array = [[Mysteriez2S.HeaderM, 600, 60, cMainColors[0], strLevel, 0, 0, null, 0, true], [Mysteriez2S.HeaderM, 600, 60, cMainColors[0], strComplete, 0, 67, null, 0, true], [Mysteriez2S.HeaderM, 600, 35, cMainColors[0], strPrToCont, 0, 130, null, 0, true]]; public static var OWGameGoalArray:Array = [[Mysteriez2S.ColorHeaderM, 600, 50, Mysteriez2L.cColors, strCountNumbers1, OInterface.iDefAnimators, 0, 0, null, 0, true], [Mysteriez2S.ColorHeaderM, 600, 50, Mysteriez2L.cColors, strCountNumbers2, OInterface.iDefAnimators, 0, 60, null, 0, true], [Mysteriez2S.ColorHeaderM, 600, 30, Mysteriez2L.cColors, (" " + strClick.toLowerCase()), OInterface.iDefAnimators, 0, 140, null, 0, true]]; public static var OBorderM:Class = Mysteriez2L_OBorderM; public static var OWResultsRaitingS:Array = [[Mysteriez2S.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; public static var OSelectBorder:Class = Mysteriez2L_OSelectBorder; public static var OWResultsScoreT:Array = [[Mysteriez2S.Header, 800, 60, "yellow1", ((strLevel + " ") + strScore), 0, 0, null, 0, true]]; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; private static var OWGameScoreF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameScoreElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 17, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 34, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 51, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 68, 0, "iDigits", 4, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 85, 0, "iDigits", 5, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 102, 0, "iDigits", 6, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 119, 0, "iDigits", 7, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 136, 0, "iDigits", 8, true]], 17, 30]; public static var OChoosePBorder:Class = Mysteriez2L_OChoosePBorder; private static var OWPlayersCounterF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 8, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 16, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 24, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 32, 0, "iDigits", 4, true]], 36, 15]; public static var OWBorderM:Class = Mysteriez2L_OWBorderM; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[Mysteriez2S.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [Mysteriez2S.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, Mysteriez2L.OTimerAnimator, null]; public static var OGameNameM:Class = Mysteriez2L_OGameNameM; public static var OWGameNameColor:Array = ["aqua1", "yellow", "aqua", "magenta", "yellow1", "yellow", "magenta1", "aqua1", "red1", "green", "aqua1", "yellow", "green", "red", "magenta", "aqua", "white", "aqua1", "yellow", "green", "red", "magenta", "aqua", "white", "aqua1", "yellow", "green", "red", "magenta", "aqua"]; private static var OWGameNotCompletedLevel:Array = [[Mysteriez2S.Header, 600, 60, "red", strTimeIsUp, 0, 0, null, 0, true], [Mysteriez2S.Header, 600, 35, "red", strPrToCont, 0, 70, null, 0, true]]; public static var OGInfo:Array = [[Mysteriez2S.HeaderM, 200, 50, 0xFF0000, Mysteriez2L.strTimeDecrease, 0, 0, null, 0, false]]; public static var OGFindO:Array = [[Mysteriez2S.ColorHeader, 60, 20, FindColorsO, strFind, OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [Mysteriez2S.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; public static var OSiteM:Class = Mysteriez2L_OSiteM; public static var OWPlayersColor:Array = ["180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150"]; public static var OLoopOnBook:Class = Mysteriez2L_OLoopOnBook; public static var OWInfoPUserNotFound:Array = [[Mysteriez2S.HeaderM, 190, 20, OWInfoColors[0], Mysteriez2L.strConnect1.toLowerCase(), 10, 100, null, 0, true], [Mysteriez2S.HeaderM, 190, 20, OWInfoColors[0], Mysteriez2L.strConnect1.toLowerCase(), 10, 125, null, 0, true]]; public static var OWInputParam:Array = [[Mysteriez2S.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [Mysteriez2S.Header, 600, 40, "aqua1", Mysteriez2L.strInputText, 0, 30, null, 0, true], [Mysteriez2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, Mysteriez2L.strClose, 225, 310, "iClose", 0, true]]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, Mysteriez2L.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, Mysteriez2L.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, Mysteriez2L.OTimerAnimator, null]; public static var OConfirmBorder:Class = Mysteriez2L_OConfirmBorder; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[Mysteriez2S.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [Mysteriez2S.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, Mysteriez2L.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array = [[Mysteriez2S.MakeTextButton, 200, 50, "white", "white", 25, Mysteriez2L.strMenu, 558, 490, "iMenu", 0, false]]; public static var ORight:Class = Mysteriez2L_ORight; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var OWMenuReiting:Array = [[Mysteriez2S.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[Mysteriez2S.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [Mysteriez2S.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, Mysteriez2L.OWGameCounterAnimator, null]; public static var OGameLoop:Class = Mysteriez2L_OGameLoop; public static var OWInfoPConnect:Array = [[Mysteriez2S.HeaderM, 190, 20, OWInfoColors[0], Mysteriez2L.strConnect1.toLowerCase(), 15, 70, null, 0, true], [Mysteriez2S.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 25, Mysteriez2L.strPlayOnline, 35, 175, null, 0, true]]; public static var FallParticle:Class = Mysteriez2L_FallParticle; public static var OWLoadProgress:Array = [[Mysteriez2S.ColorHeaderM, 800, 50, cColorsSite, strLoadingLevel, OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; public static var OUp:Class = Mysteriez2L_OUp; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; public static var OWHighScoreLocal:Array = [[Mysteriez2S.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWMenu:Array = [[Mysteriez2S.HeaderM, 300, 20, cMainColors[4], Mysteriez2L.strWelcome, 0, 0, null, 0, true], [Mysteriez2S.HeaderM, 300, 18, cMainColors[5], Mysteriez2L.strChangePlayer, 0, 30, null, 0, true], [Mysteriez2S.BorderM, 330, 63, cMainColors[3], OWBorderM, -10, 0, null, 0, true], [Mysteriez2S.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [Mysteriez2S.ColorTextM, 15, cMainColors[4], Mysteriez2L.strPlayersOnline.toLowerCase(), null, -5, 35, "iPlayers", 0, true], [Mysteriez2S.MakeNewButton, 155, 40, cMainColors[5], cMainColors[2], 30, Mysteriez2L.strPlayOnline, 70, 100, "iPlayOnlineStrategy", 0, true], [Mysteriez2S.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strOptions, 87, 180, "iOptions", 0, true], [Mysteriez2S.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strHighScores, 87, 215, "iHighScores", 0, true], [Mysteriez2S.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strInstructions, 87, 250, "iInstructions", 0, true], [Mysteriez2S.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strMoreGames, 87, 285, "iMoreGames", 0, true]]; public static var OWHighScorePersonal:Array = [[Mysteriez2S.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [Mysteriez2S.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; private static var OWGameScoreFM:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameScoreElementM, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 17, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 34, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 51, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 68, 0, "iDigits", 4, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 85, 0, "iDigits", 5, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 102, 0, "iDigits", 6, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 119, 0, "iDigits", 7, true], [ODisplay.IDisplayObjectMake, OWGameScoreElementM, 136, 0, "iDigits", 8, true]], 17, 30]; public static var OLoop:Class = Mysteriez2L_OLoop; public static var OWOptions:Array = [[Mysteriez2S.HeaderM, 200, 40, cMainColors[0], Mysteriez2L.strOptions, 240, 90, null, 0, true], [Mysteriez2S.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], Mysteriez2L.strSound, Mysteriez2L.iWOptionsVolume, 187, 200, "iSound", 0, true], [Mysteriez2S.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], Mysteriez2L.strMusic, Mysteriez2L.iWOptionsVolume, 187, 250, "iMusic", 0, true], [Mysteriez2S.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], Mysteriez2L.strFullScreen, Mysteriez2L.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [Mysteriez2S.MakeNewButton, 70, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strAccept, 260, 405, "iAccept", 0, true], [Mysteriez2S.MakeNewButton, 70, 30, cMainColors[5], cMainColors[2], 20, Mysteriez2L.strCancel, 360, 405, "iCancel", 0, true], [Mysteriez2S.BorderM, 290, 150, cMainColors[3], OBorderM, 197, 160, null, 0, true], [Mysteriez2S.BorderM, 290, 80, cMainColors[3], OBorderM, 197, 320, null, 0, true]]; private static var OGNumberCounter:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OGNumberCounterElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterElement, 15, 0, "iDigits", 1, true]], 30, 28]; public static var OWInstructions:Array = [[Mysteriez2S.HeaderM, 600, 50, cMainColors[0], Mysteriez2L.strHowToPlay, 0, -10, null, 0, true], [Mysteriez2S.BorderM, 318, 318, cMainColors[3], Mysteriez2L.ODemoBorder, 125, 125, "iBorder", 0, true], [Mysteriez2S.MakeBitmapFromLib, 28, 90, Mysteriez2L.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [Mysteriez2S.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 35, Mysteriez2L.strClose, 645, 460, "iClose", 0, true]]; public static var OGFind:Array = [[Mysteriez2S.ColorHeader, 190, 28, FindColors1, strFind, OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [Mysteriez2S.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; private static var OWGameNotCompletedLevelM:Array = [[Mysteriez2S.HeaderM, 600, 60, 10040115, strTimeIsUp, 0, 0, null, 0, true], [Mysteriez2S.HeaderM, 600, 35, 10040115, strPrToCont, 0, 70, null, 0, true]]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; public static var iMP:OMultiplayer = new OMultiplayer(sDebug); public static var OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; public static var OBook:Class = Mysteriez2L_OBook; public static var OWInfoPPlayer:Array = [[Mysteriez2S.ColorHeaderM, 190, 20, Mysteriez2L.OWInfoColors, Mysteriez2L.strLevel.toLowerCase(), null, 10, 37, null, 0, true]]; private static var OWGameLevelF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameLevelElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameLevelElement, 14, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameLevelElement, 28, 0, "iDigits", 2, true]], 28, 20]; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var iGAME:OGame = new OCGame(); public static var OWDemo:Array = [Mysteriez2S.MakeTextButton, 130, 35, "magenta", "magenta", 20, strMissed, 305, 140, null, 0, false]; private static var OWGameLevelFM:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameLevelElementM, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameLevelElementM, 14, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameLevelElementM, 28, 0, "iDigits", 2, true]], 28, 20]; public static function set GameType(_arg1:int):void{ iGameType = _arg1; iGAME.prMode = iGameType; } public static function get GameType():int{ return (iGameType); } } }//package
Section 120
//Mysteriez2L_FallParticle (Mysteriez2L_FallParticle) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_FallParticle extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 121
//Mysteriez2L_OBack (Mysteriez2L_OBack) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OBack extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 122
//Mysteriez2L_OBG01 (Mysteriez2L_OBG01) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OBG01 extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 123
//Mysteriez2L_OBook (Mysteriez2L_OBook) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OBook extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 124
//Mysteriez2L_OBorder (Mysteriez2L_OBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OBorder extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 125
//Mysteriez2L_OBorderM (Mysteriez2L_OBorderM) package { import mx.core.*; public class Mysteriez2L_OBorderM extends SpriteAsset { } }//package
Section 126
//Mysteriez2L_OButMC (Mysteriez2L_OButMC) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OButMC extends MovieClipAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 127
//Mysteriez2L_OChoosePBorder (Mysteriez2L_OChoosePBorder) package { import mx.core.*; public class Mysteriez2L_OChoosePBorder extends SpriteAsset { } }//package
Section 128
//Mysteriez2L_OConfirmBorder (Mysteriez2L_OConfirmBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OConfirmBorder extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 129
//Mysteriez2L_OCursor (Mysteriez2L_OCursor) package { import mx.core.*; public class Mysteriez2L_OCursor extends SpriteAsset { } }//package
Section 130
//Mysteriez2L_ODemoBorder (Mysteriez2L_ODemoBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_ODemoBorder extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 131
//Mysteriez2L_ODown (Mysteriez2L_ODown) package { import mx.core.*; public class Mysteriez2L_ODown extends SpriteAsset { } }//package
Section 132
//Mysteriez2L_OEnterBorder (Mysteriez2L_OEnterBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OEnterBorder extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 133
//Mysteriez2L_OFont (Mysteriez2L_OFont) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OFont extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 134
//Mysteriez2L_OFontArial (Mysteriez2L_OFontArial) package { import mx.core.*; public class Mysteriez2L_OFontArial extends SpriteAsset { } }//package
Section 135
//Mysteriez2L_OGameBorder (Mysteriez2L_OGameBorder) package { import mx.core.*; public class Mysteriez2L_OGameBorder extends SpriteAsset { } }//package
Section 136
//Mysteriez2L_OGameLoop (Mysteriez2L_OGameLoop) package { import mx.core.*; public class Mysteriez2L_OGameLoop extends SpriteAsset { } }//package
Section 137
//Mysteriez2L_OGameNameM (Mysteriez2L_OGameNameM) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OGameNameM extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 138
//Mysteriez2L_OGameVersion (Mysteriez2L_OGameVersion) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OGameVersion extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 139
//Mysteriez2L_OIDown (Mysteriez2L_OIDown) package { import mx.core.*; public class Mysteriez2L_OIDown extends SpriteAsset { } }//package
Section 140
//Mysteriez2L_OILeft (Mysteriez2L_OILeft) package { import mx.core.*; public class Mysteriez2L_OILeft extends SpriteAsset { } }//package
Section 141
//Mysteriez2L_OIRight (Mysteriez2L_OIRight) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OIRight extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 142
//Mysteriez2L_OIUp (Mysteriez2L_OIUp) package { import mx.core.*; public class Mysteriez2L_OIUp extends SpriteAsset { } }//package
Section 143
//Mysteriez2L_OLeft (Mysteriez2L_OLeft) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OLeft extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 144
//Mysteriez2L_OLoop (Mysteriez2L_OLoop) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OLoop extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 145
//Mysteriez2L_OLoopOnBook (Mysteriez2L_OLoopOnBook) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OLoopOnBook extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 146
//Mysteriez2L_OPlayBook (Mysteriez2L_OPlayBook) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OPlayBook extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 147
//Mysteriez2L_OResultBorder (Mysteriez2L_OResultBorder) package { import mx.core.*; public class Mysteriez2L_OResultBorder extends SpriteAsset { } }//package
Section 148
//Mysteriez2L_ORight (Mysteriez2L_ORight) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_ORight extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 149
//Mysteriez2L_OSBubbleBang01 (Mysteriez2L_OSBubbleBang01) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang01 extends SoundAsset { } }//package
Section 150
//Mysteriez2L_OSBubbleBang02 (Mysteriez2L_OSBubbleBang02) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang02 extends SoundAsset { } }//package
Section 151
//Mysteriez2L_OSBubbleBang03 (Mysteriez2L_OSBubbleBang03) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang03 extends SoundAsset { } }//package
Section 152
//Mysteriez2L_OSBubbleBang04 (Mysteriez2L_OSBubbleBang04) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang04 extends SoundAsset { } }//package
Section 153
//Mysteriez2L_OSBubbleBang05 (Mysteriez2L_OSBubbleBang05) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang05 extends SoundAsset { } }//package
Section 154
//Mysteriez2L_OSBubbleBang06 (Mysteriez2L_OSBubbleBang06) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang06 extends SoundAsset { } }//package
Section 155
//Mysteriez2L_OSBubbleBang07 (Mysteriez2L_OSBubbleBang07) package { import mx.core.*; public class Mysteriez2L_OSBubbleBang07 extends SoundAsset { } }//package
Section 156
//Mysteriez2L_OScoresBorder (Mysteriez2L_OScoresBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OScoresBorder extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 157
//Mysteriez2L_OSelectBorder (Mysteriez2L_OSelectBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OSelectBorder extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 158
//Mysteriez2L_OSiteM (Mysteriez2L_OSiteM) package { import mx.core.*; public class Mysteriez2L_OSiteM extends SpriteAsset { } }//package
Section 159
//Mysteriez2L_OSmallGraphic (Mysteriez2L_OSmallGraphic) package { import mx.core.*; public class Mysteriez2L_OSmallGraphic extends SpriteAsset { } }//package
Section 160
//Mysteriez2L_OStart (Mysteriez2L_OStart) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OStart extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 161
//Mysteriez2L_OStop (Mysteriez2L_OStop) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OStop extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 162
//Mysteriez2L_OTimerBorder (Mysteriez2L_OTimerBorder) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OTimerBorder extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 163
//Mysteriez2L_OUnLoop (Mysteriez2L_OUnLoop) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OUnLoop extends SpriteAsset { public var iBorder:DisplayObject; public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 164
//Mysteriez2L_OUp (Mysteriez2L_OUp) package { import mx.core.*; public class Mysteriez2L_OUp extends SpriteAsset { } }//package
Section 165
//Mysteriez2L_OWBorderM (Mysteriez2L_OWBorderM) package { import flash.display.*; import mx.core.*; public class Mysteriez2L_OWBorderM extends SpriteAsset { public var Site:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; } }//package
Section 166
//Mysteriez2S (Mysteriez2S) package { import ENGINE.DISPLAY.*; import flash.display.*; import flash.geom.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.INTERFACE.ELEMENTS.*; import RES.OBJECTS.TEXTBUTTON.*; import RES.OBJECTS.*; import ENGINE.DISPLAY.EFFECTS.*; import flash.text.*; import ENGINE.CORE.*; import flash.filters.*; import ENGINE.SKIN.*; public class Mysteriez2S { private static const cAlign:Array = [TextFormatAlign.LEFT, TextFormatAlign.CENTER, TextFormatAlign.RIGHT]; public static var iRegistered:Boolean = Mysteriez2S.Register(); public static function HeaderM(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Array; var _local4:Number; var _local5:Sprite; var _local6:TextField; var _local7:TextFormat; var _local8:Sprite; var _local9:Sprite; var _local10:OBitmap; _local2 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; _local3 = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; _local4 = Math.round((1 + (_arg1[1] / 70))); _local5 = ((Mysteriez2L.OFont is Sprite)) ? (Mysteriez2L.OFont as Sprite) : new ((Mysteriez2L.OFont as Class)); if (!(_local5.getChildAt(0) is TextField)){ return (null); }; _local6 = (_local5.getChildAt(0) as TextField); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.text = _arg1[4]; _local6.thickness = 150; _local6.sharpness = -100; _local6.antiAliasType = AntiAliasType.ADVANCED; _local6.thickness = 150; _local6.sharpness = -100; _local7 = _local6.defaultTextFormat; _local7.size = _arg1[2]; _local7.align = "center"; _local6.width = (_local6.text.length * _arg1[2]); _local6.setTextFormat(_local7); _local8 = new Sprite(); _local8.addChild(_local6); _local8.width = _arg1[1]; _local6.x = ((_local8.width - _local6.width) / 2); _local9 = Mysteriez2S.MakeColorSprite([_local8, _arg1[3]]); _local10 = OBitmap.MakeTmp(_local9, 1, _arg1[5], _arg1[6]); return (_local10); } public static function BorderM(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:Number; var _local4:Number; var _local5:Sprite; var _local6:Sprite; var _local7:OBitmap; _local2 = new (_arg1[4]); _local3 = (_arg1[1] / _local2.width); _local4 = (_arg1[2] / _local2.height); _local5 = new Sprite(); _local2.scaleX = _local3; _local2.scaleY = _local4; _local2.x = 0; _local2.y = 0; _local5.addChild(_local2); _local5.width = _arg1[1]; _local5.height = _arg1[2]; _local6 = Mysteriez2S.MakeColorSprite([_local5, _arg1[3]]); _local7 = OBitmap.MakeTmp(_local6, 1, _arg1[5], _arg1[6]); return (_local7); } private static function Register():Boolean{ OEffects.RegisterEffect("GEL", new OEffectGel()); OEffects.RegisterColor("GEL", "red", {iCH:0, iCS:0.5, iCB:0.99, iSH:345, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "red1", {iCH:30, iCS:0.5, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "yellow", {iCH:60, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "yellow1", {iCH:90, iCS:0.6, iCB:0.99, iSH:105, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "green", {iCH:120, iCS:0.5, iCB:0.99, iSH:105, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "green1", {iCH:150, iCS:0.5, iCB:0.99, iSH:165, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "aqua", {iCH:180, iCS:0.4, iCB:0.99, iSH:165, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "aqua1", {iCH:210, iCS:0.4, iCB:0.99, iSH:225, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "blue", {iCH:240, iCS:0.3, iCB:0.99, iSH:225, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "blue1", {iCH:270, iCS:0.3, iCB:0.99, iSH:295, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "magenta", {iCH:300, iCS:0.4, iCB:0.99, iSH:295, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "magenta1", {iCH:330, iCS:0.4, iCB:0.99, iSH:345, iSS:0.9, iSB:0.6}); OEffects.RegisterColor("GEL", "white", {iCH:0, iCS:0, iCB:0.97, iSH:0, iSS:0, iSB:0.7}); OEffects.RegisterFilter("GEL", "bpanel", {iBorder:24, iAngle:90, iF0SD:16, iF0SB:11, iF1SD:16, iF1SB:23, iF1GB:8, iF1GA:0.5, iF2GGD1:-4, iF2GGB1:18, iF2GGC1:230, iF2GGD2:4, iF2GGB2:16, iF2GGC2:170, iF2B:2}); OEffects.RegisterFilter("GEL", "text 20", {iBorder:8, iAngle:90, iF0SD:3, iF0SB:6, iF1SD:5, iF1SB:6, iF1GB:1, iF1GA:1, iF2GGD1:0, iF2GGB1:3, iF2GGC1:240, iF2GGD2:3, iF2GGB2:4, iF2GGC2:130, iF2B:2}); OEffects.RegisterFilter("GEL", "text 30", {iBorder:8, iAngle:90, iF0SD:3, iF0SB:6, iF1SD:5, iF1SB:6, iF1GB:1, iF1GA:1, iF2GGD1:0, iF2GGB1:3, iF2GGC1:240, iF2GGD2:3, iF2GGB2:4, iF2GGC2:130, iF2B:2}); OEffects.RegisterFilter("GEL", "text 40", {iBorder:8, iAngle:90, iF0SD:4, iF0SB:8, iF1SD:6, iF1SB:7, iF1GB:1, iF1GA:1, iF2GGD1:0, iF2GGB1:5, iF2GGC1:230, iF2GGD2:3, iF2GGB2:6, iF2GGC2:170, iF2B:2}); OEffects.RegisterFilter("GEL", "text 50", {iBorder:12, iAngle:90, iF0SD:5, iF0SB:10, iF1SD:7, iF1SB:8, iF1GB:1, iF1GA:1, iF2GGD1:-1, iF2GGB1:6, iF2GGC1:240, iF2GGD2:4, iF2GGB2:6, iF2GGC2:130, iF2B:2}); OEffects.RegisterFilter("GEL", "text 60", {iBorder:14, iAngle:90, iF0SD:6, iF0SB:12, iF1SD:8, iF1SB:10, iF1GB:1, iF1GA:1, iF2GGD1:-1, iF2GGB1:8, iF2GGC1:230, iF2GGD2:4, iF2GGB2:8, iF2GGC2:150, iF2B:2}); OEffects.RegisterFilter("GEL", "text 70", {iBorder:14, iAngle:90, iF0SD:6, iF0SB:12, iF1SD:9, iF1SB:10, iF1GB:1, iF1GA:1, iF2GGD1:-1, iF2GGB1:10, iF2GGC1:230, iF2GGD2:4, iF2GGB2:10, iF2GGC2:155, iF2B:2}); OEffects.RegisterFilter("GEL", "text 80", {iBorder:15, iAngle:90, iF0SD:7, iF0SB:13, iF1SD:11, iF1SB:11, iF1GB:1, iF1GA:1, iF2GGD1:-2, iF2GGB1:12, iF2GGC1:230, iF2GGD2:4, iF2GGB2:12, iF2GGC2:160, iF2B:2}); OEffects.RegisterFilter("GEL", "text 90", {iBorder:16, iAngle:90, iF0SD:8, iF0SB:14, iF1SD:12, iF1SB:12, iF1GB:1, iF1GA:1, iF2GGD1:-2, iF2GGB1:14, iF2GGC1:230, iF2GGD2:4, iF2GGB2:14, iF2GGC2:170, iF2B:2}); OEffects.RegisterFilter("GEL", "spanel", {iBorder:16, iAngle:90, iF0SD:8, iF0SB:14, iF1SD:12, iF1SB:12, iF1GB:6, iF1GA:0.5, iF2GGD1:-2, iF2GGB1:14, iF2GGC1:230, iF2GGD2:4, iF2GGB2:14, iF2GGC2:170, iF2B:2}); OEffects.RegisterFilter("GEL", "border", {iBorder:8, iAngle:60, iF0SD:3, iF0SB:6, iF1SD:6, iF1SB:4, iF1GB:2, iF1GA:0.25, iF2GGD1:0.2, iF2GGB1:3, iF2GGC1:240, iF2GGD2:3, iF2GGB2:4, iF2GGC2:150, iF2B:2}); OEffects.RegisterFilter("GEL", "bpanel ns", {iBorder:8, iAngle:90, iF0SD:0, iF0SB:11, iF1SD:16, iF1SB:23, iF1GB:8, iF1GA:0.5, iF2GGD1:-4, iF2GGB1:18, iF2GGC1:230, iF2GGD2:4, iF2GGB2:16, iF2GGC2:170, iF2B:2}); OEffects.RegisterFilter("GEL", "spanel ns", {iBorder:16, iAngle:90, iF0SD:0, iF0SB:16, iF1SD:12, iF1SB:16, iF1GB:6, iF1GA:0.5, iF2GGD1:-2, iF2GGB1:14, iF2GGC1:230, iF2GGD2:4, iF2GGB2:12, iF2GGC2:180, iF2B:2}); OEffects.RegisterFilter("GEL", "border ns", {iBorder:8, iAngle:60, iF0SD:0, iF0SB:6, iF1SD:6, iF1SB:4, iF1GB:2, iF1GA:0.25, iF2GGD1:0.2, iF2GGB1:3, iF2GGC1:240, iF2GGD2:3, iF2GGB2:4, iF2GGC2:150, iF2B:2}); return (true); } public static function MakeSpriteButton(_arg1:Array):OButton{ var _local2:Array; var _local3:OButton; _local2 = [[ODisplay.OBitmapSpriteFillRect, _arg1[1], _arg1[2], [ODisplay.SpriteLib, _arg1[5]], "GEL", _arg1[3], _arg1[6], _arg1[7], 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local3 = new OButton(_local2); _local3.Pos(OGlobal.ScaleFloor(_arg1[8]), OGlobal.ScaleFloor(_arg1[9])); return (_local3); } public static function SmallFrame(_arg1:Array):OBitmap{ return (ODisplay.OBitmapRoundFrame([null, _arg1[1], _arg1[2], 24, 5, "GEL", _arg1[3], "border", 1, _arg1[4], "spanel ns", 1, OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])])); } public static function SmallFrameM(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Sprite; _local2 = _arg1[3]; _local3 = new Sprite(); _local3.graphics.beginFill(_arg1[4]); _local3.graphics.drawRoundRectComplex(0, 0, _arg1[1], _arg1[2], _local2, _local2, _local2, _local2); _local3.graphics.endFill(); return (OBitmap.MakeTmp(_local3, 1, OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6]))); } public static function ListBoxText(_arg1:Array):OListBox{ var _local2:Number; var _local3:Number; var _local4:Array; var _local5:Array; var _local6:Array; var _local7:int; var _local8:OListBox; _local2 = (_arg1[1] + 80); _local3 = ((_arg1[2] * _arg1[5]) + 30); _local4 = [[Mysteriez2S.SmallBorder, _local2, _local3, _arg1[3], 0, 0, null, 0, true], [Mysteriez2S.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], Mysteriez2L.OIUp, "text 60", 1, (_local2 - 50), 20, "iUp", 0, false], [Mysteriez2S.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], Mysteriez2L.OIDown, "text 60", 1, (_local2 - 50), (_local3 - 50), "iDown", 0, false]]; _local5 = [Mysteriez2S.ListBoxTextElement, _arg1[1], _arg1[2], _arg1[3], "w", _arg1[4], 0, 0]; _local6 = new Array(_arg1[5]); _local7 = 0; while (_local7 < _arg1[5]) { _local6[_local7] = [15, ((_local7 * _arg1[2]) + 15)]; _local7++; }; _local8 = new OListBox(_local4, _local5, Mysteriez2S.ListBoxTextElementP, _local6, null); _local8.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local8.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local8.prLBParams = _arg1[6]; _local8.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); return (_local8); } public static function MakeNewButton(_arg1:Array):OMButton{ var _local2:String; var _local3:MovieClip; var _local4:Number; var _local5:Number; var _local6:Array; var _local7:OMButton; _local2 = (_arg1[6] as String).toLowerCase(); _local3 = new Mysteriez2L.OButMC(); _local4 = (_arg1[1] * OGlobal.Scale); _local5 = (_arg1[2] * OGlobal.Scale); _local3.iBorder.scaleX = (_local4 / _local3.iBorder.width); _local3.iBorder.scaleY = (_local5 / _local3.iBorder.height); _local3.iBorder.x = 0; _local3.iBorder.y = (2 * OGlobal.Scale); _local6 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [Mysteriez2S.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], _arg1[4], _local2, 1, 2, -4, 0, "iTextOver", 0, false], [Mysteriez2S.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], 12431251, _local2, 1, 2, -4, 0, "iTextShadow", 0, true], [Mysteriez2S.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], _arg1[3], _local2, 1, 2, -4, 0, "iTextOut", 0, true]]; _local7 = new OMButton(_local6, OAnimatorManager.iNullAnimators); _local7.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); _local7.prVisible = true; _local7.prActive = true; (_local7.iTextOut as OBitmap).y = (-(Math.abs((_local3.iBorder.height - (_local7.iTextOut as OBitmap).height))) / 1.5); (_local7.iTextOver as OBitmap).y = (_local7.iTextOut as OBitmap).y; (_local7.iTextShadow as OBitmap).y = (_local7.iTextOut as OBitmap).y; (_local7.iTextShadow as OBitmap).x = ((_local7.iTextOut as OBitmap).x + (1 * OGlobal.Scale)); _local3.x = 0; _local3.y = 0; _local3.mouseChildren = false; _local7.addChild(_local3); _local7.swapChildrenAt(1, 4); return (_local7); } public static function ListBoxTextM(_arg1:Array):OListBox{ var _local2:Number; var _local3:Number; var _local4:Array; var _local5:Array; var _local6:Array; var _local7:int; var _local8:OListBox; _local2 = (_arg1[1] + 63); _local3 = ((_arg1[2] * _arg1[5]) + 30); _local4 = [[Mysteriez2S.BorderM, _local2, _local3, _arg1[3], Mysteriez2L.OChoosePBorder, 0, 0, null, 0, true], [Mysteriez2S.MakeSpriteButtonM, 30, 30, Mysteriez2L.OUp, (_local2 - 40), 20, "iUp", 0, false], [Mysteriez2S.MakeSpriteButtonM, 30, 30, Mysteriez2L.ODown, (_local2 - 40), (_local3 - 50), "iDown", 0, false]]; _local5 = [Mysteriez2S.ListBoxTextElementM, _arg1[1], _arg1[2], _arg1[3], "w", _arg1[4], 0, 0]; _local6 = new Array(_arg1[5]); _local7 = 0; while (_local7 < _arg1[5]) { _local6[_local7] = [15, ((_local7 * _arg1[2]) + 15)]; _local7++; }; _local8 = new OListBox(_local4, _local5, Mysteriez2S.ListBoxTextElementP, _local6, null); _local8.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local8.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local8.prLBParams = _arg1[6]; _local8.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); return (_local8); } public static function Text(_arg1:Array):OBitmap{ var _local2:Number; var _local3:String; _local2 = Math.round((1 + (_arg1[1] / 70))); _local3 = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90))); return (ODisplay.OBitmapText([null, Mysteriez2L.OFont, _arg1[1], _local2, _arg1[3], "GEL", _arg1[2], _local3, 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])])); } public static function ListBoxTextHSlider(_arg1:Array):OListBox{ var _local2:Number; var _local3:Number; var _local4:String; var _local5:Rectangle; var _local6:Number; var _local7:Array; var _local8:Array; var _local9:Array; var _local10:Array; var _local11:OListBox; _local2 = _arg1[6]; _local3 = Math.round((1 + (_local2 / 70))); _local4 = ("text " + String((Math.round((_local2 / 10)) * 10))); _local5 = ODisplay.TextRect(Mysteriez2L.OFont, _local2, _local3, _arg1[8]); _local6 = (_arg1[6] - 10); _local7 = (_arg1[4]) ? [[Mysteriez2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); _local8 = [[ODisplay.OBitmapText, Mysteriez2L.OFont, _local2, _local3, _arg1[8], "GEL", _arg1[3], _local4, 1, 15, ((_arg1[2] - _local5.height) * 0.5), null, 0, true], [Mysteriez2S.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], Mysteriez2L.OILeft, "text 60", 1, ((_arg1[1] - _arg1[5]) - 75), ((_arg1[2] - _local6) * 0.5), "iUp", 0, false], [Mysteriez2S.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], Mysteriez2L.OIRight, "text 60", 1, (_arg1[1] - 45), ((_arg1[2] - _local6) * 0.5), "iDown", 0, false]]; _local7 = _local7.concat(_local8); _local9 = [Mysteriez2S.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[7], "w", _arg1[7], 0, 0]; _local10 = [[((_arg1[1] - 45) - _arg1[5]), ((_arg1[2] - _arg1[6]) * 0.5)]]; _local11 = new OListBox(_local7, _local9, Mysteriez2S.ListBoxTextElementP, _local10, null); _local11.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local11.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local11.prSelection = false; _local11.prCycling = true; _local11.prLBParams = _arg1[9]; _local11.Pos(OGlobal.ScaleFloor(_arg1[10]), OGlobal.ScaleFloor(_arg1[11])); return (_local11); } public static function ColorText(_arg1:Array):OIObject{ var _local2:Number; var _local3:String; var _local4:Sprite; var _local5:TextField; var _local6:TextFormat; var _local7:Array; var _local8:int; var _local9:int; var _local10:OIObject; var _local11:String; var _local12:Rectangle; _local2 = Math.round((1 + (_arg1[1] / 70))); _local3 = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90))); _local4 = ((Mysteriez2L.OFont is Sprite)) ? (Mysteriez2L.OFont as Sprite) : new ((Mysteriez2L.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; _local5 = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[3]; _local6 = _local5.defaultTextFormat; _local6.size = _arg1[1]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); _local7 = new Array(); _local8 = 0; _local9 = 0; while (_local9 < _local5.length) { _local11 = _arg1[3].substr(_local9, 1); if (_local11 == " "){ } else { _local12 = _local5.getCharBoundaries(_local9); var _temp1 = _local8; _local8 = (_local8 + 1); _local7.push([ODisplay.OBitmapMake, [ODisplay.SpriteText, Mysteriez2L.OFont, _arg1[1], _local2, _local11], 1, "GEL", _arg1[2][_temp1], _local3, 1, _local12.x, _local12.y, null, 0, true]); }; _local9++; }; _local10 = new OIObject(_local7, _arg1[4]); _local10.Pos(OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])); return (_local10); } public static function TextAlignMy(_arg1:Array):OBitmap{ var _local2:Number; var _local3:int; var _local4:String; _local2 = Math.round((1 + (_arg1[2] / 70))); _local3 = Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)); _local4 = ("text " + String(_local3)); return (ODisplay.OBitmapTextAlign([null, Mysteriez2L.OFont, _arg1[3], _local2, _arg1[5], _arg1[6], _arg1[7], "GEL", _arg1[4], _local4, _arg1[8], _arg1[1], _arg1[2], OGlobal.ScaleFloor(_arg1[9]), OGlobal.ScaleFloor(_arg1[10])])); } public static function TextAlignM(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Array; var _local4:OSprite; var _local5:TextField; var _local6:TextFormat; var _local7:Sprite; var _local8:Sprite; _local2 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; _local3 = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; _local4 = new OSprite(); _local5 = new TextField(); _local5.text = _arg1[5]; if (_arg1.length >= 14){ _local5.wordWrap = true; }; _local5.height = _arg1[2]; _local5.width = _arg1[1]; _local5.thickness = 150; _local5.sharpness = -100; _local6 = _local5.getTextFormat(); _local6.font = Mysteriez2L.cFontName; _local5.embedFonts = true; _local6.align = cAlign[_arg1[6]]; _local6.size = _arg1[3]; _local5.setTextFormat(_local6); _local4.addChild(_local5); _local5.antiAliasType = AntiAliasType.ADVANCED; _local7 = Mysteriez2S.MakeColorSprite([_local4, _arg1[4]]); _local8 = new Sprite(); _local8.graphics.beginFill(0, 0); _local8.graphics.drawRect(0, 0, _arg1[1], _arg1[2]); _local8.graphics.endFill(); _local8.addChild(_local7); return (OBitmap.MakeTmp(_local8, 1, _arg1[8], _arg1[9])); } public static function HeaderArial(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Sprite; var _local4:TextField; var _local5:TextFormat; var _local6:Sprite; var _local7:Sprite; var _local8:OBitmap; _local2 = Math.round((1 + (_arg1[1] / 70))); _local3 = ((Mysteriez2L.OFontArial is Sprite)) ? (Mysteriez2L.OFontArial as Sprite) : new ((Mysteriez2L.OFontArial as Class)); if (!(_local3.getChildAt(0) is TextField)){ return (null); }; _local4 = (_local3.getChildAt(0) as TextField); _local4.autoSize = TextFieldAutoSize.LEFT; _local4.text = _arg1[4]; _local4.thickness = 150; _local4.sharpness = -100; _local4.antiAliasType = AntiAliasType.ADVANCED; _local4.thickness = 150; _local4.sharpness = -100; _local5 = _local4.defaultTextFormat; _local5.size = _arg1[2]; _local5.align = "center"; _local4.width = (_local4.text.length * _arg1[2]); _local4.setTextFormat(_local5); _local6 = new Sprite(); _local6.addChild(_local4); _local6.width = _arg1[1]; _local4.x = ((_local6.width - _local4.width) / 2); _local7 = Mysteriez2S.MakeColorSprite([_local6, _arg1[3]]); _local8 = OBitmap.MakeTmp(_local7, 1, _arg1[5], _arg1[6]); return (_local8); } public static function ListBoxTextHSliderM(_arg1:Array):OListBox{ var _local2:Number; var _local3:Number; var _local4:String; var _local5:Rectangle; var _local6:Number; var _local7:Array; var _local8:Array; var _local9:Array; var _local10:Array; var _local11:OListBox; _local2 = _arg1[6]; _local3 = Math.round((1 + (_local2 / 70))); _local4 = ("text " + String((Math.round((_local2 / 10)) * 10))); _local5 = ODisplay.TextRect(Mysteriez2L.OFont, _local2, _local3, _arg1[8]); _local6 = (_arg1[6] - 10); _local7 = (_arg1[4]) ? [[Mysteriez2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); _local8 = [[Mysteriez2S.TextM, _arg1[2], _arg1[7], _arg1[8], 15, ((_arg1[2] - _local5.height) * 0.5), null, 0, true], [Mysteriez2S.MakeSpriteButtonM, _local6, _local6, Mysteriez2L.OLeft, (((_arg1[1] - _arg1[5]) - 45) - _local6), ((_arg1[2] - _local6) * 0.5), "iUp", 0, true], [Mysteriez2S.MakeSpriteButtonM, _local6, _local6, Mysteriez2L.ORight, (_arg1[1] - 45), ((_arg1[2] - _local6) * 0.5), "iDown", 0, true]]; _local7 = _local7.concat(_local8); _local9 = [Mysteriez2S.ListBoxTextElementM, _arg1[5], _arg1[6], _arg1[7], "w", _arg1[7], 0, 0]; _local10 = [[((_arg1[1] - 47) - _arg1[5]), ((_arg1[2] - _arg1[6]) * 0.5)]]; _local11 = new OListBox(_local7, _local9, Mysteriez2S.ListBoxTextElementP, _local10, null); _local11.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local11.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local11.prSelection = false; _local11.prCycling = true; _local11.prLBParams = _arg1[9]; _local11.Pos(OGlobal.ScaleFloor(_arg1[10]), OGlobal.ScaleFloor(_arg1[11])); return (_local11); } public static function MakeColorSprite(_arg1:Array):Sprite{ var _local2:OBM; var _local3:Sprite; var _local4:OBM; var _local5:Bitmap; var _local6:Sprite; _local2 = OBM.Make([null, [ODisplay.SpriteLib, _arg1[0]], (1 / OGlobal.Scale), 0, 0, 0]); _local3 = new Sprite(); _local3.graphics.beginFill(_arg1[1]); _local3.graphics.drawRect(_arg1[0].getBounds(_arg1[0]).x, _arg1[0].getBounds(_arg1[0]).y, _arg1[0].getBounds(_arg1[0]).width, _arg1[0].getBounds(_arg1[0]).height); _local3.graphics.endFill(); _local4 = OBM.Make([null, [ODisplay.SpriteLib, _local3], (1 / OGlobal.Scale), 0, 0, 0]); _local4.iBM.copyChannel(_local2.iBM, _local2.iBM.rect, new Point(_local2.iBM.rect.left, _local2.iBM.rect.top), BitmapDataChannel.ALPHA, BitmapDataChannel.ALPHA); _local5 = new Bitmap(_local4.iBM); _local6 = new Sprite(); _local6.addChild(_local5); _local5.x = _arg1[0].getBounds(_arg1[0]).x; _local5.y = _arg1[0].getBounds(_arg1[0]).y; _local5.smoothing = true; return (_local6); } public static function MakeCheckBoxM(_arg1:Array):OCheckBox{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Sprite; var _local7:Number; var _local8:Number; var _local9:Sprite; var _local10:Number; var _local11:Number; var _local12:Array; var _local13:OCheckBox; _local2 = Math.min(_arg1[1], _arg1[2]); _local3 = (_local2 / 150); _local4 = (100 * _local3); _local5 = 0.9; _local6 = new (_arg1[4]); _local7 = (((_local2 / Math.max(_local6.width, _local6.height)) * _local6.width) * _local5); _local8 = (((_local2 / Math.max(_local6.width, _local6.height)) * _local6.height) * _local5); _local9 = new (_arg1[5]); _local10 = (((_local2 / Math.max(_local9.width, _local9.height)) * _local9.width) * _local5); _local11 = (((_local2 / Math.max(_local9.width, _local9.height)) * _local9.height) * _local5); _local12 = [[Mysteriez2S.MakeBitmapFromLib, _local7, _local8, _arg1[4], 0, 0, "iCheck", 0, true], [Mysteriez2S.MakeBitmapFromLib, _local10, _local11, _arg1[5], 0, 0, "iUnCheck", 0, true], [InvisibleButton, _local7, _local8, 0, 0, "iHit", 0, true]]; _local13 = new OCheckBox(_local12); _local13.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local13); } public static function ColorHeaderM(_arg1:Array):OIObject{ var _local2:Number; var _local3:String; var _local4:Sprite; var _local5:TextField; var _local6:TextFormat; var _local7:Rectangle; var _local8:Number; var _local9:Array; var _local10:int; var _local11:int; var _local12:OIObject; var _local13:String; var _local14:Rectangle; _local2 = Math.round((1 + (_arg1[2] / 70))); _local3 = ("text " + String(Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)))); _local4 = ((Mysteriez2L.OFont is Sprite)) ? (Mysteriez2L.OFont as Sprite) : new ((Mysteriez2L.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; _local5 = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[4]; _local6 = _local5.defaultTextFormat; _local6.size = _arg1[2]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); _local7 = _local5.getBounds(_local4); _local8 = ((_arg1[1] - _local7.width) / 2); _local9 = new Array(); _local10 = 0; _local11 = 0; while (_local11 < _local5.length) { _local13 = _arg1[4].substr(_local11, 1); if (_local13 == " "){ } else { _local14 = _local5.getCharBoundaries(_local11); var _temp1 = _local10; _local10 = (_local10 + 1); _local9.push([TextM, _arg1[2], _arg1[3][(_temp1 % _arg1[3].length)], _local13, (_local14.x + _local8), _local14.y, null, 0, true]); }; _local11++; }; _local12 = new OIObject(_local9, _arg1[5]); _local12.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local12); } public static function MakeBitmapFromLib(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:OBitmap; _local2 = new (_arg1[3]); _local3 = OBitmap.MakeTmp(_local2, 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])); if (((!((_arg1[1] == 0))) && (!((_arg1[2] == 0))))){ _local3.scaleX = ((_arg1[1] / _local2.width) * OGlobal.Scale); _local3.scaleY = ((_arg1[2] / _local2.height) * OGlobal.Scale); }; _local3.smoothing = true; return (_local3); } public static function InvisibleButton(_arg1:Array):OButton{ var _local2:Array; var _local3:OButton; _local2 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local3 = new OButton(_local2, OAnimatorManager.iNullAnimators); _local3.Pos(OGlobal.ScaleFloor(_arg1[3]), OGlobal.ScaleFloor(_arg1[4])); _local3.prVisible = true; _local3.prActive = true; return (_local3); } public static function TextM(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Array; var _local4:Number; var _local5:Sprite; var _local6:TextField; var _local7:TextFormat; var _local8:Sprite; var _local9:Sprite; var _local10:OBitmap; _local2 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; _local3 = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; _local4 = Math.round((1 + (_arg1[1] / 70))); _local5 = ((Mysteriez2L.OFont is Sprite)) ? (Mysteriez2L.OFont as Sprite) : new ((Mysteriez2L.OFont as Class)); if (!(_local5.getChildAt(0) is TextField)){ return (null); }; _local6 = (_local5.getChildAt(0) as TextField); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.text = _arg1[3]; _local6.antiAliasType = AntiAliasType.ADVANCED; _local7 = _local6.defaultTextFormat; _local7.size = _arg1[1]; _local7.letterSpacing = _local4; _local6.setTextFormat(_local7); _local8 = new Sprite(); _local8.addChild(_local6); _local9 = Mysteriez2S.MakeColorSprite([_local8, _arg1[2]]); _local10 = OBitmap.MakeTmp(_local9, 1, _arg1[4], _arg1[5]); return (_local10); } public static function ListBoxTextVSlider(_arg1:Array):OListBox{ var _local2:Number; var _local3:Number; var _local4:String; var _local5:Rectangle; var _local6:Array; var _local7:Number; var _local8:Number; var _local9:Array; var _local10:Array; var _local11:Array; var _local12:OListBox; _local2 = _arg1[6]; _local3 = Math.round((1 + (_local2 / 70))); _local4 = ("text " + String((Math.round((_local2 / 10)) * 10))); _local5 = ODisplay.TextRect(Mysteriez2L.OFont, _local2, _local3, _arg1[9]); _local6 = [[((_arg1[1] - _arg1[5]) * 0.5), _arg1[7]]]; _local7 = (_arg1[6] - 10); _local8 = (_local6[0][1] + ((_arg1[6] - _local7) * 0.5)); _local9 = (_arg1[4]) ? [[Mysteriez2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); _local10 = [[ODisplay.OBitmapText, Mysteriez2L.OFont, _local2, _local3, _arg1[9], "GEL", _arg1[3], _local4, 1, ((_arg1[1] - _local5.width) * 0.5), _arg1[10], null, 0, true], [Mysteriez2S.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], Mysteriez2L.OILeft, "text 60", 1, (_local6[0][0] - _local7), _local8, "iUp", 0, false], [Mysteriez2S.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], Mysteriez2L.OIRight, "text 60", 1, (_local6[0][0] + _arg1[5]), _local8, "iDown", 0, false]]; _local9 = _local9.concat(_local10); _local11 = [Mysteriez2S.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[8], "w", _arg1[8], 0, 0]; _local12 = new OListBox(_local9, _local11, Mysteriez2S.ListBoxTextElementP, _local6, null); _local12.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local12.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators; _local12.prSelection = false; _local12.prCycling = true; _local12.prLBParams = _arg1[11]; _local12.Pos(OGlobal.ScaleFloor(_arg1[12]), OGlobal.ScaleFloor(_arg1[13])); return (_local12); } public static function MakeNFTextButton(_arg1:Array):OButton{ var _local2:Number; var _local3:String; var _local4:Array; var _local5:OButton; _local2 = Math.round((1 + (_arg1[5] / 70))); _local3 = ("text " + String(Math.max((Math.round((_arg1[5] / 10)) * 10), 30))); _local4 = [[ODisplay.OBitmapTextInRect, Mysteriez2L.OFont, _arg1[5], _local2, _arg1[6], "GEL", _arg1[3], _local3, 1, _arg1[1], _arg1[2], 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (24 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local5 = new OButton(_local4); _local5.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); return (_local5); } public static function MySmallBorder(_arg1:Array):OBitmap{ return (ODisplay.OBitmapRoundBorder([null, _arg1[1], _arg1[2], 24, 4, "GEL", _arg1[3], "border", 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])])); } public static function MakeSpriteButtonM(_arg1:Array):OButton{ var _local2:Array; var _local3:Sprite; var _local4:OSprite; var _local5:OButton; _local2 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local3 = new (_arg1[3]); _local3.scaleX = ((_arg1[1] * OGlobal.Scale) / _local3.width); _local3.scaleY = ((_arg1[2] * OGlobal.Scale) / _local3.height); _local4 = new OSprite(); _local4.addChild(_local3); _local4.prVisible = true; _local5 = new OButton(_local2); _local5.addChild(_local4); _local5.Pos(OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])); return (_local5); } public static function ColorTextArial(_arg1:Array):OIObject{ var _local2:Array; var _local3:OIObject; _local2 = new Array(); _local2.push([Mysteriez2S.TextArial, _arg1[1], _arg1[2], _arg1[3], _arg1[5], _arg1[6], null, 0, true]); _local3 = new OIObject(_local2, _arg1[4]); _local3.Pos(OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])); return (_local3); } public static function MakeTextButton(_arg1:Array):OButton{ var _local2:Number; var _local3:String; var _local4:Array; var _local5:OButton; _local2 = Math.round((1 + (_arg1[5] / 70))); _local3 = ("text " + String((Math.round((_arg1[5] / 10)) * 10))); _local4 = [[ODisplay.OBitmapRoundFrameText, _arg1[1], _arg1[2], 24, 5, "GEL", _arg1[3], "border", 1, _arg1[3], "spanel ns", 1, Mysteriez2L.OFont, _arg1[5], _local2, _arg1[6], "GEL", _arg1[3], _local3, 1, 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (24 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local5 = new OButton(_local4); _local5.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); return (_local5); } public static function ListBoxTextElementP(_arg1:Array, _arg2:String):void{ _arg1[4] = _arg2; } public static function ColorHeader(_arg1:Array):OIObject{ var _local2:Number; var _local3:String; var _local4:Sprite; var _local5:TextField; var _local6:TextFormat; var _local7:Rectangle; var _local8:Number; var _local9:Array; var _local10:int; var _local11:int; var _local12:OIObject; var _local13:String; var _local14:Rectangle; _local2 = Math.round((1 + (_arg1[2] / 70))); _local3 = ("text " + String(Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)))); _local4 = ((Mysteriez2L.OFont is Sprite)) ? (Mysteriez2L.OFont as Sprite) : new ((Mysteriez2L.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; _local5 = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[4]; _local6 = _local5.defaultTextFormat; _local6.size = _arg1[2]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); _local7 = _local5.getBounds(_local4); _local8 = ((_arg1[1] - _local7.width) / 2); _local9 = new Array(); _local10 = 0; _local11 = 0; while (_local11 < _local5.length) { _local13 = _arg1[4].substr(_local11, 1); if (_local13 == " "){ } else { _local14 = _local5.getCharBoundaries(_local11); var _temp1 = _local10; _local10 = (_local10 + 1); _local9.push([ODisplay.OBitmapMake, [ODisplay.SpriteText, Mysteriez2L.OFont, _arg1[2], _local2, _local13], 1, "GEL", _arg1[3][_temp1], _local3, 1, (_local14.x + _local8), _local14.y, null, 0, true]); }; _local11++; }; _local12 = new OIObject(_local9, _arg1[5]); _local12.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local12); } public static function ListBoxTextElement(_arg1:Array):OListBoxElement{ var _local2:Number; var _local3:Number; var _local4:String; var _local5:Array; var _local6:OListBoxElement; _local2 = (_arg1[2] - 10); if (_local2 < 30){ _local2 = 30; }; _local3 = Math.round((1 + (_local2 / 70))); _local4 = ("text " + String((Math.round((_local2 / 10)) * 10))); _local5 = [[ODisplay.OBitmapMake, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], 12, 6], 1, "GEL", _arg1[3], "border", 1, 0, 0, null, 0, false], [ODisplay.OBitmapMake, [ODisplay.SpriteTextInRect, Mysteriez2L.OFont, _local2, _local3, _arg1[4], _arg1[1], _arg1[2]], 1, "GEL", _arg1[5], _local4, 1, 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (12 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local6 = new OListBoxElement(_local5); _local6.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local6); } public static function ListBoxTextElementM(_arg1:Array):OListBoxElement{ var _local2:Array; var _local3:OListBoxElement; _local2 = [[Mysteriez2S.BorderM, _arg1[1], _arg1[2], _arg1[3], Mysteriez2L.OSelectBorder, 0, 0, null, 0, false], [Mysteriez2S.HeaderM, _arg1[1], (_arg1[2] / 2), _arg1[5], _arg1[4], 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (12 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; _local3 = new OListBoxElement(_local2); _local3.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local3); } public static function SmallBorder(_arg1:Array):OBitmap{ return (ODisplay.OBitmapRoundBorder([null, _arg1[1], _arg1[2], 24, 6, "GEL", _arg1[3], "border", 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])])); } public static function BigFrame(_arg1:Array):OBitmap{ return (ODisplay.OBitmapRoundFrame([null, _arg1[1], _arg1[2], 64, 8, "GEL", _arg1[3], "border", 1, _arg1[4], "spanel ns", 1, OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])])); } public static function RoundBorderM(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:Number; _local2 = new Sprite(); _local2.graphics.lineStyle(3, _arg1[3]); _local3 = _arg1[4]; _local2.graphics.drawRoundRectComplex(0, 0, _arg1[1], _arg1[2], _local3, _local3, _local3, _local3); return (OBitmap.MakeTmp(_local2, 1, _arg1[5], _arg1[6])); } public static function TextArial(_arg1:Array):OBitmap{ var _local2:Number; var _local3:Sprite; var _local4:TextField; var _local5:TextFormat; var _local6:Sprite; var _local7:Sprite; var _local8:OBitmap; _local2 = Math.round((1 + (_arg1[1] / 70))); _local3 = ((Mysteriez2L.OFontArial is Sprite)) ? (Mysteriez2L.OFontArial as Sprite) : new ((Mysteriez2L.OFontArial as Class)); if (!(_local3.getChildAt(0) is TextField)){ return (null); }; _local4 = (_local3.getChildAt(0) as TextField); _local4.autoSize = TextFieldAutoSize.LEFT; _local4.text = _arg1[3]; _local4.antiAliasType = AntiAliasType.ADVANCED; _local5 = _local4.defaultTextFormat; _local5.size = _arg1[1]; _local5.letterSpacing = _local2; _local4.setTextFormat(_local5); _local6 = new Sprite(); _local6.addChild(_local4); _local7 = Mysteriez2S.MakeColorSprite([_local6, _arg1[2]]); _local8 = OBitmap.MakeTmp(_local7, 1, _arg1[4], _arg1[5]); return (_local8); } public static function SmallRectBorder(_arg1:Array):OBitmap{ var _local2:int; var _local3:OSprite; var _local4:Number; _local2 = 5; _local3 = new OSprite(); _local3.graphics.beginFill(0); _local3.graphics.drawRect(0, 0, _arg1[1], _arg1[2]); _local3.graphics.drawRect(_local2, _local2, (_arg1[1] - (2 * _local2)), (_arg1[2] - (2 * _local2))); _local3.graphics.endFill(); _local4 = 0.5; return (ODisplay.OBitmapMake([null, [ODisplay.SpriteScaleRotate, [ODisplay.SpriteLib, _local3], 1, 0, 0, 0], 1, "GEL", _arg1[3], "border", _local4, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])])); } public static function TextAlign(_arg1:Array):OBitmap{ var _local2:Number; var _local3:int; var _local4:String; _local2 = Math.round((1 + (_arg1[2] / 70))); _local3 = Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)); _local4 = ("text " + String(_local3)); return (ODisplay.OBitmapTextAlign([null, Mysteriez2L.OFont, _arg1[3], _local2, _arg1[5], _arg1[6], _arg1[7], "GEL", _arg1[4], _local4, 1, _arg1[1], _arg1[2], OGlobal.ScaleFloor(_arg1[8]), OGlobal.ScaleFloor(_arg1[9])])); } public static function SmallBorderM(_arg1:Array):OBitmap{ var _local2:Sprite; var _local3:Number; _local2 = new Sprite(); _local2.graphics.lineStyle(3, _arg1[3]); _local3 = (_arg1[2] / 3); _local2.graphics.drawRoundRectComplex(0, 0, _arg1[1], _arg1[2], _local3, _local3, _local3, _local3); return (OBitmap.MakeTmp(_local2, 1, _arg1[4], _arg1[5])); } public static function Header(_arg1:Array):OBitmap{ var _local2:Number; var _local3:String; _local2 = Math.round((1 + (_arg1[2] / 70))); _local3 = ("text " + String(Math.min((Math.round((_arg1[2] / 10)) * 10), 90))); return (ODisplay.OBitmapTextInRect([null, Mysteriez2L.OFont, _arg1[2], _local2, _arg1[4], "GEL", _arg1[3], _local3, 1, _arg1[1], _arg1[2], OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])])); } public static function ColorTextM(_arg1:Array):OIObject{ var _local2:Number; var _local3:Array; var _local4:Array; var _local5:OIObject; _local2 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; _local3 = [new DropShadowFilter((4 * _local2), 45, 0, 0.2), new BevelFilter((3 * _local2), 45, 0xFFFFFF, 0.5, 0, 0.5, (2 * _local2), (2 * _local2))]; _local4 = new Array(); _local4.push([Mysteriez2S.TextM, _arg1[1], _arg1[2], _arg1[3], _arg1[5], _arg1[6], null, 0, true]); _local5 = new OIObject(_local4, _arg1[4]); _local5.Pos(OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])); return (_local5); } public static function InputText(_arg1:Array):OInput{ var _local2:Array; var _local3:OInput; _local2 = [[Mysteriez2S.BorderM, _arg1[1], _arg1[2], _arg1[3], Mysteriez2L.OEnterBorder, 0, 0, null, 0, true], [OInterface.OInputTextFieldMake, (_arg1[1] - 10), (_arg1[2] - 10), Mysteriez2L.OFont, (_arg1[2] / 2), 1, false, _arg1[5], _arg1[4], _arg1[6], 5, 2, "iText", 0, true]]; _local3 = new OInput(_local2); _local3.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8])); return (_local3); } public static function ActiveFrame(_arg1:Array):OSprite{ var _local2:OBitmap; var _local3:OSprite; _local2 = ODisplay.OBitmapRoundFrame([null, _arg1[1], _arg1[2], 20, 3, "GEL", _arg1[3], "border", 1, _arg1[3], "spanel ns", 1, OGlobal.ScaleFloor(0), OGlobal.ScaleFloor(0)]); _local3 = new OSprite(); _local3.addChild(_local2); _local3.Pos(_arg1[4], _arg1[5]); return (_local3); } } }//package
Section 167
//OCGame (OCGame) package { import ENGINE.GAME.*; public class OCGame extends OGame { public function OCGame(){ super(3, 5); } override public function DefaultInitLocalScores():void{ this.iScores.Clear(0); this.iScores.AddScore("Emily", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Michael", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Jacob", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Isabella", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3))); this.iScores.AddScore("Madison", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3))); this.iScores.SortOn(0); } } }//package

Library Items

Symbol 1 Sound {Mysteriez2L_OSBubbleBang06} [Mysteriez2L_OSBubbleBang06]
Symbol 2 FontUsed by:3 61 66 69
Symbol 3 TextUses:2Used by:4
Symbol 4 MovieClip {Mysteriez2L_OSiteM} [MSite]Uses:3
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClip {Mysteriez2L_OIUp} [OIUp]Uses:5
Symbol 7 Sound {Mysteriez2L_OSBubbleBang01} [Mysteriez2L_OSBubbleBang01]
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip {Mysteriez2L_OGameBorder} [GameBorderM]Uses:8
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip {Mysteriez2L_ODown} [Down]Uses:10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip {Mysteriez2L_OBorderM} [MBorder]Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {Mysteriez2L_OResultBorder} [ResultBorderM]Uses:14
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {Mysteriez2L_OChoosePBorder} [ChoosePBorderM]Uses:16
Symbol 18 FontUsed by:19
Symbol 19 EditableTextUses:18Used by:20
Symbol 20 MovieClip {Mysteriez2L_OFontArial} [OFontA]Uses:19
Symbol 21 GraphicUsed by:45
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:45
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:24Used by:45
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:26Used by:45
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:45
Symbol 30 GraphicUsed by:45
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:45
Symbol 33 FontUsed by:34 38 40 61
Symbol 34 TextUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:45
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:45
Symbol 38 TextUses:33Used by:41
Symbol 39 GraphicUsed by:41
Symbol 40 TextUses:33Used by:41
Symbol 41 MovieClipUses:38 39 40Used by:45
Symbol 42 BitmapUsed by:43 114
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClipUses:43Used by:45
Symbol 45 MovieClip {Mysteriez2L_OBook} [Book]Uses:21 23 25 27 29 30 32 35 37 41 44
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip {Mysteriez2L_ORight} [Right]Uses:46
Symbol 48 GraphicUsed by:51
Symbol 49 FontUsed by:50 61 76
Symbol 50 TextUses:49Used by:51
Symbol 51 MovieClip {Mysteriez2L_OLoop} [Loop]Uses:48 50
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClip {Mysteriez2L_OScoresBorder} [ScoresBorderM]Uses:52
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClip {Mysteriez2L_ODemoBorder} [DemoBorderM]Uses:54
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClip {Mysteriez2L_OWBorderM} [WelcomeBorderM]Uses:56
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClip {Mysteriez2L_OIRight} [OIRight]Uses:58
Symbol 60 FontUsed by:61
Symbol 61 EditableTextUses:2 33 49 60Used by:62
Symbol 62 MovieClip {Mysteriez2L_OFont} [OFont]Uses:61
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClip {Mysteriez2L_OStart} [Start]Uses:63
Symbol 65 GraphicUsed by:70
Symbol 66 TextUses:2Used by:70
Symbol 67 GraphicUsed by:70
Symbol 68 FontUsed by:69
Symbol 69 TextUses:2 68Used by:70
Symbol 70 MovieClip {Mysteriez2L_OGameNameM} [MGameName]Uses:65 66 67 69
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClip {Mysteriez2L_OTimerBorder} [TimerBorderM]Uses:71
Symbol 73 GraphicUsed by:74 134
Symbol 74 MovieClip {Mysteriez2L_OBG01} [Tile]Uses:73
Symbol 75 GraphicUsed by:77
Symbol 76 TextUses:49Used by:77
Symbol 77 MovieClip {Mysteriez2L_OUnLoop} [UnLoop]Uses:75 76
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClip {Mysteriez2L_OGameVersion} [MVersion]Uses:78
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClip {Mysteriez2L_OEnterBorder} [EnterBorderM]Uses:80
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:116
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:116
Symbol 86 GraphicUsed by:116
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:116
Symbol 89 GraphicUsed by:116
Symbol 90 GraphicUsed by:116
Symbol 91 GraphicUsed by:116
Symbol 92 GraphicUsed by:116
Symbol 93 GraphicUsed by:116
Symbol 94 GraphicUsed by:116
Symbol 95 GraphicUsed by:116
Symbol 96 GraphicUsed by:116
Symbol 97 GraphicUsed by:116
Symbol 98 GraphicUsed by:116
Symbol 99 GraphicUsed by:116
Symbol 100 GraphicUsed by:116
Symbol 101 GraphicUsed by:116
Symbol 102 GraphicUsed by:116
Symbol 103 GraphicUsed by:116
Symbol 104 GraphicUsed by:116
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses:105Used by:116
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107Used by:116
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:109Used by:116
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:116
Symbol 113 GraphicUsed by:116
Symbol 114 GraphicUses:42Used by:115
Symbol 115 MovieClipUses:114Used by:116
Symbol 116 MovieClip {Mysteriez2L_OPlayBook} [PlayBook]Uses:83 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 108 110 112 113 115
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClip {Mysteriez2L_OStop} [Stop]Uses:117
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClip {Mysteriez2L_OIDown} [OIDown]Uses:119
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClip {Mysteriez2L_OUp} [Up]Uses:121
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:125
Symbol 125 MovieClip {Mysteriez2L_OGameLoop} [GameLoop]Uses:124
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip {Mysteriez2L_OCursor} [OCursor]Uses:126
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {Mysteriez2L_OSmallGraphic} [Graphics1L]Uses:128
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClip {Mysteriez2L_OILeft} [OILeft]Uses:130
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClip {Mysteriez2L_OConfirmBorder} [ConfirmBorderM]Uses:132
Symbol 134 MovieClipUses:73Used by:152
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:135Used by:152
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:137Used by:152
Symbol 139 FontUsed by:140 141 142 143 144 145 146 147 148 149 150 151
Symbol 140 TextUses:139Used by:152
Symbol 141 TextUses:139Used by:152
Symbol 142 TextUses:139Used by:152
Symbol 143 TextUses:139Used by:152
Symbol 144 TextUses:139Used by:152
Symbol 145 TextUses:139Used by:152
Symbol 146 TextUses:139Used by:152
Symbol 147 TextUses:139Used by:152
Symbol 148 TextUses:139Used by:152
Symbol 149 TextUses:139Used by:152
Symbol 150 TextUses:139Used by:152
Symbol 151 TextUses:139Used by:152
Symbol 152 MovieClip {Mysteriez2L_OBack} [Fon]Uses:134 136 138 140 141 142 143 144 145 146 147 148 149 150 151
Symbol 153 Sound {Mysteriez2L_OSBubbleBang07} [Mysteriez2L_OSBubbleBang07]
Symbol 154 Sound {Mysteriez2L_OSBubbleBang02} [Mysteriez2L_OSBubbleBang02]
Symbol 155 Sound {Mysteriez2L_OSBubbleBang05} [Mysteriez2L_OSBubbleBang05]
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClip {Mysteriez2L_OBorder} [Border]Uses:156
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClip {Mysteriez2L_FallParticle} [FallParticle]Uses:158
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:162
Symbol 162 MovieClip {Mysteriez2L_OButMC} [MCButton]Uses:161
Symbol 163 Sound {Mysteriez2L_OSBubbleBang04} [Mysteriez2L_OSBubbleBang04]
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClip {Mysteriez2L_OLeft} [Left]Uses:164
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClip {Mysteriez2L_OSelectBorder} [SelectBorderM]Uses:166
Symbol 168 Sound {Mysteriez2L_OSBubbleBang03} [Mysteriez2L_OSBubbleBang03]
Symbol 169 GraphicUsed by:172
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:170Used by:172
Symbol 172 MovieClip {Mysteriez2L_OLoopOnBook} [LoopOnFon]Uses:169 171
Symbol 173 GraphicUsed by:174 175 176 177
Symbol 174 MovieClipUses:173Used by:180
Symbol 175 MovieClipUses:173Used by:180
Symbol 176 MovieClipUses:173Used by:180
Symbol 177 MovieClipUses:173Used by:180
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:180
Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks]Uses:174 175 176 177 179
Symbol 181 GraphicUsed by:182 183 184 187 188 191 192 193 194 197 198
Symbol 182 MovieClipUses:181Used by:228
Symbol 183 MovieClipUses:181Used by:228
Symbol 184 MovieClipUses:181Used by:228
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClipUses:185Used by:228
Symbol 187 MovieClipUses:181Used by:228
Symbol 188 MovieClipUses:181Used by:228
Symbol 189 GraphicUsed by:190
Symbol 190 MovieClipUses:189Used by:228
Symbol 191 MovieClipUses:181Used by:228
Symbol 192 MovieClipUses:181Used by:228
Symbol 193 MovieClipUses:181Used by:228
Symbol 194 MovieClipUses:181Used by:228
Symbol 195 GraphicUsed by:196
Symbol 196 MovieClipUses:195Used by:228
Symbol 197 MovieClipUses:181Used by:228
Symbol 198 MovieClipUses:181Used by:228
Symbol 199 GraphicUsed by:200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
Symbol 200 MovieClipUses:199Used by:228
Symbol 201 MovieClipUses:199Used by:228
Symbol 202 MovieClipUses:199Used by:228
Symbol 203 MovieClipUses:199Used by:228
Symbol 204 MovieClipUses:199Used by:228
Symbol 205 MovieClipUses:199Used by:228
Symbol 206 MovieClipUses:199Used by:228
Symbol 207 MovieClipUses:199Used by:228
Symbol 208 MovieClipUses:199Used by:228
Symbol 209 MovieClipUses:199Used by:228
Symbol 210 MovieClipUses:199Used by:228
Symbol 211 MovieClipUses:199Used by:228
Symbol 212 MovieClipUses:199Used by:228
Symbol 213 MovieClipUses:199Used by:228
Symbol 214 MovieClipUses:199Used by:228
Symbol 215 MovieClipUses:199Used by:228
Symbol 216 MovieClipUses:199Used by:228
Symbol 217 MovieClipUses:199Used by:228
Symbol 218 MovieClipUses:199Used by:228
Symbol 219 MovieClipUses:199Used by:228
Symbol 220 MovieClipUses:199Used by:228
Symbol 221 MovieClipUses:199Used by:228
Symbol 222 MovieClipUses:199Used by:228
Symbol 223 MovieClipUses:199Used by:228
Symbol 224 MovieClipUses:199Used by:228
Symbol 225 MovieClipUses:199Used by:228
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClipUses:226Used by:228
Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1}Uses:182 183 184 186 187 188 190 191 192 193 194 196 197 198 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 227
Symbol 229 Bitmap {RES.OBJECTS.OLEVELS.OEmbedsLevels_PictureLevel1}
Symbol 230 Bitmap {RES.OBJECTS.OLEVELS.OEmbedsLevels_PictureDemo}

Instance Names

"MainBorder"Symbol 45 MovieClip {Mysteriez2L_OBook} [Book] Frame 1Symbol 32 MovieClip
"Site"Symbol 45 MovieClip {Mysteriez2L_OBook} [Book] Frame 1Symbol 35 MovieClip
"Name2"Symbol 45 MovieClip {Mysteriez2L_OBook} [Book] Frame 1Symbol 37 MovieClip
"Name"Symbol 45 MovieClip {Mysteriez2L_OBook} [Book] Frame 1Symbol 41 MovieClip
"iBorder"Symbol 162 MovieClip {Mysteriez2L_OButMC} [MCButton] Frame 1Symbol 161 MovieClip
"n1"Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 174 MovieClip
"n2"Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 175 MovieClip
"n3"Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 176 MovieClip
"n5"Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 177 MovieClip
"n4"Symbol 180 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 179 MovieClip
"n1"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 182 MovieClip
"n2"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 183 MovieClip
"n3"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 184 MovieClip
"n4"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 186 MovieClip
"n5"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 187 MovieClip
"n6"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 188 MovieClip
"n7"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 190 MovieClip
"n8"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 191 MovieClip
"n9"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 192 MovieClip
"n10"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 193 MovieClip
"n11"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 194 MovieClip
"n12"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 196 MovieClip
"n13"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 197 MovieClip
"n14"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 198 MovieClip
"n15"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 200 MovieClip
"n16"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 201 MovieClip
"n17"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 202 MovieClip
"n18"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 203 MovieClip
"n19"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 204 MovieClip
"n20"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 205 MovieClip
"n21"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 206 MovieClip
"n22"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 207 MovieClip
"n23"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 208 MovieClip
"n24"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 209 MovieClip
"n25"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 210 MovieClip
"n26"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 211 MovieClip
"n27"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 212 MovieClip
"n28"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 213 MovieClip
"n29"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 214 MovieClip
"n30"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 215 MovieClip
"n31"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 216 MovieClip
"n32"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 217 MovieClip
"n33"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 218 MovieClip
"n34"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 219 MovieClip
"n35"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 220 MovieClip
"n36"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 221 MovieClip
"n37"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 222 MovieClip
"n38"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 223 MovieClip
"n39"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 224 MovieClip
"n40"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 225 MovieClip
"n8a"Symbol 228 MovieClip {RES.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 227 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1457 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 1 as "Mysteriez2L_OSBubbleBang06"
ExportAssets (56)Timeline Frame 1Symbol 4 as "MSite"
ExportAssets (56)Timeline Frame 1Symbol 6 as "OIUp"
ExportAssets (56)Timeline Frame 1Symbol 7 as "Mysteriez2L_OSBubbleBang01"
ExportAssets (56)Timeline Frame 1Symbol 9 as "GameBorderM"
ExportAssets (56)Timeline Frame 1Symbol 11 as "Down"
ExportAssets (56)Timeline Frame 1Symbol 13 as "MBorder"
ExportAssets (56)Timeline Frame 1Symbol 15 as "ResultBorderM"
ExportAssets (56)Timeline Frame 1Symbol 17 as "ChoosePBorderM"
ExportAssets (56)Timeline Frame 1Symbol 20 as "OFontA"
ExportAssets (56)Timeline Frame 1Symbol 45 as "Book"
ExportAssets (56)Timeline Frame 1Symbol 47 as "Right"
ExportAssets (56)Timeline Frame 1Symbol 51 as "Loop"
ExportAssets (56)Timeline Frame 1Symbol 53 as "ScoresBorderM"
ExportAssets (56)Timeline Frame 1Symbol 55 as "DemoBorderM"
ExportAssets (56)Timeline Frame 1Symbol 57 as "WelcomeBorderM"
ExportAssets (56)Timeline Frame 1Symbol 59 as "OIRight"
ExportAssets (56)Timeline Frame 1Symbol 62 as "OFont"
ExportAssets (56)Timeline Frame 1Symbol 64 as "Start"
ExportAssets (56)Timeline Frame 1Symbol 70 as "MGameName"
ExportAssets (56)Timeline Frame 1Symbol 72 as "TimerBorderM"
ExportAssets (56)Timeline Frame 1Symbol 74 as "Tile"
ExportAssets (56)Timeline Frame 1Symbol 77 as "UnLoop"
ExportAssets (56)Timeline Frame 1Symbol 79 as "MVersion"
ExportAssets (56)Timeline Frame 1Symbol 81 as "EnterBorderM"
ExportAssets (56)Timeline Frame 1Symbol 116 as "PlayBook"
ExportAssets (56)Timeline Frame 1Symbol 118 as "Stop"
ExportAssets (56)Timeline Frame 1Symbol 120 as "OIDown"
ExportAssets (56)Timeline Frame 1Symbol 122 as "Up"
ExportAssets (56)Timeline Frame 1Symbol 125 as "GameLoop"
ExportAssets (56)Timeline Frame 1Symbol 127 as "OCursor"
ExportAssets (56)Timeline Frame 1Symbol 129 as "Graphics1L"
ExportAssets (56)Timeline Frame 1Symbol 131 as "OILeft"
ExportAssets (56)Timeline Frame 1Symbol 133 as "ConfirmBorderM"
ExportAssets (56)Timeline Frame 1Symbol 152 as "Fon"
ExportAssets (56)Timeline Frame 1Symbol 153 as "Mysteriez2L_OSBubbleBang07"
ExportAssets (56)Timeline Frame 1Symbol 154 as "Mysteriez2L_OSBubbleBang02"
ExportAssets (56)Timeline Frame 1Symbol 155 as "Mysteriez2L_OSBubbleBang05"
ExportAssets (56)Timeline Frame 1Symbol 157 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 159 as "FallParticle"
ExportAssets (56)Timeline Frame 1Symbol 162 as "MCButton"
ExportAssets (56)Timeline Frame 1Symbol 163 as "Mysteriez2L_OSBubbleBang04"
ExportAssets (56)Timeline Frame 1Symbol 165 as "Left"
ExportAssets (56)Timeline Frame 1Symbol 167 as "SelectBorderM"
ExportAssets (56)Timeline Frame 1Symbol 168 as "Mysteriez2L_OSBubbleBang03"
ExportAssets (56)Timeline Frame 1Symbol 172 as "LoopOnFon"
ExportAssets (56)Timeline Frame 1Symbol 180 as "Masks"
SerialNumber (41)Timeline Frame 1

Labels

"Mysteriez2"Frame 1




http://swfchan.com/10/47646/info.shtml
Created: 1/5 -2019 11:03:49 Last modified: 1/5 -2019 11:03:49 Server time: 14/11 -2024 22:57:47