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

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

Mysteriez 2 - discover all hidden numbers in this game.swf

This is the info page for
Flash #127935

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


Text
<p align="center"></p>

17

2

1

3

4

40

35

22

7

26

11

17

-

Mysteriez!

Mysteriez! 2

<p align="center"><font face="Arial Black" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>RU</b></font></p>

<p align="center"><font face="Arial Black" size="15" color="#2f4552" letterSpacing="0.000000" kerning="1"><b>RU</b></font></p>

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

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

+

wellgames.com

Mysteriez!

Mysteriez!

wellgames.com

17

2

1

3

4

40

35

22

7

26

11

17

Mysteriez

ActionScript [AS3]

Section 1
//AdLoader (CPMStar.AdLoader) package CPMStar { import flash.display.*; import ENGINE.INTERFACE.*; import flash.system.*; import ENGINE.CORE.*; import flash.net.*; public class AdLoader { private static var cpmstarLoaderCurent:Loader; private static var PrevCpmstarLoader:Loader; public static function LoadAd(_arg1:int, _arg2:int):DisplayObject{ var _local3:Loader; Security.allowDomain("server.cpmstar.com"); var _local4 = "http://server.cpmstar.com/adviewas3.swf"; _local3 = new Loader(); _local3.load(new URLRequest(((((_local4 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2))); return (_local3); } public static function removeChildAD(_arg1:Sprite):void{ var _spr:Sprite; var parent = _arg1; try { _spr = (parent.getChildByName("adBox") as Sprite); if (_spr == null){ return; }; if (_spr.getChildByName("AD") != null){ _spr.removeChild(_spr.getChildByName("AD")); }; if (parent.contains(_spr)){ parent.removeChild(_spr); }; } catch(error:Error) { trace(("<Error> " + error.message)); }; } public static function loaderLoadAd(_arg1:int, _arg2:int):Loader{ var _local3:Loader; Security.allowDomain("server.cpmstar.com"); var _local4 = "http://server.cpmstar.com/adviewas3.swf"; _local3 = new Loader(); _local3.load(new URLRequest(((((_local4 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2))); return (_local3); } public static function addChildAD(_arg1:Object, _arg2:int, _arg3:int=-1, _arg4:int=-1):void{ var _local6:MovieClip; var _local7:DisplayObject; var _local8:DisplayObject; var _local5 = 1618; _local6 = _arg1.getChildByName("adBox"); if (_local6 == null){ _local6 = new MovieClip(); _local6.name = "adBox"; _arg1.addChild(_local6); }; if (_arg3 == -1){ _local6.x = (((OGlobal.StageRect.width - 300) / 2) - OApplication.sInstance.x); } else { _local6.x = _arg3; }; if (_arg4 == -1){ _local6.y = (OGlobal.StageRect.height / 20); } else { _local6.y = _arg4; }; if (PrevCpmstarLoader == null){ _local7 = AdLoader.LoadAd(_local5, _arg2); } else { _local7 = PrevCpmstarLoader; }; _local7.name = "AD"; _local6.addChild(_local7); PrevCpmstarLoader = cpmstarLoaderCurent; _local8 = AdLoader.LoadAd(_local5, _arg2); } } }//package CPMStar
Section 2
//OCPMStar (CPMStar.OCPMStar) package CPMStar { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; public class OCPMStar extends Ad { private var iTimer:Timer; private var iID:int; private var savedStageAlign:String; private var iShowBanner:int; public function OCPMStar(_arg1:int, _arg2:int){ this.iID = _arg1; this.iShowBanner = _arg2; this.iRect = new Rectangle(0, 0, 300, 300); } override public function GetName():String{ return (AdNames.AD_CPMSTAR); } protected function OnTimer(_arg1:TimerEvent=null):void{ AdFinished(); } protected function RemoveBanners():void{ AdLoader.removeChildAD((this.iApp as Sprite)); } override protected function AdFinished():void{ iApp.removeEventListener(Event.ENTER_FRAME, onEnterFrame); iTimer.stop(); iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); iTimer = null; RemoveBanners(); super.AdFinished(); } override public function ShowInterLevelAd(_arg1:Function):void{ iApp.addEventListener(Event.ENTER_FRAME, onEnterFrame); super.ShowInterLevelAd(_arg1); iTimer = new Timer((this.iShowBanner * 1000), 1); iTimer.addEventListener(TimerEvent.TIMER, OnTimer); iTimer.start(); AddBanners(); } override public function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void{ super.Init(_arg1, _arg2); savedStageAlign = iApp.stage.align; } private function onEnterFrame(_arg1:Event):void{ if (iApp.stage.align != savedStageAlign){ iApp.stage.align = savedStageAlign; }; } override public function ShowEndGameAd(_arg1:Function):void{ _arg1(); } override public function ShowPreGameAd(_arg1:Function):void{ _arg1(); } protected function AddBanners():void{ AdLoader.addChildAD(this.iApp, this.iID); } } }//package CPMStar
Section 3
//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{ } 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"]; }; } public function DeleteBanner():void{ this.iBanner = null; } private function OnComplete(_arg1:Event):void{ this.iManager = this.iLoader.content; } } }//package ENGINE.AD
Section 4
//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 = (_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{ _slot1.iBBanner.CreateBanner(); var _local6:Sprite = (_slot1.iBBanner.prBanner as Sprite); if (!_local6){ return; }; var _local7:Number = OGlobal.ToGlobal(_arg2); var _local8:Number = OGlobal.ToGlobal(_arg3); var _local9:Number = OGlobal.ToGlobal(_arg4); var _local10:Number = 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 = (_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{ _slot1.iTBanner.CreateBanner(); var _local6:Sprite = (_slot1.iTBanner.prBanner as Sprite); if (!_local6){ return; }; var _local7:Number = OGlobal.ToGlobal(_arg2); var _local8:Number = OGlobal.ToGlobal(_arg3); var _local9:Number = OGlobal.ToGlobal(_arg4); var _local10:Number = 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 5
//OCache (ENGINE.CORE.OCache) package ENGINE.CORE { import flash.utils.*; public dynamic class OCache { public function GetCategoryArrItem(_arg1:String, _arg2:String, _arg3:int){ if (this[_arg1] == undefined){ return (null); }; return (GetArrItem(_arg2, _arg3)); } public function AddCategoryArr(_arg1:String, _arg2:String):Array{ var _local3:OCache = ((this[_arg1])==undefined) ? AddCategory(_arg1) : this[_arg1]; return (_local3.AddArr(_arg2)); } public function GetCategoryNames(_arg1:String):Array{ var _local3:String; if (this[_arg1] == undefined){ return (null); }; var _local2:Array = new Array(); for (_local3 in this[_arg1]) { _local2.push(_local3); }; return ((_local2.length) ? _local2.sort() : null); } public function DeleteItem(_arg1:String):void{ if (this[_arg1] == undefined){ return; }; delete this[_arg1]; } public function GetCategoryItem(_arg1:String, _arg2:String){ if (this[_arg1] == undefined){ return (null); }; return (this[_arg1].GetItem(_arg2)); } public function Pack():ByteArray{ var _local1:ByteArray = new ByteArray(); _local1.writeObject(this); return (_local1); } public function DeleteArrItem(_arg1:String, _arg2:int):void{ if (this[_arg1] == undefined){ return; }; this[_arg1].splice(_arg2, 1); } 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 IsCategoryArrItem(_arg1:String, _arg2:String, _arg3:int):Boolean{ if (this[_arg1] == undefined){ return (false); }; return (this[_arg1].IsArrItem(_arg2, _arg3)); } public function Clear():void{ var _local1:String; for (_local1 in this) { delete this[_local1]; }; } 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 SetArrItem(_arg1:String, _arg2:int, _arg3):void{ if (this[_arg1] == undefined){ this[_arg1] = new Array(); }; this[_arg1][_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 SetItem(_arg1:String, _arg2):void{ this[_arg1] = _arg2; } public function GetNames():Array{ var _local2:String; var _local1:Array = new Array(); for (_local2 in this) { _local1.push(_local2); }; return ((_local1.length) ? _local1.sort() : null); } public function SetCategoryItem(_arg1:String, _arg2:String, _arg3):void{ if (this[_arg1] == undefined){ this[_arg1] = new OCache(); }; this[_arg1].SetItem(_arg2, _arg3); } 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 IsItem(_arg1:String):Boolean{ return (!((this[_arg1] == undefined))); } public function GetArrItem(_arg1:String, _arg2:int){ if ((((this[_arg1] == undefined)) || ((this[_arg1][_arg2] == undefined)))){ return (null); }; return (this[_arg1][_arg2]); } public function AddCategory(_arg1:String):OCache{ this[_arg1] = new OCache(); return (this[_arg1]); } } }//package ENGINE.CORE
Section 6
//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 = 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 = (((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(_arg1:Number=1):void{ OGlobal.iOldScale = OGlobal.iScale; OGlobal.iScale = _arg1; 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 = 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 = (_arg1 * OGlobal.iScale); return (((_local2 - Math.floor(_local2)) / OGlobal.iScale)); } } }//package ENGINE.CORE
Section 7
//OSound (ENGINE.CORE.OSound) package ENGINE.CORE { import flash.events.*; import flash.utils.*; import flash.media.*; import flash.net.*; import flash.external.*; 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 = 0.5; private static var iMusicChannel:SoundChannel; private static var iMusicVolume:Number = 0.3; private static var iMusic:Sound; private static function SetMuteOn():void{ _slot1.Mute = true; } public static function PlaySoundInd(_arg1:int, _arg2:Number=0):Boolean{ if (_slot1.iSoundVolume == 0){ return (false); }; _arg1 = Math.max(_arg1, 0); _arg1 = Math.min(_arg1, (_slot1.iSoundsObjects.length - 1)); return (_slot1.PlaySound(_slot1.iSoundsObjects[_arg1], _arg2)); } public static function PlaySoundRandom(_arg1:Number=0, _arg2:int=0, _arg3:int=-1):Boolean{ if (_slot1.iSoundVolume == 0){ return (false); }; _arg2 = Math.max(_arg2, 0); _arg2 = Math.min(_arg2, (_slot1.iSoundsObjects.length - 1)); if (_arg3 < 0){ _arg3 = (_slot1.iSoundsObjects.length - 1); }; _arg3 = Math.max(_arg3, 0); _arg3 = Math.min(_arg3, (_slot1.iSoundsObjects.length - 1)); var _local4:int = OUtils.Random(_arg2, _arg3); return (_slot1.PlaySound(_slot1.iSoundsObjects[_local4], _arg1)); } private static function OnMusicLoadComplete(_arg1:Event):void{ if (_slot1.iMusicVolume == 0){ return; }; _slot1.iMusicChannel = iMusic.play(0, 0, new SoundTransform(_slot1.iMusicVolume, 0)); _slot1.RemoveMusic(); _slot1.iMusic.removeEventListener(IOErrorEvent.IO_ERROR, _slot1.OnMusicLoadIOError); _slot1.iMusicChannel.addEventListener(Event.SOUND_COMPLETE, OnMusicComplete); } public static function set SoundVolume(_arg1:Number):void{ _slot1.iSoundVolume = _arg1; } private static function OnMusicLoadIOError(_arg1:Event):void{ _slot1.RemoveMusic(); if ((_arg1.currentTarget is Sound)){ (_arg1.currentTarget as Sound).removeEventListener(IOErrorEvent.IO_ERROR, _slot1.OnMusicLoadIOError); if (_arg1.currentTarget != _slot1.iMusic){ return; }; }; _slot1.iMusicPlayList.splice(_slot1.iMusicInd, 1); _slot1.iMusicInd = ((_slot1.iMusicInd > (_slot1.iMusicPlayList.length - 1))) ? (_slot1.iMusicPlayList.length - 1) : _slot1.iMusicInd; _slot1.PlayMusic(); } private static function OnMusicComplete(_arg1:Event):void{ _slot1.iMusicChannel.removeEventListener(Event.SOUND_COMPLETE, OnMusicComplete); _slot1.iMusicChannel = null; _slot1.iMusicChannel = iMusic.play(0, 0, new SoundTransform(_slot1.iMusicVolume, 0)); _slot1.iMusicChannel.addEventListener(Event.SOUND_COMPLETE, OnMusicComplete); } public static function PlaySound(_arg1:Class, _arg2:Number=0):Boolean{ if (_slot1.iSoundVolume == 0){ return (false); }; var _local3:Sound = _slot1.iSounds[_arg1]; if (_local3 != null){ _local3.play(0, 0, new SoundTransform(_slot1.iSoundVolume, _arg2)); }; return (!((_local3 == null))); } private static function setGlobalVolume(_arg1:Number):void{ var _local2:SoundTransform = new SoundTransform(); _local2.volume = _arg1; SoundMixer.soundTransform = _local2; } private static function RemoveMusic():void{ if (_slot1.iMusic){ _slot1.iMusic.removeEventListener(Event.COMPLETE, _slot1.OnMusicLoadComplete); }; } public static function StopMusic():void{ if (_slot1.iMusicChannel){ _slot1.iMusicChannel.removeEventListener(Event.SOUND_COMPLETE, OnMusicComplete); _slot1.iMusicChannel.stop(); _slot1.iMusicChannel = null; }; } public static function get SoundVolume():Number{ return (_slot1.iSoundVolume); } public static function PlayListClear():void{ _slot1.iMusicPlayList = new Array(); } public static function PlayListAdd(_arg1:String):void{ _slot1.iMusicPlayList.push(_arg1); _slot1.iMusicInd = (_slot1.iMusicPlayList.length - 1); } public static function PlayMusic():void{ if ((((_slot1.iMusicVolume == 0)) || (!(_slot1.iMusicPlayList.length)))){ return; }; _slot1.StopMusic(); _slot1.iMusicInd = ((_slot1.iMusicInd + 1) % _slot1.iMusicPlayList.length); var request:URLRequest = new URLRequest(_slot1.iMusicPlayList[_slot1.iMusicInd]); _slot1.RemoveMusic(); _slot1.iMusic = new Sound(); _slot1.iMusic.addEventListener(Event.COMPLETE, _slot1.OnMusicLoadComplete, false, 0, true); _slot1.iMusic.addEventListener(IOErrorEvent.IO_ERROR, _slot1.OnMusicLoadIOError, false, 0, true); try { _slot1.iMusic.load(request); } catch(e:Error) { }; } public static function set Mute(_arg1:Boolean):void{ _slot1.setGlobalVolume((_arg1) ? 0 : 1); } private static function SetMuteOff():void{ _slot1.Mute = false; } public static function get Mute():Boolean{ return ((SoundMixer.soundTransform.volume == 0)); } public static function RegisterEmbedSounds(_arg1:Array):Boolean{ var s:Sound; var aP = _arg1; _slot1.iSoundsObjects = aP; var i:int; while (i < aP.length) { s = (new (aP[i]) as Sound); _slot1.iSounds[aP[i]] = s; i = (i + 1); }; if (ExternalInterface.available){ try { trace("Adding callback...\n"); ExternalInterface.addCallback("SetMuteOn", _slot1.SetMuteOn); ExternalInterface.addCallback("SetMuteOff", _slot1.SetMuteOff); } catch(error:SecurityError) { trace((("A SecurityError occurred: " + error.message) + "\n")); } catch(error:Error) { trace((("An Error occurred: " + error.message) + "\n")); }; }; return (true); } public static function set MusicVolume(_arg1:Number):void{ var _local2:SoundTransform; _slot1.iMusicVolume = _arg1; if (_slot1.iMusicChannel){ if (_arg1 == 0){ _slot1.StopMusic(); } else { _local2 = _slot1.iMusicChannel.soundTransform; _local2.volume = _arg1; _slot1.iMusicChannel.soundTransform = _local2; }; } else { if (_slot1.iMusicVolume > 0){ _slot1.PlayMusic(); }; }; } public static function get MusicVolume():Number{ return (_slot1.iMusicVolume); } } }//package ENGINE.CORE
Section 8
//OSystem (ENGINE.CORE.OSystem) package ENGINE.CORE { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; import flash.text.*; public class OSystem extends Sprite { private var iSTimer:String; private var iLastTime:int; private var iCount:int; private var iText:TextField; 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 = System.totalMemory; var _local3:int = (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 9
//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 = ""; var _local4:int = _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 _local7:Rectangle; var _local6:Number = Math.round((1 + (_arg2 / 70))); var _local8:String = ((_arg4)==null) ? "" : ((" (" + _arg4) + ")"); var _local9:String = (_arg3 + _local8); _local7 = ODisplay.TextRect(_arg1, _arg2, _local6, _local9); if (_local7.width <= _arg5){ return (_local9); }; _local8 = ("..." + _local8); var _local10:int = (_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 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "; var _local3 = ""; var _local4:int; while (_local4 < _arg1.length) { if (_local2.indexOf(_arg1.charAt(_local4)) > -1){ _local3 = (_local3 + _arg1.charAt(_local4)); }; _local4++; }; return (_local3); } } }//package ENGINE.CORE
Section 10
//OEffect (ENGINE.DISPLAY.EFFECTS.OEffect) package ENGINE.DISPLAY.EFFECTS { import ENGINE.DISPLAY.*; import ENGINE.CORE.*; import flash.filters.*; public class OEffect { protected var iFilters:OCache; protected var iColors: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 11
//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 = 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 = 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 = 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 = 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 12
//IDisplayObject (ENGINE.DISPLAY.IDisplayObject) package ENGINE.DISPLAY { public interface IDisplayObject { function get prVisible():Boolean; function Move(_arg1:Number, _arg2:Number):void; function get prWidth():Number; function get prX():Number; function get prY():Number; function get prHeight():Number; function Pos(_arg1:Number, _arg2:Number):void; function set prX(_arg1:Number):void; function set prY(_arg1:Number):void; function set prVisible(_arg1:Boolean):void; } }//package ENGINE.DISPLAY
Section 13
//OBitmap (ENGINE.DISPLAY.OBitmap) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import flash.text.*; import ENGINE.DISPLAY.EFFECTS.*; import ENGINE.CORE.*; public class OBitmap extends Bitmap implements IDisplayObject { protected var iX:Number;// = 0 protected var iOBM:OBM;// = null protected var iY:Number;// = 0 public function OBitmap(_arg1:OBM=null, _arg2:Number=0, _arg3:Number=0){ this.iX = _arg2; this.iY = _arg3; Init(_arg1); } public function CopyFrom(_arg1:OBitmap):void{ this.iX = _arg1.iX; this.iY = _arg1.iY; this.Init(_arg1.iOBM); } public function get prHeight():Number{ return ((this.iOBM) ? (this.iOBM.iHeight / OGlobal.Scale) : 0); } public function get prX():Number{ return (this.iX); } public function get prOBM():OBM{ return (this.iOBM); } public function get prWidth():Number{ return ((this.iOBM) ? (this.iOBM.iWidth / OGlobal.Scale) : 0); } public function set prVisible(_arg1:Boolean):void{ this.visible = _arg1; } public function get prVisible():Boolean{ return (this.visible); } public function Clear():void{ this.Init(null); } public function set prY(_arg1:Number):void{ this.iY = _arg1; Pos(this.iX, this.iY); } public function set prOBM(_arg1:OBM):void{ this.Init(_arg1); } public function Move(_arg1:Number, _arg2:Number):void{ Pos((this.iX + _arg1), (this.iY + _arg2)); } public function set prX(_arg1:Number):void{ this.iX = _arg1; Pos(this.iX, this.iY); } 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 Init(_arg1:OBM):void{ this.iOBM = _arg1; this.bitmapData = (_arg1) ? _arg1.iBM : null; this.Pos(this.iX, this.iY); } public function get prY():Number{ return (this.iY); } public function Clone():OBitmap{ return (new OBitmap(this.iOBM.Clone(), this.iX, this.iY)); } public static function MakeEffectFromListP(_arg1:Array):OBitmap{ var _local2:Sprite = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); var _local3:Sprite = (_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 _local6:TextField; var _local7:TextFormat; var _local2:Sprite = ((_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); }; var _local3:Rectangle = _local2.getBounds(_local2); var _local4:Number = ((_arg1[9] - _local3.width) / 2); var _local5:Number = ((_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 _local3:TextField; var _local4:TextFormat; var _local2:Sprite = ((_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 = 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 = Math.min(_arg1[7], _arg1[8]); var _local3:Sprite = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)); var _local4:Rectangle = _local3.getBounds(_local3); var _local5:Number = Math.max(_local4.width, _local4.height); var _local6:Number = ((_local2 / _local5) * _arg1[2]); var _local7:Number = ((_arg1[7] - (_local4.width * _local6)) / 2); var _local8:Number = ((_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 = 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 = 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 = OEffects.Apply(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8); return (new OBitmap(_local9, _arg7, _arg8)); } } }//package ENGINE.DISPLAY
Section 14
//OBM (ENGINE.DISPLAY.OBM) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import ENGINE.CORE.*; public class OBM { public var iHeight:Number; public var iBM:BitmapData; public var iY:Number; public var iWidth:Number; public var iX: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 = 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 = new Sprite(); var _local3:Sprite = _arg1[1][0](_arg1[1]); var _local4:Number = (OGlobal.Scale * _arg1[2]); var _local5:Number = OGlobal.ToGlobal(_arg1[4]); var _local6:Number = 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); var _local7:Rectangle = _local3.getBounds(_local2); _local2.removeChild(_local3); var _local8:Sprite = 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); var _local9:int = ((_local7.width + 4) + (_arg1[6] * 2)); var _local10:int = ((_local7.height + 4) + (_arg1[6] * 2)); var _local11:Number = Math.floor(_local7.x); var _local12:Number = Math.floor(_local7.y); var _local13:BitmapData = new BitmapData(_local9, _local10, true, 0); var _local14:Matrix = 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 = new Sprite(); var _local3:Sprite = _arg1[1][0](_arg1[1]); var _local4:Number = (OGlobal.Scale * _arg1[2]); var _local5:Number = OGlobal.ToGlobal(_arg1[3]); var _local6:Number = 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); var _local7:Rectangle = _local3.getBounds(_local2); var _local8:int = ((_local7.width + 4) + (_arg1[5] * 2)); var _local9:int = ((_local7.height + 4) + (_arg1[5] * 2)); var _local10:Number = Math.floor(_local7.x); var _local11:Number = Math.floor(_local7.y); var _local12:BitmapData = new BitmapData(_local8, _local9, true, 0); var _local13:Matrix = 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 15
//ODisplay (ENGINE.DISPLAY.ODisplay) package ENGINE.DISPLAY { import flash.display.*; import flash.geom.*; import flash.text.*; import ENGINE.DISPLAY.EFFECTS.*; import ENGINE.CORE.*; public class ODisplay { public static function SpriteErase(_arg1:Array):Sprite{ var _local2:Sprite = new Sprite(); var _local3:Sprite = new Sprite(); _local3.blendMode = BlendMode.LAYER; var _local4:Sprite = _arg1[1][0](_arg1[1]); var _local5:Sprite = _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 = new Sprite(); var _local3:Sprite = _arg1[1][0](_arg1[1]); _local2.addChild(_local3); var _local4:Rectangle = _local3.getBounds(_local2); var _local5:Number = (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 _local6:TextField; var _local7:TextFormat; var _local5:Sprite = ((_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 = HSBToRGB(_arg1, _arg2, _arg3); var _local6:uint = (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 _local6:OBM; var _local7:Matrix; var _local2:OBM = OEffects.Make(_arg1[1][0]); var _local3:Number = (_local2.iX + (_arg1[1][0][7] * OGlobal.Scale)); var _local4:Number = (_local2.iY + (_arg1[1][0][8] * OGlobal.Scale)); var _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 = ((_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 = 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 = _arg1[1][0](_arg1[1]); _local2.scaleX = _arg1[2]; _local2.scaleY = _arg1[2]; return (_local2); } public static function IDisplayObjectMake(_arg1:Array){ var _local2:IDisplayObject = _arg1[1][0](_arg1[1]); _local2.Pos(_arg1[2], _arg1[3]); return (_local2); } public static function SpriteAlign(_arg1:Array):Sprite{ var _local2:Sprite = new Sprite(); var _local3:Sprite = _arg1[1][0](_arg1[1]); _local3.scaleX = _arg1[2]; _local3.scaleY = _arg1[2]; _local2.addChild(_local3); var _local4:Rectangle = _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 = 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 = 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 = 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 = new Sprite(); var _local3:Sprite = _arg1[1][0](_arg1[1]); _local3.scaleX = _arg1[2]; _local3.scaleY = _arg1[2]; _local2.addChild(_local3); var _local4:Rectangle = _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 = _arg1[1][0](_arg1[1]); var _local3:Number = (_arg1[4] * _arg1[2]); var _local4:Number = (_arg1[5] * _arg1[2]); var _local5:Matrix = new Matrix(); _local5.scale(_arg1[2], _arg1[2]); _local5.translate(-(_local3), -(_local4)); _local5.rotate(((Math.PI / 180) * _arg1[3])); var _local6:Matrix = new Matrix(); _local6.translate(_local3, _local4); _local5.concat(_local6); var _local7:Sprite = 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 _local3:TextField; var _local4:TextFormat; var _local2:Sprite = ((_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 = 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 = 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 = 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]); var _local3:Number = (_arg1[1] - (_arg1[4] * 2)); var _local4:Number = (_arg1[2] - (_arg1[4] * 2)); var _local5:Number = ((_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 16
//OSprite (ENGINE.DISPLAY.OSprite) package ENGINE.DISPLAY { import flash.display.*; import ENGINE.CORE.*; public class OSprite extends Sprite implements IDisplayObject { private var iX:Number;// = 0 private var iY:Number;// = 0 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 prHeight():Number{ return ((this.height / OGlobal.Scale)); } 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 get prX():Number{ return (this.iX); } public function get prVisible():Boolean{ return (this.visible); } public function get prWidth():Number{ return ((this.width / OGlobal.Scale)); } public function set prY(_arg1:Number):void{ this.iY = _arg1; this.y = (_arg1 * OGlobal.Scale); } public function set prVisible(_arg1:Boolean):void{ this.visible = _arg1; } public function set prX(_arg1:Number):void{ this.iX = _arg1; this.x = (_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 Move(_arg1:Number, _arg2:Number):void{ Pos((this.iX + _arg1), (this.iY + _arg2)); } public function get prY():Number{ return (this.iY); } public function lineTo(_arg1:Number, _arg2:Number):void{ this.graphics.lineTo((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale)); } 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 static function Make(_arg1:Array):OSprite{ var _local2:OSprite = new (OSprite); var _local3:int = _arg1[1].length; var _local4:int; 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 17
//OGame (ENGINE.GAME.OGame) package ENGINE.GAME { import ENGINE.INTERFACE.*; import flash.utils.*; import ENGINE.CORE.*; 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; private var iID_funcSaveCache:int;// = -1 protected var iScores:OScoresTable; public static const catTmp:String = "Tmp"; protected static const strgCurPlayer:String = "Current Player"; protected static const strgResX:String = "ResX"; protected static const strgResY:String = "ResY"; protected static const strgMusicVolume:String = "Music Volume"; protected static const strgFullScreen:String = "Full Screen"; protected static const strgSoundVolume:String = "Sound Volume"; private static const TIME_SAVE_CACHE:int = 2000; public static const catGlobal:String = "Global"; public static const catPlayers:String = "Players"; protected static const strgLocalScores:String = "Local Scores"; public function OGame(_arg1:int=1, _arg2:int=10, _arg3:int=10){ this.iModes = _arg1; this.iSTableSize = _arg2; registerClassAlias("OCacheClass", OCache); registerClassAlias("OGameParamsClass", OGameParams); registerClassAlias("OScoreParamsClass", OScoreParams); registerClassAlias("OScoresTableClass", OScoresTable); registerClassAlias("OPlayerClass", OPlayer); this.LoadCache(); var _local4:String = this.iCache.GetCategoryItem(catGlobal, strgCurPlayer); 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, 0.6); this.iCache.SetCategoryItem(catGlobal, strgMusicVolume, 0.3); 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; this.LoadGlobalCache(); } public function set prFullScreen(_arg1:Boolean):void{ this.iCache.SetCategoryItem(catGlobal, strgFullScreen, _arg1); } public function GetPersonalRecord(_arg1:int):int{ return (this.iPlayer.iScoreTable.GetRecord(_arg1)); } public function set prPassword(_arg1:String):void{ this.iPlayer.iPassword = _arg1; this.SaveCacheTimeOut(); } public function DeletePlayer(_arg1:String):String{ var _local3:Array; var _local2:String = (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, strgCurPlayer, _local3[0]); }; return ((this.iPlayer) ? this.iPlayer.iName : null); } public function get prLevelScore():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore); } public function set prMode(_arg1:int):void{ this.iPlayer.iMode = _arg1; this.SaveCacheTimeOut(); } 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++; this.SaveCacheTimeOut(); } public function get prGamesStartCount():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart); } public function get prPlayerNames():Array{ return (this.iCache.GetCategoryNames(catPlayers)); } public function ClearPersonalScores(_arg1:int):void{ this.iPlayer.iScoreTable.Clear(_arg1); this.SaveCacheTimeOut(); } public function InitAfterLoadCache():void{ trace(("#ENGINE# Init AfterLoad Cache: " + this.prPlayerName)); } public function AddScore(_arg1:int):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iScore = (this.iPlayer.iGParams[this.iPlayer.iMode].iScore + _arg1); this.SaveCacheTimeOut(); } public function get prPlayersData(){ var _local1:OCache = this.iCache.GetItem(catPlayers); var _local2:ByteArray = _local1.Pack(); _local2.compress(); _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(e:Error) { if (e.errorID == 2058){ a = so.data.iData; this.iCache = a.readObject(); if (this.iCache == null){ this.iCache = new OCache(); }; } else { this.iCache = new OCache(); }; }; }; so.close(); } public function get prLevel():int{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevel); } private function SaveCacheTimeOut():void{ if (this.iID_funcSaveCache != -1){ return; }; this.iID_funcSaveCache = setTimeout(this.CallSaveCache, TIME_SAVE_CACHE); } 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++; this.SaveCacheTimeOut(); return (true); } public function set prPlayersData(_arg1):void{ this.iCache.SetItem(catPlayers, _arg1); } public function set prResY(_arg1:int):void{ this.iCache.SetCategoryItem(catGlobal, strgResY, _arg1); } public function get prSavedGame():String{ return (this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame); } public function LoadGlobalCache():void{ var bMute:Boolean; var sName:String; var so:SharedObject = SharedObject.getLocal("WellGames", "/"); if (so.data.hasOwnProperty("mute") == true){ try { bMute = so.data.mute; OSound.Mute = bMute; } catch(e:Error) { trace(("#ENGINE# Error -> LoadGlobalCache -> " + e.message)); }; }; if ((((this.prPlayerName == "")) && ((so.data.hasOwnProperty("prPlayerName") == true)))){ try { sName = so.data.prPlayerName; if (sName.length > 0){ this.prPlayerName = sName; }; } catch(e:Error) { trace(("#ENGINE# Error -> LoadGlobalCache -> " + e.message)); }; }; so.close(); } 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); this.SaveCacheTimeOut(); } private function SaveGlobalCache():void{ var so:SharedObject; try { so = SharedObject.getLocal("Wellgames", "/"); so.data.mute = OApplication.sInstance.GetMute(); so.data.prPlayerName = this.prPlayerName; so.flush(); so.close(); } catch(e:Error) { trace(("#ENGINE# OGame.SaveGlobalMute -> Error -> " + e.message)); }; } public function get prPassword():String{ return ((this.iPlayer.iPassword) ? this.iPlayer.iPassword : ""); } public function get prMode():int{ return (this.iPlayer.iMode); } public function Start():void{ this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart++; } 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); this.SaveCacheTimeOut(); } public function SetLevelScore(_arg1:int):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore = _arg1; this.SaveCacheTimeOut(); } 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; if (this.iScores.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel)){ this.iCache.SetCategoryItem(_slot1.catGlobal, _slot1.strgLocalScores, this.iScores); _local2 = true; }; if (this.iPlayer.iScoreTable.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel, true)){ this.iCache.SetCategoryItem(_slot1.catPlayers, this.prPlayerName, this.iPlayer); _local2 = true; }; this.SaveCacheTimeOut(); 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 = 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, strgCurPlayer, _arg1); this.SaveCacheTimeOut(); } private function CallSaveCache():void{ this.iID_funcSaveCache = -1; this.SaveCache(); } 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 fs:String; var so:SharedObject; try { so = SharedObject.getLocal(OGlobal.AppName, "/"); so.data.iData = this.iCache.Pack(); fs = so.flush(); so.close(); this.SaveGlobalCache(); } catch(e:Error) { trace(("#ENGINE# OGame.SaveCache -> Error -> " + e.message)); return (false); }; return ((fs == SharedObjectFlushStatus.FLUSHED)); } public function Read(_arg1:String, _arg2:String){ return (this.iCache.GetCategoryItem(_arg1, _arg2)); } public function SetSaveGame(_arg1:String):void{ this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame = _arg1; this.SaveCacheTimeOut(); } 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); this.SaveCacheTimeOut(); } public function get prFullScreen():Boolean{ return (this.iCache.GetCategoryItem(catGlobal, strgFullScreen)); } public function ClearLocalScores(_arg1:int):void{ this.iScores.Clear(_arg1); this.SaveCacheTimeOut(); } } }//package ENGINE.GAME
Section 18
//OGameParams (ENGINE.GAME.OGameParams) package ENGINE.GAME { public class OGameParams { public var iLevel:int; public var iScore:int; public var iSavedGame:String; public var iExtended:Object; public var iCGamesEnd:int; public var iLevelScore:int; public var iCGamesStart:int; } }//package ENGINE.GAME
Section 19
//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 var iLang:String; public function OPlayer(_arg1:String=null, _arg2:String=null, _arg3:int=1, _arg4:int=10, _arg5:int=10, _arg6:String="en"){ this.iName = _arg1; this.iPassword = _arg2; this.iLang = _arg6; this.iGParams = new Array(_arg3); this.iRNDFactor = Math.round((Math.random() * (_arg5 - 1))); var _local7:int; while (_local7 < _arg3) { this.iGParams[_local7] = new OGameParams(); _local7++; }; this.iScoreTable = new OScoresTable(_arg3, _arg4); } } }//package ENGINE.GAME
Section 20
//OScoreParams (ENGINE.GAME.OScoreParams) package ENGINE.GAME { public class OScoreParams { public var iName:String; public var iScore:int; public var iLevel:int; public var iTime:Number; public function OScoreParams(_arg1:String=null, _arg2:int=0, _arg3:int=0){ this.iName = _arg1; this.iScore = _arg2; var _local4:Date = new Date(); this.iTime = _local4.time; } } }//package ENGINE.GAME
Section 21
//OScoresTable (ENGINE.GAME.OScoresTable) package ENGINE.GAME { public class OScoresTable { public var iMaxElements:int; public var iTable:Array; public function OScoresTable(_arg1:int=1, _arg2:int=10){ this.iMaxElements = _arg2; this.iTable = new Array(); var _local3:int; while (_local3 < _arg1) { this.iTable[_local3] = new Array(); _local3++; }; } public function AddScore(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Boolean=false):Boolean{ var _local7:int; var _local6:Array = 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 GetRecord(_arg1:int):int{ if (!this.iTable[_arg1].length){ return (0); }; return (this.iTable[_arg1][0].iScore); } public function FindByName(_arg1:int, _arg2:String):int{ var _local3:int; while (_local3 < this.iTable[_arg1].length) { if (this.iTable[_arg1][_local3].iName == _arg2){ return (_local3); }; _local3++; }; return (-1); } 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 Clear(_arg1:int):void{ this.iTable[_arg1] = new Array(); } public function SortOn(_arg1:int):void{ this.iTable[_arg1] = this.iTable[_arg1].sortOn("iScore", (Array.DESCENDING | Array.NUMERIC)); } } }//package ENGINE.GAME
Section 22
//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; private var iEndAlpha:Number; public var iSAlpha: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 = ((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 = (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 23
//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 iStartAlpha:Array; private var iCurAlpha:Number; private var iEndAlpha:Array; private var iDAlpha:Array; public var iSAlpha:Number; public var iSInd:Array; public var iPIter:int; public function OA_AlphaFade(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():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); }; var _local1:int = this.iSInd.length; this.iStartAlpha = new Array(_local1); this.iEndAlpha = new Array(_local1); this.iDAlpha = new Array(_local1); var _local2:int; 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 _local4:int; this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]); var _local3:int = 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 24
//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 iDAlpha:Array; private var iCurAlpha:Number; private var iEndAlpha:Array; public var iSAlpha:Number; public var iInd:Array; public var iPIter:int; public function OA_AlphaInd(_arg1:Object, _arg2:OIObject=null){ super(_arg1, _arg2); } override protected function Start():int{ var _local3:DisplayObject; var _local4:Number; if (((!(this.iInd)) || ((this.iInd.length == 0)))){ return (stEnd); }; var _local1:int = this.iInd.length; this.iEndAlpha = new Array(_local1); this.iDAlpha = new Array(_local1); var _local2:int; 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 _local2:int; var _local3:DisplayObject; this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]); var _local1:int = 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 25
//OA_Scale (ENGINE.INTERFACE.ANIMATORS.OA_Scale) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OA_Scale extends OAnimator { public var iSScale:Number; public var iEScale:Number; private var iDScale:Number; private var iEndScale: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 = ((this.iSScale)>=0) ? this.iSScale : this.iTarget.scaleX; this.iEndScale = ((this.iEScale)>=0) ? this.iEScale : this.iTarget.scaleX; this.iDScale = ((this.iEndScale - _local1) / iPIter); var _local2:Number = this.iTarget.prWidth; var _local3:Number = 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 = this.iTarget.prWidth; var _local2:Number = this.iTarget.prHeight; var _local3:Number = (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 26
//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 get State():int{ return (this.iState); } 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 set prTarget(_arg1:OIObject):void{ this.iTarget = _arg1; } public function Return():int{ return (stPlay); } protected function Start():int{ return (stPlay); } public function OnEnterFrame():void{ if (this.iState == stPlay){ Play(); }; } public function Play():void{ this.State = stEnd; } } }//package ENGINE.INTERFACE.ANIMATORS
Section 27
//OAnimatorManager (ENGINE.INTERFACE.ANIMATORS.OAnimatorManager) package ENGINE.INTERFACE.ANIMATORS { import ENGINE.INTERFACE.*; public class OAnimatorManager { private var iTarget:OIObject; private var iPlaying:Array; 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{ if (_arg1 == null){ return; }; if (this.iPlaying.length > 0){ this.iPlaying[0].Return(); }; var _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 28
//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 _local13:Sprite; super(); var _local12:Number = (_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 prFormat(_arg1:TextFormat):void{ this.iTextFormat = _arg1; this.defaultTextFormat = _arg1; this.setTextFormat(this.iTextFormat); } public function get prFormat():TextFormat{ return (this.iTextFormat); } public function set prText(_arg1:String):void{ this.htmlText = _arg1; } public function get prText():String{ return (this.htmlText); } } }//package ENGINE.INTERFACE.ELEMENTS
Section 29
//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 = OGlobal.Scale; this.type = TextFieldType.INPUT; this.autoSize = TextFieldAutoSize.NONE; this.embedFonts = true; var _local13:Sprite = ((_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 prFormat(_arg1:TextFormat):void{ this.iTextFormat = _arg1; this.defaultTextFormat = _arg1; this.setTextFormat(this.iTextFormat); } protected function OnFocusIn(_arg1:FocusEvent):void{ this.setTextFormat(this.iTextFormat); } public function get prFormat():TextFormat{ return (this.iTextFormat); } public function set prText(_arg1:String):void{ this.text = (((!(_arg1)) || ((_arg1 == "")))) ? " " : _arg1; } public function get prText():String{ var _local1:String = this.text; while (_local1.charAt() == " ") { _local1 = _local1.substr(1); }; while (_local1.charAt((_local1.length - 1)) == " ") { _local1 = _local1.substr(0, (_local1.length - 1)); }; return (_local1); } } }//package ENGINE.INTERFACE.ELEMENTS
Section 30
//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 = (_arg2) ? _arg2 : iDefAnimators; super(_arg1, _local3); } 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); } override public function OnMouseUp(_arg1:MouseEvent):void{ } override public function OnRollOut(_arg1:MouseEvent):void{ this.prRool = false; } } }//package ENGINE.INTERFACE.ELEMENTS
Section 31
//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){ this.iMessages = _arg2; var _local4:Array = (_arg3) ? _arg3 : ODialog.iDefAnimators; super(_arg1, _local4); } override public function OnPress(_arg1:Event, _arg2):void{ if (((!(this.iMessages)) || (!(this.iButtons)))){ this.prVisible = false; return; }; var _local3:int; var _local4:int; 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]); } else { OApplication.sInstance.prMenuItem = iMessages[_local4]; }; this.prVisible = false; return; }; _local4++; }; } override public function Init():void{ this.iButtons = new Array(); super.Init(); } override public function Free():void{ this.iButtons = null; super.Free(); } } }//package ENGINE.INTERFACE
Section 32
//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:DisplayObject; private var iLastMute:Boolean;// = false protected var iMenuItem:Array; private var iMuteFocus:Boolean;// = false public static var sInstance:OApplication; public function OApplication(_arg1:String){ OApplication.sInstance = this; OGlobal.AppName = _arg1; if (this.stage){ OGlobal.SetDomain(); this.InitStage(); }; super(null); if (!this.iStaged){ this.addEventListener(Event.ENTER_FRAME, NotStagedEnterFrame); }; } protected function OnDeactivate(_arg1:Event):void{ this.SoundOffFocus(true); } override public function Free():void{ OGlobal.prStage.removeEventListener(Event.DEACTIVATE, OnDeactivate); OGlobal.prStage.removeEventListener(Event.ACTIVATE, OnActivate); OGlobal.prStage.removeEventListener(Event.RESIZE, OnResize); this.iMenuItem = null; super.Free(); } public function InitBackground(_arg1:Array, _arg2:int=0, _arg3:Boolean=true):void{ if (this.iBackground != null){ if (this.iBackground.parent != null){ this.iBackground.parent.removeChild(this.iBackground); }; this.iBackground = null; }; if (_arg3 == true){ this.iBackground = new OBackground(_arg1, _arg2); } else { this.iBackground = new (_arg1[_arg2]); this.iBackground.width = (800 * OGlobal.Scale); this.iBackground.height = (600 * OGlobal.Scale); }; this.addChildAt(this.iBackground, 0); } 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; }; } private function SoundOffFocus(_arg1:Boolean):void{ if (_arg1 == this.iMuteFocus){ return; }; this.iMuteFocus = _arg1; if (this.iMuteFocus == true){ this.iLastMute = OSound.Mute; OSound.Mute = true; } else { OSound.Mute = this.iLastMute; }; } public function set prMenuItem(_arg1:int):void{ this.iMenuItem.push(_arg1); } protected function OnMenuItem():void{ } protected function OnActivate(_arg1:Event):void{ this.SoundOffFocus(false); } public function get prMenuItem():int{ return ((this.iMenuItem.length) ? this.iMenuItem.pop() : -1); } public function InitStage(_arg1:Stage=null):void{ var s:String; var b:int; var aStage = _arg1; if (((aStage) || (this.stage))){ OGlobal.prStage = (aStage) ? aStage : 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){ s = ("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; }"); b = 0; try { b = ExternalInterface.call(s); } catch(e:Error) { OGlobal.prStage.frameRate = OGlobal.FPS; }; if (b > 0){ OGlobal.FPS = (OGlobal.FPS * 2); }; }; OGlobal.prStage.frameRate = OGlobal.FPS; OGlobal.prStage.addEventListener(Event.RESIZE, OnResize); OGlobal.prStage.addEventListener(Event.DEACTIVATE, OnDeactivate); OGlobal.prStage.addEventListener(Event.ACTIVATE, this.OnActivate); } public function OnResize(_arg1:Event):void{ this.Free(); this.InitStage(); this.Init(); } public function GetMute():Boolean{ if (this.iMuteFocus == true){ return (this.iLastMute); }; return (OSound.Mute); } override public function Init():void{ if (!this.stage){ return; }; super.Init(); this.iMenuItem = new Array(); this.iStaged = true; this.visible = true; } } }//package ENGINE.INTERFACE
Section 33
//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){ this.iImages = _arg1; this.prIInd = _arg2; } 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 Make():void{ var _local1:Sprite; var _local2:BitmapData; var _local3:OBM; 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); var _local4:Rectangle = OGlobal.ViewporRect; var _local5:Rectangle = OGlobal.StageRect; this.x = -(_local4.x); this.y = -(_local4.y); var _local6:int = Math.floor((_local5.width / _local1.width)); if (_local6 == 0){ return; }; var _local7:int = 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++; }; var _local8:Number = OGlobal.Scale; var _local9:int; 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++; }; } public function get prIInd():int{ return (this.iIInd); } override public function Free():void{ super.Free(); } } }//package ENGINE.INTERFACE
Section 34
//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 = ((_arg2)==null) ? OButton.iDefAnimators : _arg2; super(_arg1, _local3); } override public function OnRollOver(_arg1:MouseEvent):void{ this.prRool = true; } 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 Init():void{ this.useHandCursor = true; this.buttonMode = true; super.Init(); if (this.iHit){ this.iHit.visible = false; this.hitArea = this.iHit; }; } override public function OnMouseDown(_arg1:MouseEvent):void{ this.prPress = true; if ((this.parent is OIObject)){ (this.parent as OIObject).OnPress(_arg1, this); }; } override public function Free():void{ this.iHit = null; super.Free(); } } }//package ENGINE.INTERFACE
Section 35
//OCounter (ENGINE.INTERFACE.OCounter) package ENGINE.INTERFACE { import ENGINE.INTERFACE.ANIMATORS.*; public class OCounter extends OIObject { public var iDigits0:Array; protected var iValue0:int; protected var iValue:int; public var iDigits:Array; protected var iHeight:Number; public var iSeparator:OIObject; protected var iWidth: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){ this.iWidth = _arg2; this.iHeight = _arg3; var _local5:Array = (_arg4) ? _arg4 : iDefAnimators; super(_arg1, _local5); } private function Draw():void{ var _local4:int; var _local6:int; var _local1:Number = 0; var _local2:String = this.iValue0.toString(); var _local3:String = 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++; }; }; var _local5:Number = ((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 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(); } 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(); } override public function Free():void{ this.iDigits = null; this.iDigits0 = null; this.iSeparator = null; super.Free(); } override public function Init():void{ this.iDigits = new Array(); this.iDigits0 = new Array(); super.Init(); } public function get prValue():int{ return (this.iValue); } public function get prValue0():int{ return (this.iValue0); } } }//package ENGINE.INTERFACE
Section 36
//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 = (_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 37
//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 = ((_arg2)==null) ? _slot1.iDefAnimators : _arg2; super(_arg1, _local3); } override public function Init():void{ super.Init(); this.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp); } protected function OnKeyUp(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == 13)) && ((this.parent is OWindow)))){ (this.parent as OWindow).OnPress(null, this); }; } public function set prText(_arg1:String):void{ this.iText.prText = _arg1; } public function get prText():String{ return (this.iText.prText); } } }//package ENGINE.INTERFACE
Section 38
//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 = 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 39
//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 iAManager:OAnimatorManager; protected var iParam:Array; protected var iAParams:Array; protected var iAEnabled:Boolean;// = true protected var iState:int; 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); super(); this.iParam = _arg1; this.iAParams = _arg2; this.Init(); } public function OnMouseDown(_arg1:MouseEvent):void{ this.prPress = true; } public function PosCenter(_arg1:Number=800, _arg2:Number=600):void{ var _local3:Rectangle = 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 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 get prRool():Boolean{ return (((this.iTrigger & trRool) > 0)); } public function OnPress(_arg1:Event, _arg2):void{ } public function set prAnimationEnabled(_arg1:Boolean):void{ this.iAEnabled = _arg1; } public function SetVisible(_arg1:Boolean):void{ this.prAnimationEnabled = false; this.prVisible = _arg1; this.prAnimationEnabled = true; } 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 OnEnterFrame(_arg1:Event):void{ if (this.iAManager){ this.iAManager.OnEnterFrame(); }; } override public function get prVisible():Boolean{ return (((this.iTrigger & trVisible) > 0)); } public function OnRollOut(_arg1:MouseEvent):void{ this.prRool = false; } 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 set prAnimatorParams(_arg1:Array):void{ this.iAParams = _arg1; if (!this.iAManager){ this.iAManager = new OAnimatorManager(this); }; } 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 get prPress():Boolean{ return (((this.iTrigger & trPress) > 0)); } public function set State(_arg1:int):void{ this.iState = _arg1; } public function get prActive():Boolean{ return (((this.iTrigger & trActive) > 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]); }; }; } public function get prAnimatorParams():Array{ return (this.iAParams); } public function OnMouseUp(_arg1:MouseEvent):void{ this.prPress = false; } public function get State():int{ return (this.iState); } 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 AddAnimator(_arg1:Object, _arg2:Boolean=true):void{ var _local3:Boolean = (_arg2) ? ((((this.iAManager) && (this.prVisible))) && (this.iAEnabled)) : ((this.iAManager) && (this.iAEnabled)); if (_local3){ this.iAManager.AddAnimator(_arg1); }; } public function get prFocus():Boolean{ return (((this.iTrigger & trFocus) > 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]); }; }; } public function get prAnimation():Boolean{ if (((this.iAManager) && (this.iAManager.prAnimation))){ return (true); }; var _local1:int; 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 OnRollOver(_arg1:MouseEvent):void{ this.prRool = true; } public function get prMouseEnabled():Boolean{ return (((this.prVisible) && (this.prActive))); } public function get prAnimationEnabled():Boolean{ return (this.iAEnabled); } } }//package ENGINE.INTERFACE
Section 40
//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 iEShowInd:int; private var iElements:Array; private var iECoord:Array; private var iECurInd:int; private var iEGenP:Function; private var iPageScrool:Boolean; private var iSelection:Boolean;// = true public var iUp:OButton; public var iDown:OButton; private var iECount:int; private var iCycling:Boolean; private var iEGen:Array; 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 = (_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 get prCycling():Boolean{ return (this.iCycling); } public function get prPageScrool():Boolean{ return (this.iPageScrool); } public function set prCycling(_arg1:Boolean):void{ this.iCycling = _arg1; InitElements(); } protected function InitElements():void{ var _local4:Boolean; this.FreeElements(); if (this.iLBParams == null){ return; }; var _local1:int; var _local2:int = (((this.iEShowInd + this.iECount) <= this.iLBParams.length)) ? (this.iEShowInd + this.iECount) : this.iLBParams.length; var _local3:int = 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 get prCurrentLBParam(){ return ((this.iLBParams) ? this.iLBParams[this.iECurInd] : null); } public function set prCurrentInd(_arg1:int):void{ if (!this.iLBParams){ return; }; this.SetCurrentElement(this.iLBParams[_arg1]); } override public function Free():void{ this.iUp = null; this.iDown = null; this.iElements = null; super.Free(); } public function set prSelection(_arg1:Boolean):void{ this.iSelection = _arg1; InitElements(); } public function get prCurrentInd():int{ return (this.iECurInd); } protected function SkipElements(_arg1:int):Boolean{ if (!this.iLBParams){ return (false); }; var _local2:int = (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 SetCurrentElement(_arg1, _arg2:Array=null):void{ 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; var _local3:int; 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 FreeElements():void{ var _local1:int; while (_local1 < this.iElements.length) { if (!this.iElements[_local1]){ } else { this.removeChild(this.iElements[_local1]); this.iElements[_local1].Free(); this.iElements[_local1] = null; }; _local1++; }; } public function get prSelection():Boolean{ return (this.iSelection); } protected function UnpressElements(_arg1:OListBoxElement):void{ var _local2:int; 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++; }; } override public function Init():void{ super.Init(); this.iElements = new Array(); this.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 set prLBParams(_arg1:Array):void{ this.iLBParams = _arg1; this.iECurInd = 0; this.iEShowInd = 0; this.InitElements(); } public function set prPageScrool(_arg1:Boolean):void{ this.iPageScrool = _arg1; } } }//package ENGINE.INTERFACE
Section 41
//OProgress (ENGINE.INTERFACE.OProgress) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import flash.geom.*; public class OProgress extends OIObject { private var iPBG:OBitmap; private var iValue:Number; public var iProgress:OBitmap; public var iProgressBG:OBitmap; public function OProgress(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); } public function get prValue():Number{ return (this.iValue); } override public function Free():void{ this.iProgressBG = null; this.iProgress = null; super.Free(); } override public function Init():void{ super.Init(); if (this.iProgressBG){ this.iPBG = this.iProgressBG.Clone(); }; } 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; } } }//package ENGINE.INTERFACE
Section 42
//OTab (ENGINE.INTERFACE.OTab) package ENGINE.INTERFACE { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.ANIMATORS.*; public class OTab extends OIObject { private var iCurInd:int; protected var iHeight:Number; private var iVAnimator:Object; protected var iWidth: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){ this.iWidth = _arg2; this.iHeight = _arg3; this.iVAnimator = (_arg4) ? _arg4 : iDefVAnimator; var _local6:Array = (_arg5) ? _arg5 : iDefAnimators; super(_arg1, _local6); } override public function get prWidth():Number{ return (this.iWidth); } public function PosValue(_arg1:Number, _arg2:Number):void{ (this.getChildAt(this.iCurInd) as IDisplayObject).Pos((_arg1 - this.prX), (_arg2 - this.prY)); } public function get prValue():int{ return (this.iCurInd); } override public function get prHeight():Number{ return (this.iHeight); } 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; } } }//package ENGINE.INTERFACE
Section 43
//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 44
//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 iF0S:DropShadowFilter; private var iColor:uint;// = 0 private var iF2B:BlurFilter; private var iF1G:GlowFilter; private var iBorder:Number;// = 0 private var iF2GG1:GradientGlowFilter; private var iF2GG2:GradientGlowFilter; private var iF1S:DropShadowFilter; override public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{ var _local18:Bitmap; var _local5:OBM = OBM.Make([null, _arg1, _arg2, _arg3, _arg4, 0]); var _local6:Number = OGlobal.Scale; var _local7:Number = 0.85; var _local8:Sprite = new Sprite(); var _local9:Sprite = new Sprite(); _local9.x = iBorder; _local9.y = iBorder; _local9.alpha = _local7; _local8.addChild(_local9); var _local10:ColorTransform = new ColorTransform(0, 0, 0); _local10.color = this.iColor; var _local11:Bitmap = 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); }; var _local12:Bitmap = new Bitmap(_local5.iBM); _local12.blendMode = "multiply"; _local12.filters = [this.iF1S]; _local9.addChild(_local12); var _local13:Bitmap = new Bitmap(_local5.iBM); _local13.blendMode = "multiply"; _local13.filters = [this.iF1G]; _local9.addChild(_local13); var _local14:Sprite = new Sprite(); _local14.blendMode = "layer"; _local14.filters = [this.iF2B]; _local9.addChild(_local14); var _local15:Bitmap = new Bitmap(_local5.iBM); _local15.blendMode = "screen"; _local15.filters = [this.iF2GG1]; _local14.addChild(_local15); var _local16:Bitmap = new Bitmap(_local5.iBM); _local16.blendMode = "erase"; _local16.filters = [this.iF2GG2]; _local14.addChild(_local16); var _local17:BitmapData = 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 _local10:int; var _local11:int; var _local12:Array; var _local13:Array; var _local4:Object = this.iColors.GetItem(_arg1); var _local5:Object = this.iFilters.GetItem(_arg2); if (_local5 == null){ return; }; var _local6:Number = (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]; }; }; var _local7:uint = 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); var _local8:Number = ((_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); var _local9:Number = ((_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 45
//OMultiplayer (ENGINE.SMARTFOX.OMultiplayer) package ENGINE.SMARTFOX { import it.gotoandplay.smartfoxserver.handlers.*; import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.util.*; import ENGINE.CORE.*; public class OMultiplayer extends SmartFoxClient { private var iOpponentID:int; private var iTurn:Array; private var iOpponentName:String; private var iName:String; private var iCmd:String; private var iError:String; private var iPassword:String; private var iConnection:Boolean;// = false private var iState:int; private var iUsersCount:int; private var iErrorsCount:int; private var iAdress:String; private var iXTName:String; private var iTimer:int; private var iGRoomParams:Array; private var iZoneName:String; private var iGameParams:Array; private var iCMessages:Array; 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){ super(_arg1); this.State = stNone; } public function get prActiveRoomID():int{ return (this.activeRoomId); } private function OnConnectionLost(_arg1:SFSEvent):void{ this.iConnection = false; this.State = stNone; } public function get prErrorsCount():int{ return (this.iErrorsCount); } 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 get prOpponentTurn():String{ return (((this.iTurn.length)>0) ? this.iTurn[0] : null); } public function Turn(_arg1:Array=null):void{ if (this.iState > stLoginError){ this.sendXtMessage(this.iXTName, _slot1.cmdMakeTurn, (_arg1) ? [_arg1.toString(), this.iOpponentID] : ["0", this.iOpponentID], "str"); }; } 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 prError():String{ return (this.iError); } public function ClearChatMessage(_arg1:Boolean=false):void{ if (_arg1){ this.iCMessages = new Array(); } else { if (this.iCMessages[0]){ this.iCMessages.shift(); }; }; } public function get prChatMessage():String{ return (((this.iCMessages.length)==0) ? null : 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; } public function get prGameParams():Array{ return (this.iGameParams); } 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 ClearOpponentTurn(_arg1:Boolean=false):void{ if (_arg1){ this.iTurn = new Array(); } else { if (this.iTurn[0]){ this.iTurn.shift(); }; }; } public function ClearCmd():void{ this.iCmd = null; } public function set prGRoomParams(_arg1:Array):void{ this.iGRoomParams = _arg1; } 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; }; } private function OnExtensionResponse(_arg1:SFSEvent):void{ if (_arg1.params.type != "str"){ return; }; var _local2:Array = _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 = _slot1.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 = _slot1.stGameError; } else { this.activeRoomId = _local2[2]; this.playerId = _local2[3]; this.iOpponentID = _local2[4]; this.iOpponentName = _local2[5]; this.State = _slot1.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 cmdSend(_arg1:String, _arg2:Array=null):void{ if (this.iState > stLoginError){ this.sendXtMessage(this.iXTName, _arg1, (_arg2) ? _arg2 : [], "str"); }; } public function ChatMessage(_arg1:Array=null):void{ this.sendXtMessage(this.iXTName, _slot1.cmdChatMessage, (_arg1) ? [_arg1.toString()] : ["0"], "str"); } public function get State():int{ return (this.iState); } public function set prGameParams(_arg1:Array):void{ this.iGameParams = _arg1; } } }//package ENGINE.SMARTFOX
Section 46
//Room (it.gotoandplay.smartfoxserver.data.Room) package it.gotoandplay.smartfoxserver.data { public class Room { private var maxSpectators:int; private var maxUsers:int; private var userList:Array; private var name:String; private var userCount:int; private var specCount:int; private var temp:Boolean; private var limbo:Boolean; private var id:int; private var myPlayerIndex:int; private var game:Boolean; private var variables:Array; private var priv:Boolean; 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 getUser(_arg1):User{ var _local3:String; var _local4:User; var _local2:User; 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 removeUser(_arg1:int):void{ delete userList[_arg1]; userCount--; } public function addUser(_arg1:User, _arg2:int):void{ userList[_arg2] = _arg1; userCount++; } public function setVariables(_arg1:Array):void{ this.variables = _arg1; } public function getUserCount():int{ return (this.userCount); } public function getId():int{ return (this.id); } public function setIsLimbo(_arg1:Boolean):void{ this.limbo = _arg1; } public function getVariables():Array{ return (variables); } public function isLimbo():Boolean{ return (this.limbo); } public function getMaxUsers():int{ return (this.maxUsers); } public function getMaxSpectators():int{ return (this.maxSpectators); } public function getName():String{ return (this.name); } public function isPrivate():Boolean{ return (this.priv); } public function setSpectatorCount(_arg1:int):void{ this.specCount = _arg1; } public function clearVariables():void{ this.variables = []; } public function isTemp():Boolean{ return (this.temp); } public function getMyPlayerIndex():int{ return (this.myPlayerIndex); } public function getSpectatorCount():int{ return (this.specCount); } public function getVariable(_arg1:String):Object{ return (variables[_arg1]); } public function setMyPlayerIndex(_arg1:int):void{ this.myPlayerIndex = _arg1; } public function isGame():Boolean{ return (this.game); } public function getUserList():Array{ return (this.userList); } } }//package it.gotoandplay.smartfoxserver.data
Section 47
//User (it.gotoandplay.smartfoxserver.data.User) package it.gotoandplay.smartfoxserver.data { public class User { private var isSpec:Boolean; private var pId:int; private var name:String; private var variables:Array; private var isMod:Boolean; private var id:int; public function User(_arg1:int, _arg2:String){ this.id = _arg1; this.name = _arg2; this.variables = []; this.isSpec = false; this.isMod = false; } public function getName():String{ return (this.name); } public function clearVariables():void{ this.variables = []; } public function getVariables():Array{ return (this.variables); } public function setModerator(_arg1:Boolean):void{ this.isMod = _arg1; } public function isSpectator():Boolean{ return (this.isSpec); } public function getId():int{ return (this.id); } public function isModerator():Boolean{ return (this.isMod); } public function setVariables(_arg1:Array):void{ this.variables = _arg1; } public function getVariable(_arg1:String):Object{ return (this.variables[_arg1]); } public function setIsSpectator(_arg1:Boolean):void{ this.isSpec = _arg1; } public function setPlayerId(_arg1:int):void{ this.pId = _arg1; } public function getPlayerId():int{ return (this.pId); } } }//package it.gotoandplay.smartfoxserver.data
Section 48
//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 49
//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 50
//SysHandler (it.gotoandplay.smartfoxserver.handlers.SysHandler) package it.gotoandplay.smartfoxserver.handlers { import it.gotoandplay.smartfoxserver.data.*; import it.gotoandplay.smartfoxserver.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.util.*; 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 = int(_arg1.body.rm.@id); var _local3:Array = sfs.getAllRooms(); var _local4:Object = {}; _local4.room = _local3[_local2]; delete _local3[_local2]; var _local5:SFSEvent = new SFSEvent(SFSEvent.onRoomDeleted, _local4); sfs.dispatchEvent(_local5); } public function handleAdminMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:Object = {}; _local5.message = Entities.decodeEntities(_local4); var _local6:SFSEvent = new SFSEvent(SFSEvent.onAdminMessage, _local5); sfs.dispatchEvent(_local6); } public function handleUserVarsUpdate(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:User = sfs.getRoom(_local2).getUser(_local3); var _local5:Array = []; if (_arg1.body.vars.toString().length > 0){ populateVariables(_local4.getVariables(), _arg1.body, _local5); }; var _local6:Object = {}; _local6.user = _local4; _local6.changedVars = _local5; var _local7:SFSEvent = new SFSEvent(SFSEvent.onUserVariablesUpdate, _local6); sfs.dispatchEvent(_local7); } public function handleUserLeaverRoom(_arg1:Object):void{ var _local2:int = int(_arg1.body.user.@id); var _local3:int = int(_arg1.body.@r); var _local4:Room = sfs.getRoom(_local3); var _local5:String = _local4.getUser(_local2).getName(); _local4.removeUser(_local2); var _local6:Object = {}; _local6.roomId = _local3; _local6.userId = _local2; _local6.userName = _local5; var _local7:SFSEvent = new SFSEvent(SFSEvent.onUserLeaveRoom, _local6); sfs.dispatchEvent(_local7); } public function handlePrivateMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; _local6.userId = _local3; var _local7:SFSEvent = new SFSEvent(SFSEvent.onPrivateMessage, _local6); sfs.dispatchEvent(_local7); } private function handleCreateRoomError(_arg1:Object):void{ var _local2:String = _arg1.body.room.@e; var _local3:Object = {}; _local3.error = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onCreateRoomError, _local3); sfs.dispatchEvent(_local4); } private function handleBuddyRoom(_arg1:Object):void{ var _local2:String = _arg1.body.br.@r; var _local3:Array = _local2.split(","); var _local4:int; while (_local4 < _local3.length) { _local3[_local4] = int(_local3[_local4]); _local4++; }; var _local5:Object = {}; _local5.idList = _local3; var _local6:SFSEvent = new SFSEvent(SFSEvent.onBuddyRoom, _local5); sfs.dispatchEvent(_local6); } private function handleBuddyListUpdate(_arg1:Object):void{ var _local4:Object; var _local5:XMLList; var _local6:Object; var _local7:Boolean; var _local8:String; var _local9:XML; var _local2:Object = {}; var _local3:SFSEvent; 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 _local6:Object; var _local7:SFSEvent; var _local2:int = int(_arg1.body.@u); var _local3:int = int(_arg1.body.@s); var _local4:int = int(_arg1.body.@r); var _local5:Room = 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 = _arg1.body.k.toString(); var _local3:Object = {}; _local3.key = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onRandomKey, _local3); sfs.dispatchEvent(_local4); } public function handlePublicMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; _local6.roomId = _local2; var _local7:SFSEvent = new SFSEvent(SFSEvent.onPublicMessage, _local6); sfs.dispatchEvent(_local7); } public function handleUserEnterRoom(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.u.@i); var _local4:String = _arg1.body.u.n; var _local5 = (_arg1.body.u.@m == "1"); var _local6 = (_arg1.body.u.@s == "1"); var _local7:int = ((_arg1.body.u.@p)!=null) ? int(_arg1.body.u.@p) : -1; var _local8:XMLList = _arg1.body.u.vars["var"]; var _local9:Room = sfs.getRoom(_local2); var _local10:User = 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); }; var _local11:Object = {}; _local11.roomId = _local2; _local11.user = _local10; var _local12:SFSEvent = new SFSEvent(SFSEvent.onUserEnterRoom, _local11); sfs.dispatchEvent(_local12); } public function dispatchDisconnection():void{ var _local1:SFSEvent = new SFSEvent(SFSEvent.onConnectionLost, null); sfs.dispatchEvent(_local1); } private function handleSpectatorSwitched(_arg1:Object):void{ var _local2:int = int(_arg1.body.rm.@id); sfs.playerId = int(_arg1.body.pid.@id); var _local3:Object = {}; _local3.success = (sfs.playerId > 0); _local3.newId = sfs.playerId; _local3.room = sfs.getRoom(_local2); var _local4:SFSEvent = new SFSEvent(SFSEvent.onSpectatorSwitched, _local3); sfs.dispatchEvent(_local4); } public function handleLoginOk(_arg1:Object):void{ var _local2:int = int(_arg1.body.login.@id); var _local3:int = int(_arg1.body.login.@mod); var _local4:String = _arg1.body.login.@n; sfs.amIModerator = (_local3 == 1); sfs.myUserId = _local2; sfs.myUserName = _local4; sfs.playerId = -1; var _local5:Object = {}; _local5.success = true; _local5.name = _local4; _local5.error = ""; var _local6:SFSEvent = new SFSEvent(SFSEvent.onLogin, _local5); sfs.dispatchEvent(_local6); sfs.getRoomList(); } public function handleRoomVarsUpdate(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:Room = sfs.getRoom(_local2); var _local5:Array = []; if (_arg1.body.vars.toString().length > 0){ populateVariables(_local4.getVariables(), _arg1.body, _local5); }; var _local6:Object = {}; _local6.room = _local4; _local6.changedVars = _local5; var _local7:SFSEvent = new SFSEvent(SFSEvent.onRoomVariablesUpdate, _local6); sfs.dispatchEvent(_local7); } public function handleRoomList(_arg1:Object):void{ var _local3:XML; var _local4:Object; var _local5:SFSEvent; var _local6:int; var _local7:Room; var _local2:Array = 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 _local6:XML; var _local2:Object = {}; _local2.isOnline = ((_arg1.body.b.@s == "1")) ? true : false; _local2.name = _arg1.body.b.n.toString(); _local2.id = _arg1.body.b.@i; _local2.variables = {}; var _local3:XMLList = _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); var _local4:Object = {}; _local4.list = sfs.buddyList; var _local5:SFSEvent = new SFSEvent(SFSEvent.onBuddyList, _local4); sfs.dispatchEvent(_local5); } private function handleRoomAdded(_arg1:Object):void{ var _local2:int = int(_arg1.body.rm.@id); var _local3:String = _arg1.body.rm.name; var _local4:int = int(_arg1.body.rm.@max); var _local5:int = int(_arg1.body.rm.@spec); var _local6:Boolean = ((_arg1.body.rm.@temp == "1")) ? true : false; var _local7:Boolean = ((_arg1.body.rm.@game == "1")) ? true : false; var _local8:Boolean = ((_arg1.body.rm.@priv == "1")) ? true : false; var _local9:Boolean = ((_arg1.body.rm.@limbo == "1")) ? true : false; var _local10:Room = new Room(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9); var _local11:Array = sfs.getAllRooms(); _local11[_local2] = _local10; if (_arg1.body.rm.vars.toString().length > 0){ populateVariables(_local10.getVariables(), _arg1.body.rm); }; var _local12:Object = {}; _local12.room = _local10; var _local13:SFSEvent = 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 = int(_arg1.body.rm.@id); var _local3:Object = {}; _local3.roomId = _local2; var _local4:SFSEvent = new SFSEvent(SFSEvent.onRoomLeft, _local3); sfs.dispatchEvent(_local4); } public function handleLoginKo(_arg1:Object):void{ var _local2:Object = {}; _local2.success = false; _local2.error = _arg1.body.login.@e; var _local3:SFSEvent = new SFSEvent(SFSEvent.onLogin, _local2); sfs.dispatchEvent(_local3); } public function handleModMessage(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.txt; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = {}; _local6.message = Entities.decodeEntities(_local4); _local6.sender = _local5; var _local7:SFSEvent = new SFSEvent(SFSEvent.onModeratorMessage, _local6); sfs.dispatchEvent(_local7); } public function handleApiOK(_arg1:Object):void{ sfs.isConnected = true; var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnection, {success:true}); sfs.dispatchEvent(_local2); } private function handleRoundTripBench(_arg1:Object):void{ var _local2:int = getTimer(); var _local3:int = (_local2 - sfs.getBenchStartTime()); var _local4:Object = {}; _local4.elapsed = _local3; var _local5:SFSEvent = new SFSEvent(SFSEvent.onRoundTripResponse, _local4); sfs.dispatchEvent(_local5); } public function handleJoinOk(_arg1:Object):void{ 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; var _local2:int = int(_arg1.body.@r); var _local3:XMLList = _arg1.body; var _local4:XMLList = _arg1.body.uLs.u; var _local5:int = int(_arg1.body.pid.@id); sfs.activeRoomId = _local2; var _local6:Room = 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 handleApiKO(_arg1:Object):void{ var _local2:Object = {}; _local2.success = false; _local2.error = "API are obsolete, please upgrade"; var _local3:SFSEvent = new SFSEvent(SFSEvent.onConnection, _local2); sfs.dispatchEvent(_local3); } public function handleASObject(_arg1:Object):void{ var _local2:int = int(_arg1.body.@r); var _local3:int = int(_arg1.body.user.@id); var _local4:String = _arg1.body.dataObj; var _local5:User = sfs.getRoom(_local2).getUser(_local3); var _local6:Object = ObjectSerializer.getInstance().deserialize(new XML(_local4)); var _local7:Object = {}; _local7.obj = _local6; _local7.sender = _local5; var _local8:SFSEvent = new SFSEvent(SFSEvent.onObjectReceived, _local7); sfs.dispatchEvent(_local8); } private function handleBuddyList(_arg1:Object):void{ var _local3:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local2:XMLList = _arg1.body.bList; var _local4:Object = {}; var _local5:SFSEvent; 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 handleJoinKo(_arg1:Object):void{ sfs.changingRoom = false; var _local2:Object = {}; _local2.error = _arg1.body.error.@msg; var _local3:SFSEvent = new SFSEvent(SFSEvent.onJoinRoomError, _local2); sfs.dispatchEvent(_local3); } public function handleMessage(_arg1:Object, _arg2:String):void{ var _local3:XML = (_arg1 as XML); var _local4:String = _local3.body.@action; var _local5:Function = handlersTable[_local4]; if (_local5 != null){ _local5.apply(this, [_arg1]); } else { trace(("Unknown sys command: " + _local4)); }; } } }//package it.gotoandplay.smartfoxserver.handlers
Section 51
//JSON (it.gotoandplay.smartfoxserver.json.JSON) package it.gotoandplay.smartfoxserver.json { public class JSON { public static function decode(_arg1:String){ var _local2:JSONDecoder = new JSONDecoder(_arg1); return (_local2.getValue()); } public static function encode(_arg1:Object):String{ var _local2:JSONEncoder = new JSONEncoder(_arg1); return (_local2.getString()); } } }//package it.gotoandplay.smartfoxserver.json
Section 52
//JSONDecoder (it.gotoandplay.smartfoxserver.json.JSONDecoder) package it.gotoandplay.smartfoxserver.json { public class JSONDecoder { private var value; private var tokenizer:JSONTokenizer; private var token:JSONToken; public function JSONDecoder(_arg1:String){ tokenizer = new JSONTokenizer(_arg1); nextToken(); value = parseValue(); } private function parseObject():Object{ var _local2:String; var _local1:Object = 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 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())); } public function getValue(){ return (value); } private function parseArray():Array{ var _local1:Array = 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); } } }//package it.gotoandplay.smartfoxserver.json
Section 53
//JSONEncoder (it.gotoandplay.smartfoxserver.json.JSONEncoder) package it.gotoandplay.smartfoxserver.json { import flash.utils.*; public class JSONEncoder { private var jsonString:String; public function JSONEncoder(_arg1){ jsonString = convertToString(_arg1); } private function escapeString(_arg1:String):String{ var _local3:String; var _local6:String; var _local7:String; var _local2 = ""; var _local4:Number = _arg1.length; var _local5:int; 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 arrayToString(_arg1:Array):String{ var _local2 = ""; var _local3:int; while (_local3 < _arg1.length) { if (_local2.length > 0){ _local2 = (_local2 + ","); }; _local2 = (_local2 + convertToString(_arg1[_local3])); _local3++; }; return ((("[" + _local2) + "]")); } public function getString():String{ return (jsonString); } private function objectToString(_arg1:Object):String{ var value:Object; var key:String; var v:XML; var o = _arg1; var s = ""; var classInfo:XML = describeType(o); if (classInfo.@name.toString() == "Object"){ for (key in o) { value = o[key]; if ((value is Function)){ } else { if (s.length > 0){ s = (s + ","); }; s = (s + ((escapeString(key) + ":") + convertToString(value))); }; }; } else { for each (v in classInfo..*.(((name() == "variable")) || ((name() == "accessor")))) { if (s.length > 0){ s = (s + ","); }; s = (s + ((escapeString(v.@name.toString()) + ":") + convertToString(o[v.@name]))); }; }; return ((("{" + s) + "}")); } private function convertToString(_arg1):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"); } } }//package it.gotoandplay.smartfoxserver.json
Section 54
//JSONParseError (it.gotoandplay.smartfoxserver.json.JSONParseError) package it.gotoandplay.smartfoxserver.json { public class JSONParseError extends Error { private var _location:int; private var _text:String; public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){ super(_arg1); _location = _arg2; _text = _arg3; } public function get location():int{ return (_location); } public function get text():String{ return (_text); } } }//package it.gotoandplay.smartfoxserver.json
Section 55
//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 get value():Object{ return (_value); } public function get type():int{ return (_type); } public function set type(_arg1:int):void{ _type = _arg1; } public function set value(_arg1:Object):void{ _value = _arg1; } } }//package it.gotoandplay.smartfoxserver.json
Section 56
//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 readString():JSONToken{ var _local3:String; var _local4:int; var _local1:JSONToken = new JSONToken(); _local1.type = JSONTokenType.STRING; var _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); } private function nextChar():String{ return ((ch = jsonString.charAt(loc++))); } public function getNextToken():JSONToken{ var _local2:String; var _local3:String; var _local4:String; var _local1:JSONToken = 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 (isWhiteSpace(ch)) { nextChar(); }; } public function parseError(_arg1:String):void{ throw (new JSONParseError(_arg1, loc, jsonString)); } private function isWhiteSpace(_arg1:String):Boolean{ return ((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))); } private function skipIgnored():void{ skipWhite(); skipComments(); skipWhite(); } private function isHexDigit(_arg1:String):Boolean{ var _local2:String = _arg1.toUpperCase(); return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F")))))); } private function readNumber():JSONToken{ var _local1:JSONToken = new JSONToken(); _local1.type = JSONTokenType.NUMBER; var _local2 = ""; if (ch == "-"){ _local2 = (_local2 + "-"); nextChar(); }; if (!isDigit(ch)){ parseError("Expecting a digit"); }; if (ch == "0"){ _local2 = (_local2 + ch); nextChar(); if (isDigit(ch)){ parseError("A digit cannot immediately follow 0"); }; } else { while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if (ch == "."){ _local2 = (_local2 + "."); nextChar(); if (!isDigit(ch)){ parseError("Expecting a digit"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if ((((ch == "e")) || ((ch == "E")))){ _local2 = (_local2 + "e"); nextChar(); if ((((ch == "+")) || ((ch == "-")))){ _local2 = (_local2 + ch); nextChar(); }; if (!isDigit(ch)){ parseError("Scientific notation number needs exponent value"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; var _local3:Number = Number(_local2); if (((isFinite(_local3)) && (!(isNaN(_local3))))){ _local1.value = _local3; return (_local1); }; parseError((("Number " + _local3) + " is not valid!")); return (null); } } }//package it.gotoandplay.smartfoxserver.json
Section 57
//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 58
//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; _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 _local4:String; var _local5:int; var _local2 = ""; var _local3:int; 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 = _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 59
//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 = {}; obj2xml(_arg1, _local2); return (_local2.xmlStr); } private function xml2obj(_arg1:XML, _arg2:Object):void{ var _local5:String; var _local6:XML; var _local7:String; var _local8:String; var _local9:String; var _local10:String; var _local11:String; var _local3:int; var _local4:XMLList = _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 setDebug(_arg1:Boolean):void{ this.debug = _arg1; if (this.debug){ this.eof = "\n"; } else { this.eof = ""; }; } private function encodeEntities(_arg1:String):String{ return (_arg1); } 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)); }; } public function deserialize(_arg1:String):Object{ var _local2:XML = new XML(_arg1); var _local3:Object = {}; 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 60
//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 61
//SmartFoxClient (it.gotoandplay.smartfoxserver.SmartFoxClient) package it.gotoandplay.smartfoxserver { import flash.events.*; import it.gotoandplay.smartfoxserver.handlers.*; import it.gotoandplay.smartfoxserver.data.*; import flash.utils.*; import it.gotoandplay.smartfoxserver.util.*; import it.gotoandplay.smartfoxserver.json.*; import flash.net.*; public class SmartFoxClient extends EventDispatcher { public var buddyList:Array; private var subVersion:Number; private var connected:Boolean; private var messageHandlers:Array; public var buddyVars:Array; public var myUserId:int; private var majVersion:Number; private var minVersion:Number; private var roomList:Array; private var socketConnection:Socket; private var sysHandler:SysHandler; public var myUserName:String; public var debug:Boolean; public var playerId:int; private var byteBuffer:ByteArray; private var extHandler:ExtHandler; public var amIModerator:Boolean; public var changingRoom:Boolean; public var activeRoomId:int; private var benchStartTime: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 _local3:*; var _local4:String; var _local5:String; var _local6:String; var _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 jsonReceived(_arg1:String):void{ var _local2:Object = JSON.decode(_arg1); var _local3:String = _local2["t"]; var _local4:IMessageHandler = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2["b"], XTMSG_TYPE_JSON); }; } public function set isConnected(_arg1:Boolean):void{ this.connected = _arg1; } private function checkBuddyDuplicates(_arg1:String):Boolean{ var _local3:Object; var _local2:Boolean; for each (_local3 in buddyList) { if (_local3.name == _arg1){ _local2 = true; break; }; }; return (_local2); } private function handleSocketData(_arg1:Event):void{ var _local3:int; var _local2:int = 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!!!"); } public function get isConnected():Boolean{ return (this.connected); } private function send(_arg1:Object, _arg2:String, _arg3:Number, _arg4:String):void{ var _local5:String = makeXmlHeader(_arg1); _local5 = (_local5 + ((((((("<body action='" + _arg2) + "' r='") + _arg3) + "'>") + _arg4) + "</body>") + closeHeader())); if (this.debug){ trace((("[Sending]: " + _local5) + "\n")); }; writeToSocket(_local5); } private function initialize():void{ this.changingRoom = false; this.amIModerator = false; this.playerId = -1; this.connected = false; this.roomList = []; this.buddyList = []; this.buddyVars = []; } private function handleSocketConnection(_arg1:Event):void{ var _local2:Object = {t:"sys"}; var _local3 = (((("<ver v='" + this.majVersion.toString()) + this.minVersion.toString()) + this.subVersion.toString()) + "' />"); send(_local2, "verChk", 0, _local3); } private function handleSocketDisconnection(_arg1:Event):void{ initialize(); var _local2:SFSEvent = new SFSEvent(SFSEvent.onConnectionLost, {}); dispatchEvent(_local2); } public function getRoomList():void{ var _local1:Object = {t:"sys"}; send(_local1, "getRmList", activeRoomId, ""); } private function xmlReceived(_arg1:String):void{ var _local2:XML = new XML(_arg1); var _local3:String = _local2.@t; var _local4:String = _local2.body.@action; var _local5:int = _local2.body.@r; var _local6:IMessageHandler = messageHandlers[_local3]; if (_local6 != null){ _local6.handleMessage(_local2, XTMSG_TYPE_XML); }; } public function getBuddyRoom(_arg1:Object):void{ if (_arg1.id != -1){ send({t:"sys", bid:_arg1.id}, "roomB", -1, (("<b id='" + _arg1.id) + "' />")); }; } public function switchSpectator(_arg1:int=-1):void{ if (_arg1 == -1){ _arg1 = activeRoomId; }; send({t:"sys"}, "swSpec", _arg1, ""); } public function disconnect():void{ socketConnection.close(); connected = false; sysHandler.dispatchDisconnection(); } public function roundTripBench():void{ this.benchStartTime = getTimer(); send({t:"sys"}, "roundTrip", activeRoomId, ""); } 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{ if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4:Room = getActiveRoom(); var _local5:User = _local4.getUser(myUserId); var _local6:String = 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 login(_arg1:String, _arg2:String, _arg3:String):void{ var _local4:Object = {t:"sys"}; var _local5 = (((((("<login z='" + _arg1) + "'><nick><![CDATA[") + _arg2) + "]]></nick><pword><![CDATA[") + _arg3) + "]]></pword></login>"); send(_local4, "login", 0, _local5); } public function createRoom(_arg1:Object, _arg2:int=-1):void{ var _local9:String; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4:String = (_arg1.isGame) ? "1" : "0"; var _local5 = "1"; var _local6:String = ((_arg1.maxUsers == null)) ? "0" : String(_arg1.maxUsers); var _local7:String = ((_arg1.maxSpectators == null)) ? "0" : String(_arg1.maxSpectators); if (((_arg1.isGame) && (!((_arg1.exitCurrent == null))))){ _local5 = (_arg1.exitCurrent) ? "1" : "0"; }; var _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); } public function joinRoom(_arg1, _arg2:String="", _arg3:Boolean=false, _arg4:Boolean=false, _arg5:int=-1):void{ var _local8:Room; var _local9:Object; var _local10:String; var _local11:int; var _local12:String; var _local6 = -1; var _local7:int = (_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!"); }; }; } private function makeXmlHeader(_arg1:Object):String{ var _local3:String; var _local2 = "<msg"; for (_local3 in _arg1) { _local2 = (_local2 + ((((" " + _local3) + "='") + _arg1[_local3]) + "'")); }; _local2 = (_local2 + ">"); return (_local2); } public function clearBuddyList():void{ buddyList = []; send({t:"sys"}, "clearB", -1, ""); var _local1:Object = {}; _local1.list = buddyList; var _local2:SFSEvent = 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 getRoomByName(_arg1:String):Room{ var _local3:Room; var _local2:Room; for each (_local3 in roomList) { if (_local3.getName() == _arg1){ _local2 = _local3; break; }; }; return (_local2); } public function sendPrivateMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{ if (_arg3 == -1){ _arg3 = activeRoomId; }; var _local4:Object = {t:"sys"}; var _local5 = (((("<txt rcp='" + _arg2) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local4, "prvMsg", _arg3, _local5); } public function setRoomVariables(_arg1:Array, _arg2:int=-1, _arg3:Boolean=true):void{ var _local5:String; var _local6:Object; if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local4:Object = {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 loadBuddyList():void{ send({t:"sys"}, "loadB", -1, ""); } private function handleMessage(_arg1:String):void{ if (this.debug){ trace((((("[ RECEIVED ]: " + _arg1) + ", (len: ") + _arg1.length) + ")")); }; var _local2:String = _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); }; }; }; } private function strReceived(_arg1:String):void{ var _local2:Array = _arg1.substr(1, (_arg1.length - 2)).split(MSG_STR); var _local3:String = _local2[0]; var _local4:IMessageHandler = messageHandlers[_local3]; if (_local4 != null){ _local4.handleMessage(_local2.splice(1, (_local2.length - 1)), XTMSG_TYPE_STR); }; } 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); }; }; }; } public function sendPublicMessage(_arg1:String, _arg2:int=-1):void{ if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3:Object = {t:"sys"}; var _local4 = (("<txt><![CDATA[" + Entities.encodeEntities(_arg1)) + "]]></txt>"); send(_local3, "pubMsg", _arg2, _local4); } public function leaveRoom(_arg1:int):void{ var _local2:Object = {t:"sys"}; var _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!")); }; } private function writeToSocket(_arg1:String):void{ var _local2:ByteArray = new ByteArray(); _local2.writeMultiByte(_arg1, "utf-8"); _local2.writeByte(0); socketConnection.writeBytes(_local2); socketConnection.flush(); } public function removeBuddy(_arg1:String):void{ var _local3:Object; var _local4:String; var _local5:Object; var _local6:String; var _local7:Object; var _local8:SFSEvent; var _local2:Boolean; 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); }; } public function getRoom(_arg1:int):Room{ return (roomList[_arg1]); } public function getAllRooms():Array{ return (roomList); } private function setupMessageHandlers():void{ sysHandler = new SysHandler(this); extHandler = new ExtHandler(this); addMessageHandler("sys", sysHandler); addMessageHandler("xt", extHandler); } private function getXmlRoomVariable(_arg1:Object):String{ var _local2:String = _arg1.name.toString(); var _local3:* = _arg1.val.toString(); var _local4:String = (_arg1.priv) ? "1" : "0"; var _local5:String = (_arg1.persistent) ? "1" : "0"; var _local6:String; 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 (""); } public function sendObjectToGroup(_arg1:Object, _arg2:Array, _arg3:int):void{ var _local5:String; var _local6:Object; var _local7:String; if (_arg3 == -1){ _arg3 = activeRoomId; }; var _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); } 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"); }; } public function getRandomKey():void{ send({t:"sys"}, "rndK", -1, ""); } public function sendObject(_arg1:Object, _arg2:int=-1):void{ if (_arg2 == -1){ _arg2 = activeRoomId; }; var _local3 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>"); var _local4:Object = {t:"sys"}; send(_local4, "asObj", _arg2, _local3); } public function connect(_arg1:String, _arg2:int):void{ if (!connected){ initialize(); socketConnection.connect(_arg1, _arg2); } else { trace("*** ALREADY CONNECTED ***"); }; } public function setBuddyVariables(_arg1:Array):void{ var _local4:String; var _local5:String; var _local2:Object = {t:"sys"}; var _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 sendModeratorMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{ var _local4:Object = {t:"sys"}; var _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 autoJoin():void{ var _local1:Object = {t:"sys"}; this.send(_local1, "autoJoin", (this.activeRoomId) ? this.activeRoomId : -1, ""); } public function getActiveRoom():Room{ return (roomList[activeRoomId]); } } }//package it.gotoandplay.smartfoxserver
Section 62
//OGDigit (MAIN.OBJECTS.DIGITS_PANEL.OGDigit) package MAIN.OBJECTS.DIGITS_PANEL { import ENGINE.DISPLAY.*; public class OGDigit extends OSprite { public var iValue:int; private var iSizeFont:int; private var iColor:String; private var iBitmap:OBitmap; public function OGDigit(_arg1:int, _arg2:int, _arg3:String){ iValue = _arg1; iSizeFont = _arg2; iColor = _arg3; Init(); } override public function Free():void{ removeChild(iBitmap); iBitmap = null; super.Free(); } private function Init():void{ iBitmap = GL.HeaderM([GL.HeaderM, iSizeFont, iSizeFont, iColor, iValue, 0, 0, null, 0, true]); addChild(iBitmap); Pos((width / 2), (height / 2)); } } }//package MAIN.OBJECTS.DIGITS_PANEL
Section 63
//OGDigitsPanel (MAIN.OBJECTS.DIGITS_PANEL.OGDigitsPanel) package MAIN.OBJECTS.DIGITS_PANEL { import ENGINE.DISPLAY.*; import MAIN.OBJECTS.*; import MAIN.OBJECTS.Particle.*; public class OGDigitsPanel extends OSprite { private var iSizeFont:int; private var iPCont:CParticleContainer; private var iEffect:Boolean; private var iWidth:int; private var iNumbers:Array; private var iRows:int; private var iNumDigits:int; private var iDigits:Array; private var iHeight:int; private var iColumns:int; private var iOffsetX:int; private var iOffsetY:int; public function OGDigitsPanel(_arg1:Array, _arg2:Boolean=true, _arg3:int=170, _arg4:int=120){ iNumDigits = _arg1.length; iNumbers = _arg1; iEffect = _arg2; iWidth = _arg3; iHeight = _arg4; var _local5:Number = 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(); } 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(); } public function RemoveDigit(_arg1:int):void{ var _local3:int; var _local2:OGDigit = 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 _local2:OGDigit; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local1:int; while (_local1 < iNumDigits) { _local2 = new OGDigit(iNumbers[_local1][0], iSizeFont, UI.cColors[(_local1 % UI.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); }; } } }//package MAIN.OBJECTS.DIGITS_PANEL
Section 64
//OMPGame (MAIN.OBJECTS.MULTYPLAYER.OMPGame) package MAIN.OBJECTS.MULTYPLAYER { import ENGINE.DISPLAY.*; import MAIN.OBJECTS.DIGITS_PANEL.*; public class OMPGame extends OSprite { private var iState:int; private var iScore:int; private var iBorder:OBitmap; private var iDigitsPanel:OGDigitsPanel; public static const comLevelFailed:int = 2; public static const stStart:int = 0; public static const comSelectNumber:int = 0; public static const stLevelFailed:int = 2; public static const stLevelComplite:int = 1; public static const comLevelComplete:int = 1; public function OMPGame(_arg1:Array){ iBorder = GL.BorderM([null, 160, 163, UI.cMainColors[3], UI.OGameBorder, 19, 25]); addChild(iBorder); iDigitsPanel = new OGDigitsPanel(_arg1, false); iDigitsPanel.Pos(5, 55); addChild(iDigitsPanel); iScore = 0; State = stStart; } public function LevelFailed():void{ this.State = stLevelFailed; } public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stStart: break; case stLevelComplite: break; case stLevelFailed: break; }; } public function get Win():Boolean{ return ((this.State == stLevelComplite)); } override public function Free():void{ if (iDigitsPanel){ removeChild(iDigitsPanel); iDigitsPanel.Free(); iDigitsPanel = null; }; if (iBorder){ removeChild(iBorder); iBorder = null; }; super.Free(); } public function ClickOnNumber(_arg1:int, _arg2:int):void{ iScore = (iScore + _arg2); iDigitsPanel.RemoveDigit(_arg1); } public function get State():int{ return (iState); } public function get Score():int{ return (iScore); } public function LevelComplete():void{ this.State = stLevelComplite; } } }//package MAIN.OBJECTS.MULTYPLAYER
Section 65
//OGBitmapFactory (MAIN.OBJECTS.OGAME.OGBitmapFactory) package MAIN.OBJECTS.OGAME { import flash.display.*; import ENGINE.INTERFACE.*; import flash.geom.*; import ENGINE.CORE.*; public class OGBitmapFactory { private static var iNamePlus_2:OIObject; private static var iSite_2:DisplayObject; private static var iUpName_2:DisplayObject; private static var iUpName_3:DisplayObject; private static var iMainBorder:DisplayObject; private static var iUpName:DisplayObject; private static var iSite_3:DisplayObject; private static var iName:DisplayObject; private static var iNamePlus_3:OIObject; private static var iBookUpSell:OIObject; private static var iBook_2:OIObject; private static var iBook_3:OIObject; private static var iPlayBook2:OIObject; private static var iName2:DisplayObject; private static var iMainBorder_2:DisplayObject; private static var iMainBorder_3:DisplayObject; private static var iPlayBook:OIObject; private static var iName_2:DisplayObject; private static var iName_3:DisplayObject; private static var iNamePlus:OIObject; private static var iSite:DisplayObject; private static var iName2_2:DisplayObject; private static var iName2_3:DisplayObject; private static var iBorder_2:DisplayObject; private static var iBorder_3:DisplayObject; private static var iLoopOnBook_2:Sprite; private static var iLoopOnBook_3:Sprite; private static var iBook:OIObject; private static var iBorder:DisplayObject; private static var iButtonUp:SimpleButton; private static var iBack:Sprite; private static var iLoopOnBook:Sprite; public static function get Back():Sprite{ return (iBack); } public static function get PlayBook2():OIObject{ return (iPlayBook2); } public static function get Book():OIObject{ return (iBook); } public static function get NamePlus3():OIObject{ return (iNamePlus_3); } public static function get Name():DisplayObject{ return (iName); } public static function CreateBook():void{ var _local22:Sprite; var _local23:Sprite; var _local1:Sprite = new UI.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; var _local2:Number = ((800 / _local1.width) * OGlobal.Scale); var _local3:Number = (((600 * OGlobal.Scale) - _local1.height) / 2); _local1.scaleX = _local2; _local1.scaleY = _local2; var _local4:BitmapData = new BitmapData(_local1.width, _local1.height); var _local5:Matrix = new Matrix(); _local5.scale(_local2, _local2); _local4.draw(_local1, _local5); var _local6:Bitmap = new Bitmap(_local4); var _local7:Sprite = 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"; var _local8:Sprite = new UI.OBook(); iMainBorder_2 = _local8.getChildByName("MainBorder"); iName_2 = _local8.getChildByName("Name"); iName2_2 = _local8.getChildByName("Name2"); iSite_2 = _local8.getChildByName("Site"); iBorder_2 = _local8.getChildByName("Border"); var _local9:Number = ((800 / _local8.width) * OGlobal.Scale); var _local10:Number = (((600 * OGlobal.Scale) - _local8.height) / 2); _local8.scaleX = _local9; _local8.scaleY = _local9; var _local11:BitmapData = new BitmapData(_local8.width, _local8.height); var _local12:Matrix = new Matrix(); _local12.scale(_local9, _local9); _local11.draw(_local8, _local12); var _local13:Bitmap = new Bitmap(_local11); var _local14:Sprite = new Sprite(); _local14.addChild(iMainBorder_2); _local14.addChild(iName_2); _local14.addChild(iName2_2); _local14.addChild(iSite_2); _local14.scaleX = _local9; _local14.scaleY = _local9; _local14.y = (((600 * OGlobal.Scale) - _local8.height) / 2); _local13.y = (((600 * OGlobal.Scale) - _local8.height) / 2); iBook_2 = new OIObject(null, null); iBook_2.addChild(_local13); iBook_2.addChild(_local14); iBook_2.name = "MenuBook2"; var _local15:Sprite = new UI.OBook(); iMainBorder_3 = _local15.getChildByName("MainBorder"); iName_3 = _local15.getChildByName("Name"); iName2_3 = _local15.getChildByName("Name2"); iSite_3 = _local15.getChildByName("Site"); iBorder_3 = _local15.getChildByName("Border"); var _local16:Number = ((800 / _local15.width) * OGlobal.Scale); var _local17:Number = (((600 * OGlobal.Scale) - _local15.height) / 2); _local15.scaleX = _local16; _local15.scaleY = _local16; var _local18:BitmapData = new BitmapData(_local15.width, _local15.height); var _local19:Matrix = new Matrix(); _local19.scale(_local16, _local16); _local18.draw(_local15, _local19); var _local20:Bitmap = new Bitmap(_local18); var _local21:Sprite = new Sprite(); _local21.addChild(iMainBorder_3); _local21.addChild(iName_3); _local21.addChild(iName2_3); _local21.addChild(iSite_3); _local21.scaleX = _local16; _local21.scaleY = _local16; _local21.y = (((600 * OGlobal.Scale) - _local15.height) / 2); _local20.y = (((600 * OGlobal.Scale) - _local15.height) / 2); iBook_3 = new OIObject(null, null); iBook_3.addChild(_local20); iBook_3.addChild(_local21); iBook_3.name = "MenuBook3"; _local22 = new UI.OPlayBook(); _local2 = ((600 / _local22.height) * OGlobal.Scale); _local22.scaleX = _local2; _local22.scaleY = _local2; _local4 = new BitmapData(_local22.width, _local22.height); _local5 = new Matrix(); _local5.scale(_local2, _local2); _local4.draw(_local22, _local5); _local6 = new Bitmap(_local4); iPlayBook = new OIObject(null, null); iPlayBook.addChild(_local6); iPlayBook.name = "PlayBook"; _local6 = new Bitmap(_local4); iPlayBook2 = new OIObject(null, null); iPlayBook2.addChild(_local6); iPlayBook2.name = "PlayBook"; _local23 = new UI.OBookUpSell(); _local2 = ((600 / (_local23.height - 35)) * OGlobal.Scale); _local23.scaleX = _local2; _local23.scaleY = _local2; _local4 = new BitmapData(_local23.width, _local23.height); _local5 = new Matrix(); _local5.scale(_local2, _local2); _local4.draw(_local23, _local5); _local6 = new Bitmap(_local4); iBookUpSell = new OIObject(null, null); iBookUpSell.addChild(_local6); iButtonUp = new UI.ButUpSell(); iButtonUp.x = (320 * OGlobal.Scale); iButtonUp.y = (510 * OGlobal.Scale); iBookUpSell.addChild(iButtonUp); iBookUpSell.name = "BookUpSell"; iBack = new UI.OBack(); iBack.scaleX = OGlobal.Scale; iBack.scaleY = OGlobal.Scale; iLoopOnBook = new UI.OLoopOnBook(); iLoopOnBook.scaleX = OGlobal.Scale; iLoopOnBook.scaleY = OGlobal.Scale; iLoopOnBook_2 = new UI.OLoopOnBook(); iLoopOnBook_2.scaleX = OGlobal.Scale; iLoopOnBook_2.scaleY = OGlobal.Scale; iLoopOnBook_3 = new UI.OLoopOnBook(); iLoopOnBook_3.scaleX = OGlobal.Scale; iLoopOnBook_3.scaleY = OGlobal.Scale; iNamePlus = GL.ColorHeaderM([GL.ColorHeaderM, 155, 18, UI.cColorsSite, UI.strNamePlus, OInterface.iDefSlowAnimators, 0, 0, null, 0, true]); iNamePlus.alpha = 0; iNamePlus.Pos(195, 295); iNamePlus_2 = GL.ColorHeaderM([GL.ColorHeaderM, 155, 18, UI.cColorsSite, UI.strNamePlus, OInterface.iDefSlowAnimators, 0, 0, null, 0, true]); iNamePlus_2.Pos(195, 295); iNamePlus_3 = GL.ColorHeaderM([GL.ColorHeaderM, 155, 18, UI.cColorsSite, UI.strNamePlus, OInterface.iDefSlowAnimators, 0, 0, null, 0, true]); iNamePlus_3.Pos(195, 295); } public static function get Book2():OIObject{ return (iBook_2); } public static function get LoopOnBook():Sprite{ return (iLoopOnBook); } public static function get ButUpSell():SimpleButton{ return (iButtonUp); } public static function get PlayBook():OIObject{ return (iPlayBook); } public static function get Book3():OIObject{ return (iBook_3); } public static function get MainBorder():DisplayObject{ return (iMainBorder); } public static function get LoopOnBook2():Sprite{ return (iLoopOnBook_2); } public static function get Name2():DisplayObject{ return (iName2); } public static function get NamePlus2():OIObject{ return (iNamePlus_2); } public static function get Site():DisplayObject{ return (iSite); } public static function get NamePlus():OIObject{ return (iNamePlus); } public static function get BookUpSell():OIObject{ return (iBookUpSell); } public static function get LoopOnBook3():Sprite{ return (iLoopOnBook_3); } } }//package MAIN.OBJECTS.OGAME
Section 66
//OGField (MAIN.OBJECTS.OGAME.OGField) package MAIN.OBJECTS.OGAME { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import flash.utils.*; import MAIN.OBJECTS.SENDRECEIVE.*; import MAIN.OBJECTS.MULTYPLAYER.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.OBJECTS.Particle.*; import MAIN.OBJECTS.UTILS.*; public class OGField extends OSprite { private var iScaleKoef:Number; public var iRecordTime:int; private var iObject:Object; public var iRecordString:String; public var iCheckZoom:OCheckBox; private var iPicture:Bitmap; private var iPCont:CParticleContainer; private var iDelay:Number;// = 300 private var iTimer:Timer; public var iZoom:OGZoom; private var iState:int; private var iMask:Sprite; private var iGame:OGGame; private var iPicturesList:Array; 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 _local5:Object; 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; var _local4:int; 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(); } 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 reInitParticle():void{ CPrototypeFactory._createDigitParticleBitmaps(7, iPicturesList.length); } 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, []); } private function ClickOnField():void{ iGame.Miss(); iGame.Sender.SendCommand(Command.WrongObjectSound, []); } private function OnFieldClick(_arg1:MouseEvent):void{ if (!iTimer.running){ iObject = null; State = stClickOnField; iTimer.start(); }; } private function OnClick(_arg1:MouseEvent):void{ if (!iTimer.running){ iObject = _arg1.currentTarget; State = stClickOnObject; iTimer.start(); }; } 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 SortBySize():void{ var _local2:int; var _local3:DisplayObject; var _local4:DisplayObject; var _local1:int; 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++; }; } private function ParticleEffect(_arg1:Object):void{ var _local6:Number; var _local7:Number; var _local2:Number = (DisplayObject(_arg1).x + (DisplayObject(_arg1).width / 2)); var _local3:Number = (DisplayObject(_arg1).y + (DisplayObject(_arg1).height / 2)); var _local4:Number = Math.min((DisplayObject(_arg1).width / 2), (DisplayObject(_arg1).height / 2)); _local2 = (_local2 * iScaleKoef); _local3 = (_local3 * iScaleKoef); _local4 = (_local4 * iScaleKoef); var _local5:int; 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++; }; } public function set State(_arg1:int):void{ iState = _arg1; } public function OnClickToIndex(_arg1:int):void{ ClickOnObject(iMask[iPicturesList[_arg1][1]]); } 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; } 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 OnDoubleClick(_arg1:MouseEvent):void{ State = stDoubleClick; } } }//package MAIN.OBJECTS.OGAME
Section 67
//OGZoom (MAIN.OBJECTS.OGAME.OGZoom) package MAIN.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 iCounterZoom:int; private var iSize:int;// = 110 private var iSprite:Sprite; private var iPicture:Bitmap; private var iContainer:Sprite; private var iSizeGame:int; public var iIfMouse:Boolean; private var iKf:Number; private var iState:int; private var iHit:OSprite; private var iMouseXPrev:Number; private var iBorder:OBitmap; 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 * _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; } public function get State():int{ return (iState); } 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; }; } private function InitBorder():void{ var _local1:Number = (iSize / 2); var _local2:Sprite = new UI.OGameLoop(); var _local3:Number = (_local1 / (_local2.width / 2)); _local2.scaleX = _local3; _local2.scaleY = _local3; var _local4:Sprite = new Sprite(); _local4.addChild(_local2); iBorder = OBitmap.MakeTmp(_local4, 1, 0, 0); } private function InitHit():void{ var _local1:Number = (iSize / 2); iHit = new OSprite(); iHit.graphics.beginFill(0); iHit.graphics.drawCircle(0, 0, _local1); iHit.graphics.endFill(); iHit.alpha = 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 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 _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local3:Boolean = (((((((_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); }; }; } private function InitMask():void{ var _local1:Number = ((iSize / 2) * OGlobal.Scale); iSprite.graphics.beginFill(0); iSprite.graphics.drawCircle(0, 0, _local1); iSprite.graphics.endFill(); iPicture.mask = iSprite; } } }//package MAIN.OBJECTS.OGAME
Section 68
//OGTimer (MAIN.OBJECTS.OGTIMER.OGTimer) package MAIN.OBJECTS.OGTIMER { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OGTimer extends OIObject { private const iNumSplash:int = 3; public var iTimeFon:OBitmap; public var iSecondCounter2:OCounter; public var iTimeDel:OBitmap; public var iSecondCounter1:OCounter; private var iCounterSplash:int; public var iTimeBorder:OBitmap; private var iMin:Number;// = 0.2 private var iDA:Number;// = -0.05 public var iMinuteCounter1:OCounter; private var iA:Number;// = 1 public var iMinuteCounter2:OCounter; public static const stSplashBorder:int = 1; public static const stNormalBorder:int = 0; public function OGTimer(){ super(UI.OGTimer); this.alpha = 0.5; } public function get FonVisible():Boolean{ return (iTimeFon.prVisible); } 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 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; }; } public function set FonVisible(_arg1:Boolean):void{ iTimeFon.prVisible = _arg1; } override public function set State(_arg1:int):void{ iState = _arg1; switch (iState){ case stNormalBorder: break; case stSplashBorder: iCounterSplash = 0; iA = 1; break; }; } 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 ChangeTime(_arg1:int):void{ var _local2:int = (_arg1 / 60); var _local3:int = (_arg1 % 60); var _local4:int = (_local2 / 10); var _local5:int = (_local2 % 10); var _local6:int = (_local3 / 10); var _local7:int = (_local3 % 10); iMinuteCounter1.prValue = _local4; iMinuteCounter2.prValue = _local5; iSecondCounter1.prValue = _local6; iSecondCounter2.prValue = _local7; } } }//package MAIN.OBJECTS.OGTIMER
Section 69
//OEmbedsLevels (MAIN.OBJECTS.OLEVELS.OEmbedsLevels) package MAIN.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; public static var MasksDemo:Class = OEmbedsLevels_MasksDemo; public static var PictureLevel1:Class = OEmbedsLevels_PictureLevel1; 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 MasksLevel1:Class = OEmbedsLevels_MasksLevel1; public static var Level_1:Class = OEmbedsLevels_Level_1; public static var LIST_EMBED:Array = [["Level_1_MZ2.swf", Level_1]]; private static var iPicturesListDemo:Array = [[1, "n1"], [2, "n2"], [3, "n3"], [4, "n4"], [5, "n5"]]; } }//package MAIN.OBJECTS.OLEVELS
Section 70
//OEmbedsLevels_Level_1 (MAIN.OBJECTS.OLEVELS.OEmbedsLevels_Level_1) package MAIN.OBJECTS.OLEVELS { import mx.core.*; public class OEmbedsLevels_Level_1 extends ByteArrayAsset { } }//package MAIN.OBJECTS.OLEVELS
Section 71
//OEmbedsLevels_MasksDemo (MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo) package MAIN.OBJECTS.OLEVELS { import flash.display.*; import mx.core.*; public class OEmbedsLevels_MasksDemo extends SpriteAsset { public var n1:DisplayObject; public var n2:DisplayObject; public var n3:DisplayObject; public var n5:DisplayObject; public var n4:DisplayObject; public var btn_sound_on:DisplayObject; public var btn_sound_off:DisplayObject; public var btn:DisplayObject; public var text2:DisplayObject; public var Site:DisplayObject; public var text1:DisplayObject; public var MainBorder:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package MAIN.OBJECTS.OLEVELS
Section 72
//OEmbedsLevels_MasksLevel1 (MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1) package MAIN.OBJECTS.OLEVELS { import flash.display.*; import mx.core.*; public class OEmbedsLevels_MasksLevel1 extends SpriteAsset { public var n10:DisplayObject; public var n12:DisplayObject; public var n14:DisplayObject; public var n16:DisplayObject; public var n11:DisplayObject; public var n8a:DisplayObject; public var n15:DisplayObject; public var n17:DisplayObject; public var btn_sound_off:DisplayObject; public var n19:DisplayObject; public var n13:DisplayObject; public var n18: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 n28:DisplayObject; public var n22:DisplayObject; public var n27:DisplayObject; public var n29:DisplayObject; public var n30:DisplayObject; public var n31:DisplayObject; public var n32:DisplayObject; public var n33:DisplayObject; public var n34:DisplayObject; public var n35:DisplayObject; public var n36:DisplayObject; public var n37:DisplayObject; public var n38:DisplayObject; public var n39:DisplayObject; public var btn:DisplayObject; public var MainBorder:DisplayObject; public var Site:DisplayObject; public var n40:DisplayObject; public var btn_fullscreen:DisplayObject; public var n1:DisplayObject; public var n2:DisplayObject; public var n3:DisplayObject; public var n4:DisplayObject; public var n5:DisplayObject; public var n6:DisplayObject; public var n7:DisplayObject; public var n8:DisplayObject; public var n9:DisplayObject; public var btn_sound_on:DisplayObject; public var text2:DisplayObject; public var btn_restore:DisplayObject; public var Name:DisplayObject; public var text1:DisplayObject; public var Name2:DisplayObject; public var iBorder:DisplayObject; } }//package MAIN.OBJECTS.OLEVELS
Section 73
//OEmbedsLevels_PictureDemo (MAIN.OBJECTS.OLEVELS.OEmbedsLevels_PictureDemo) package MAIN.OBJECTS.OLEVELS { import mx.core.*; public class OEmbedsLevels_PictureDemo extends BitmapAsset { } }//package MAIN.OBJECTS.OLEVELS
Section 74
//OEmbedsLevels_PictureLevel1 (MAIN.OBJECTS.OLEVELS.OEmbedsLevels_PictureLevel1) package MAIN.OBJECTS.OLEVELS { import mx.core.*; public class OEmbedsLevels_PictureLevel1 extends BitmapAsset { } }//package MAIN.OBJECTS.OLEVELS
Section 75
//OLLevels (MAIN.OBJECTS.OLEVELS.OLLevels) package MAIN.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 MAIN.OBJECTS.OLEVELS
Section 76
//CExplodeParticle (MAIN.OBJECTS.Particle.CExplodeParticle) package MAIN.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 MAIN.OBJECTS.Particle
Section 77
//CParticle (MAIN.OBJECTS.Particle.CParticle) package MAIN.OBJECTS.Particle { public interface CParticle { function onTimer():void; } }//package MAIN.OBJECTS.Particle
Section 78
//CParticleContainer (MAIN.OBJECTS.Particle.CParticleContainer) package MAIN.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 addRunParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:CParticle = 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 removeParticle(_arg1:CParticle):void{ var _local2:int; 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 onTimer(_arg1:Event):void{ var _local2:int; while (_local2 < aParticlesList.length) { (aParticlesList[_local2] as CParticle).onTimer(); _local2++; }; } public function addSimpleDigitParticle(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ var _local5:CParticle = new CSimpleDigitParticle(_arg2, _arg1, this); aParticlesList.push(_local5); (_local5 as CSimpleDigitParticle).prX = _arg3; (_local5 as CSimpleDigitParticle).prY = _arg4; this.addChild((_local5 as OSprite)); } public function addSimpleParticle(_arg1:int, _arg2:int, _arg3:int):void{ var _local4:CParticle = 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 _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); }; } } }//package MAIN.OBJECTS.Particle
Section 79
//CSimpleDigitParticle (MAIN.OBJECTS.Particle.CSimpleDigitParticle) package MAIN.OBJECTS.Particle { import ENGINE.DISPLAY.*; import flash.geom.*; import MAIN.OBJECTS.*; public class CSimpleDigitParticle extends OSprite implements CParticle { protected var dVelY:Number; protected var dr:Number; private var TotalTime:int;// = 100 protected var dx:Number; protected var dy:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; protected var dAlpha:Number; private var iTime:int; protected var dVelX:Number; public function CSimpleDigitParticle(_arg1:int, _arg2:int, _arg3:CParticleContainer){ 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); var _local4:Point = new Point(dx, dy); var _local5:Number = (_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); var _local6:Number = (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 MAIN.OBJECTS.Particle
Section 80
//CSimpleFallParticle (MAIN.OBJECTS.Particle.CSimpleFallParticle) package MAIN.OBJECTS.Particle { import ENGINE.DISPLAY.*; import MAIN.OBJECTS.*; public class CSimpleFallParticle extends OSprite implements CParticle { private const TotalTime:int = 100; protected var dVelY:Number; protected var dr:Number; protected var dx:Number; protected var dy:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; protected var dAlpha:Number; private var iTime:int; 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 MAIN.OBJECTS.Particle
Section 81
//CSimpleRunParticle (MAIN.OBJECTS.Particle.CSimpleRunParticle) package MAIN.OBJECTS.Particle { import ENGINE.DISPLAY.*; import MAIN.OBJECTS.*; public class CSimpleRunParticle extends OSprite implements CParticle { private const TotalTime:int = 50; private var iTime:int; private var y0:Number; private var iAngle:Number; private var dAngle:Number; private var gBitmap:OBitmap; private var cParticleContainer:CParticleContainer; protected var dAlpha:Number; private var iRadius:Number; private var x0: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 MAIN.OBJECTS.Particle
Section 82
//Command (MAIN.OBJECTS.SENDRECEIVE.Command) package MAIN.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 MAIN.OBJECTS.SENDRECEIVE
Section 83
//OReceiver (MAIN.OBJECTS.SENDRECEIVE.OReceiver) package MAIN.OBJECTS.SENDRECEIVE { public class OReceiver { private var iListeners:Array; public function OReceiver(){ iListeners = new Array(); } 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); }; } public function AddListener(_arg1:String, _arg2:Function):void{ iListeners[_arg1] = _arg2; } } }//package MAIN.OBJECTS.SENDRECEIVE
Section 84
//OSender (MAIN.OBJECTS.SENDRECEIVE.OSender) package MAIN.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 MAIN.OBJECTS.SENDRECEIVE
Section 85
//OMButton (MAIN.OBJECTS.TEXTBUTTON.OMButton) package MAIN.OBJECTS.TEXTBUTTON { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OMButton extends OButton { public var iTextOut:OBitmap; public var iTextOver:OBitmap; public var iTextShadow:OBitmap; private var iColor1:int; private var iColor2:int; private var iFontSize: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 OnRollOut(_arg1:MouseEvent):void{ super.OnRollOut(_arg1); this.iTextOver.visible = false; this.iTextOut.visible = true; this.iTextShadow.visible = true; } 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 OnMouseDown(_arg1:MouseEvent):void{ this.iTextOver.visible = false; this.iTextOut.visible = true; this.iTextShadow.visible = false; super.OnMouseDown(_arg1); } } }//package MAIN.OBJECTS.TEXTBUTTON
Section 86
//AIConvertChar (MAIN.OBJECTS.UTILS.AIConvertChar) package MAIN.OBJECTS.UTILS { public class AIConvertChar { public static const ABC:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; public static function ToTriadChar(_arg1:int):String{ var _local2:int = _arg1; var _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 = _arg1; var _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 = _arg1; var _local3:int; 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 = _arg1; var _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 MAIN.OBJECTS.UTILS
Section 87
//OFlairSplash (MAIN.OBJECTS.UTILS.OFlairSplash) package MAIN.OBJECTS.UTILS { import flash.events.*; import flash.display.*; public class OFlairSplash extends Sprite { private var iCounterSplash:int; private var iNumSplash:int; private var iDA:Number; private var iMin:Number; private var d:DisplayObject; private var iA:Number; private var iSplashMode:Boolean; private var iDisplayObjects:Array; 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 get Splash():Boolean{ return (iSplashMode); } 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; }; } 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 MinAlpha(_arg1:Number):void{ if (!iSplashMode){ iMin = _arg1; }; } public function set NumSplash(_arg1:Number):void{ if (!iSplashMode){ iNumSplash = _arg1; }; } public function Free():void{ iDisplayObjects = null; removeEventListener(Event.ENTER_FRAME, OnEnterFrame); } public function AddDisplayObject(_arg1:DisplayObject):void{ iDisplayObjects.push(_arg1); } public function set Alpha(_arg1:Number):void{ if (!iSplashMode){ iA = _arg1; }; } } }//package MAIN.OBJECTS.UTILS
Section 88
//OLOpponentPlay (MAIN.OBJECTS.UTILS.OLOpponentPlay) package MAIN.OBJECTS.UTILS { import flash.events.*; import flash.utils.*; import MAIN.OBJECTS.MULTYPLAYER.*; public class OLOpponentPlay { private var iIndex:int; private var iTCount:int; private var iState:int; private var iCommand:int; private var iField:OMPGame; private var iRecord:String; private var iTimer:Timer; 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; } private function get State():int{ return (iState); } 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; }; } 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; }; } public function AddCommand(_arg1:String):void{ this.iRecord = (this.iRecord + _arg1); } public function Free():void{ this.iTimer.stop(); iTimer = null; } 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 MAIN.OBJECTS.UTILS
Section 89
//OLUtils (MAIN.OBJECTS.UTILS.OLUtils) package MAIN.OBJECTS.UTILS { import flash.geom.*; public class OLUtils { public static function CloneArray(_arg1:Array):Array{ var _local2:Array = new Array(); var _local3:int; 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 = (_arg1[0][0] - _arg1[1][0]); var _local3:Number = (_arg1[0][1] - _arg1[1][1]); var _local4:Number = (_local3 / _local2); var _local5:Number = (_arg1[0][1] - (_arg1[0][0] * _local4)); return ([_local4, _local5]); } public static function Basis(_arg1:Array):Point{ var _local11:Point; var _local2:Point = _arg1[0]; var _local3:Point = _arg1[1]; var _local4:Point = _arg1[2].clone(); _local4.normalize(1); var _local5:Number = _arg1[3]; var _local6:Number = (((_local3.x - _local2.x) * _local4.x) + ((_local3.y - _local2.y) * _local4.y)); var _local7:Point = new Point(((_local6 * _local4.x) + _local2.x), ((_local6 * _local4.y) + _local2.y)); var _local8:Number = Math.abs(((-((_local3.x - _local2.x)) * _local4.y) + ((_local3.y - _local2.y) * _local4.x))); if (_local8 > _local5){ return (null); }; var _local9:Number = Math.sqrt((Math.pow(_local5, 2) - Math.pow(_local8, 2))); var _local10:Number = (_local6 - _local9); if (_local10 <= _arg1[2].length){ _local4.normalize(_local10); _local11 = new Point((_local2.x + _local4.x), (_local2.y + _local4.y)); }; return (_local11); } } }//package MAIN.OBJECTS.UTILS
Section 90
//CPrototypeFactory (MAIN.OBJECTS.CPrototypeFactory) package MAIN.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{ CPrototypeFactory.aParticles = new Array(); var _local2:Array = [ODisplay.SpriteLib, UI.FallParticle]; var _local3:Array = [ODisplay.SpriteScale, _local2, 1, 0, 0, 0]; var _local4:int; while (_local4 < _arg1) { CPrototypeFactory.aParticles.push(ODisplay.OBitmapMake([null, _local3, 1, "GEL", UI.iGameColor[_local4], "text 30", 1, 0, 0])); _local4++; }; } public static function _createDigitParticleBitmaps(_arg1:int, _arg2:int):void{ 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(); var _local3:int; while (_local3 < _arg2) { _local4 = new Array(); _local5 = ODisplay.SpriteText([ODisplay.SpriteText, UI.OFont, 15, 0, (_local3 + 1).toString()]); ODisplay.SpriteText([ODisplay.SpriteText, UI.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 = GL.MakeColorSprite([_local6, UI.cColorsParticles[(_local9 % UI.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 MAIN.OBJECTS
Section 91
//OCheckBox (MAIN.OBJECTS.OCheckBox) package MAIN.OBJECTS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; public class OCheckBox extends OIObject { public var iUnCheck:OBitmap; public var iHit:OButton; private var iCheckFlag:Boolean; public var iCheck:OBitmap; public function OCheckBox(_arg1:Array, _arg2:Array=null){ super(_arg1, _arg2); iCheck.prVisible = true; iUnCheck.prVisible = false; iCheckFlag = true; } 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); } public function set Checked(_arg1:Boolean):void{ iCheckFlag = _arg1; iCheck.prVisible = _arg1; iUnCheck.prVisible = !(_arg1); } } }//package MAIN.OBJECTS
Section 92
//OGGame (MAIN.OBJECTS.OGGame) package MAIN.OBJECTS { import flash.utils.*; import MAIN.OBJECTS.SENDRECEIVE.*; import MAIN.OBJECTS.OGAME.*; import MAIN.OBJECTS.MULTYPLAYER.*; import MAIN.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 iTimeBonusScore:int; private var iState:int; private var iScore: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){ 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 get TimeBonusScore():int{ return (iTimeBonusScore); } public function reInitParticle():void{ iGField.reInitParticle(); } public function Free():void{ iGField.Free(); iGField = null; } public function get Sender():OSender{ return (iSender); } 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 MAIN.OBJECTS
Section 93
//OGInfo (MAIN.OBJECTS.OGInfo) package MAIN.OBJECTS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import flash.utils.*; import ENGINE.CORE.*; public class OGInfo extends OIObject { private const TimeDelay:int = 1000; private var iArray:Array; private var iTimer:int; private var iContainer:OIObject; 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(UI.OGInfo); iArray = new Array(); this.State = stNormal; } 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; }; } 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); } private function Push(_arg1:int):void{ var _local2:OBitmap = new OBitmap(); _local2.CopyFrom((iContainer.getChildAt(_arg1) as OBitmap)); var _local3:Number = ((mouseX / OGlobal.Scale) - (_local2.prWidth / 2)); var _local4:Number = ((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); } } }//package MAIN.OBJECTS
Section 94
//OInfoObject (MAIN.OBJECTS.OInfoObject) package MAIN.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 MAIN.OBJECTS
Section 95
//ORecord (MAIN.OBJECTS.ORecord) package MAIN.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(){ 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 = (_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; 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 = ((_arg1)<Math.pow(iCount, iRecLenTime)) ? _arg1 : (Math.pow(iCount, iRecLenTime) - 1); var _local3:int = (_local2 % iCount); var _local4:int = (((_local2 - _local3) / iCount) % iCount); var _local5:int = ((((_local2 - _local3) - (_local4 * iCount)) / (iCount * iCount)) % iCount); iStr = (iStr + ((sAlphabet.charAt(_local5) + sAlphabet.charAt(_local4)) + sAlphabet.charAt(_local3))); } public function ReadStart():void{ var _local3:Point; this.sAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; this.iPos = 0; var _local1:int = (iStr.length / (iRecLenTime + iRecLenAct)); var _local2:int; 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 WriteDelHint():void{ WriteAction(actDelHint); } public function get Over():Boolean{ return ((iPos >= Length)); } private function ValueToCode(_arg1:int):String{ var _local2 = ""; var _local3:int = (_arg1 % iCount); var _local4:int = (((_arg1 - _local3) / iCount) % iCount); _local2 = (_local2 + (sAlphabet.charAt(_local4) + sAlphabet.charAt(_local3))); return (_local2); } public function ReadFrames():int{ if (((!(this.iArr)) || ((this.iPos >= this.iArr.length)))){ return (-1); }; return (this.iArr[this.iPos].x); } } }//package MAIN.OBJECTS
Section 96
//SConfig (MAIN.UTIL.SConfig) package MAIN.UTIL { public class SConfig { public static const USE_NETWORK:Boolean = true; public static var cheatsEnabled:Boolean = false; public static var language:String = "en"; public static var list_language:Array = []; public static var AREA:String = ""; } }//package MAIN.UTIL
Section 97
//SConfigLoader (MAIN.UTIL.SConfigLoader) package MAIN.UTIL { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.media.*; public class SConfigLoader extends Sprite { private var iViewLoader:Sprite; private var iTotalSize:int; private var pathSwf:String;// = "" private var iRoot:DisplayObject; private var iLoadList:Array; private var iByteLoaded:int; private var iLoadData:SLoadData; private var i_func_complete:Function; private static var iListFile:Array; public function SConfigLoader(_arg1:Function, _arg2:DisplayObject){ this.i_func_complete = _arg1; this.iRoot = _arg2; this.iLoadList = [["config.xml", "global/config.xml", SLoadData.FILE_XML]]; SConfigLoader.iListFile = new Array(); this.iByteLoaded = 0; this.iTotalSize = 100000000000; XML.ignoreWhitespace = false; this.iLoadData = new SLoadData(); this.iLoadData.addEventListener(SLoadData.EVENT_COMPLETE, this.OnLoadDataComplete); this.iLoadData.addEventListener(SLoadData.EVENT_ERROR, this.OnLoadDataError); this.LoadNextFile(); } private function OnLoadDataError(_arg1:Event):void{ var _local2:String; var _local3:Object; var _local4:String; trace("Loading Data -> Error"); _local2 = this.iLoadData.getID(); _local3 = null; _local4 = this.iLoadData.getType(); switch (_local4){ case SLoadData.FILE_XML: trace(("Change XML File " + this.iLoadData.getPath())); _local3 = SDefaultXML.getXMLFile(this.iLoadData.getPath().replace(pathSwf, "")); break; }; if (_local3 != null){ trace("Change Succesfull"); this.iLoadData.setData(_local3); this.OnLoadDataComplete(null); }; } private function AddLoadList(_arg1:XML):void{ var _local2:int; var _local3:String; var _local4:String; var _local5:String; _local2 = 0; while (_local2 < _arg1.file.length()) { _local3 = _arg1.file[_local2].@id; _local4 = _arg1.file[_local2].@path; _local5 = _arg1.file[_local2].@type; this.iLoadList.push([_local3, _local4, _local5]); _local2++; }; } private function OnLoadDataComplete(_arg1:Event):void{ var _local2:String; var _local3:Object; var _local4:String; trace((" Loaded File -> " + this.iLoadData.getPath())); this.iByteLoaded = (this.iByteLoaded + this.iLoadData.getBytesLoaded()); _local2 = this.iLoadData.getID(); _local3 = this.iLoadData.getData(); _local4 = this.iLoadData.getType(); SConfigLoader.iListFile.push([_local2, _local3, _local4]); switch (this.iLoadData.getID()){ case "config.xml": SConfigLoader.readConfigXML(this.iRoot.root.loaderInfo.parameters, (_local3 as XML)); this.AddLoadList((_local3 as XML)); break; case "list_assets.xml": case "list_localized.xml": this.AddLoadList((_local3 as XML)); break; }; this.LoadNextFile(); } private function InitLanguage():void{ var _local1:int; var _local2:XML; var _local3:String; var _local4:String; var _local5:String; var _local6:String; _local2 = getXMLFile("config.xml"); SConfig.list_language = new Array(); _local1 = 0; while (_local1 < _local2.language.length()) { _local3 = _local2.language[_local1].@id; _local4 = _local2.language[_local1].@xml; _local5 = _local2.language[_local1].@name; _local6 = _local2.language[_local1].@ui; if (_local6 == ""){ _local6 = "LibraryDefault"; }; SConfig.list_language.push([_local3, _local4, _local5, _local6]); _local1++; }; } private function setProcess(_arg1:Number):void{ if (this.iViewLoader == null){ return; }; if (_arg1 < 0){ _arg1 = 0; }; if (_arg1 > 1){ _arg1 = 1; }; this.iViewLoader.scaleX = _arg1; } private function LoadNextFile():void{ var _local1:String; var _local2:String; var _local3:String; var _local4:String; var _local5:int; var _local6:int; if (this.iLoadList.length > 0){ _local1 = this.iLoadList[0][0]; _local2 = this.iLoadList[0][1]; _local3 = this.iLoadList[0][2]; this.iLoadList.splice(0, 1); _local2 = SStrings.replace(_local2, "[LANG]", SConfig.language); if (Preloader.baseUrl == ""){ _local4 = Preloader.sPath; _local5 = 0; _local6 = 0; while (_local6 < _local4.length) { if (_local4.charAt(_local6) == "/"){ _local5 = _local6; }; _local6++; }; _local4 = _local4.substr(0, (_local5 + 1)); pathSwf = _local4; } else { pathSwf = Preloader.baseUrl; }; _local2 = (pathSwf + _local2); this.iLoadData.Load(_local2, _local1, _local3); } else { trace(("Loaded -> " + this.iByteLoaded)); this.LoadComplete(); }; } public function Free():void{ this.i_func_complete = null; this.iLoadData.Free(); this.iRoot = null; } private function LoadComplete():void{ this.InitLanguage(); ValidLanguage(); this.i_func_complete(); } private static function getBoolVal(_arg1:Object):Boolean{ if (((!((_arg1 == null))) && ((((((((_arg1 == Boolean(true))) || ((_arg1 == Boolean(1))))) || ((_arg1 == "true")))) || ((_arg1 == "1")))))){ return (true); }; return (false); } public static function ValidLanguage():void{ var _local1:int; _local1 = 0; while (_local1 < SConfig.list_language.length) { if (SConfig.language == SConfig.list_language[_local1][0]){ return; }; _local1++; }; trace((("LANGUAGE -> " + SConfig.language) + " , not found. Use language English")); SConfig.language = "en"; } public static function getSoundFile(_arg1:String):Sound{ var _local2:int; _local2 = 0; while (_local2 < SConfigLoader.iListFile.length) { if (SConfigLoader.iListFile[_local2][2] != SLoadData.FILE_SOUND){ } else { if (SConfigLoader.iListFile[_local2][0] == _arg1){ return (SConfigLoader.iListFile[_local2][1]); }; }; _local2++; }; trace((("ERROR -> SOUND FILE -> " + _arg1) + " -> NOT FOUND")); return (null); } public static function getImageFile(_arg1:String):Bitmap{ var _local2:int; _local2 = 0; while (_local2 < SConfigLoader.iListFile.length) { if (SConfigLoader.iListFile[_local2][2] != SLoadData.FILE_IMAGE){ } else { if (SConfigLoader.iListFile[_local2][0] == _arg1){ return (SConfigLoader.iListFile[_local2][1]); }; }; _local2++; }; return (null); } public static function getDataFile(_arg1:String):ByteArray{ var _local2:int; _local2 = 0; while (_local2 < SConfigLoader.iListFile.length) { if (SConfigLoader.iListFile[_local2][2] != SLoadData.FILE_DATA){ } else { if (SConfigLoader.iListFile[_local2][0] == _arg1){ return (SConfigLoader.iListFile[_local2][1]); }; }; _local2++; }; trace((("ERROR -> DATA FILE -> " + _arg1) + " -> NOT FOUND")); return (null); } public static function getXMLFile(_arg1:String):XML{ var _local2:int; _local2 = 0; while (_local2 < SConfigLoader.iListFile.length) { if (SConfigLoader.iListFile[_local2][2] != SLoadData.FILE_XML){ } else { if (SConfigLoader.iListFile[_local2][0] == _arg1){ return (SConfigLoader.iListFile[_local2][1]); }; }; _local2++; }; trace((("ERROR -> XML FILE -> " + _arg1) + " -> NOT FOUND")); return (null); } private static function getParamConfigXML(_arg1:String, _arg2:Object, _arg3:XML):String{ var _local4:int; trace(((("aFlashVars[" + _arg1) + "] = ") + _arg2[_arg1])); if (_arg2[_arg1] != undefined){ return (_arg2[_arg1]); }; if (_arg3 != null){ _local4 = 0; while (_local4 < _arg3["var"].length()) { if (_arg3["var"][_local4].@id == _arg1){ trace(((("getParamConfigXML(" + _arg1) + ") = ") + _arg3["var"][_local4])); return (_arg3["var"][_local4]); }; _local4++; }; }; return (""); } public static function readConfigXML(_arg1:Object, _arg2:XML):void{ var _local3:String; _local3 = getParamConfigXML("language", _arg1, _arg2); if (_local3 != ""){ SConfig.language = _local3; }; _local3 = getParamConfigXML("Lang", _arg1, _arg2); if (_local3 != ""){ SConfig.language = _local3; }; _local3 = getParamConfigXML("area", _arg1, _arg2); if (_local3 != ""){ SConfig.AREA = _local3; }; _local3 = getParamConfigXML("cheatsEnabled", _arg1, _arg2); if (_local3 != ""){ SConfig.cheatsEnabled = getBoolVal(_local3); }; } } }//package MAIN.UTIL
Section 98
//SDefaultXML (MAIN.UTIL.SDefaultXML) package MAIN.UTIL { public class SDefaultXML { private static var LIST:Array = [["global/config.xml", config_xml], ["localized/en/text.xml", text_en], ["localized/ru/text.xml", text_ru], ["localized/de/text.xml", text_de], ["localized/fr/text.xml", text_fr]]; private static var text_uk:XML = <root> <text id="strGameName">MYSTERIEZ2!</text> <text id="strEnterNameLat">(Латинськими літерами)</text> <text id="strSite">WELLGAMES.COM</text> <text id="strPresents">представляє</text> <text id="strNewPlayer">Новий гравець!</text> <text id="strEnterName">Введіть ваше ім'я:</text> <text id="strDefPlayerName">ДОБРЕ</text> <text id="strWelcome">Ласкаво просимо,</text> <text id="strChangePlayer">Клікніть, щоб змінити ім'я</text> <text id="strCommingSoon">Скоро ...</text> <text id="strCommingSoonI">Ця опція недоступна \nна даний момент</text> <text id="strChoosePlayer">Вибір гравця</text> <text id="strDeletePlayerConfirm">Справді \n хочете видалити \nцей профіль?</text> <text id="strSound">Звук</text> <text id="strMusic">Музика</text> <text id="strWindow">У вікні</text> <text id="strFullScreen">На весь екран</text> <text id="strResults">Результати</text> <text id="strScore">Очки:</text> <text id="strLocal">Локальні</text> <text id="strPersonal">Мої очки</text> <text id="strDeleteScoresConfirm">Справді \n хочете видалити \nтабліцю рекордів?</text> <text id="strPlayersOnline">Гравців онлайн</text> <text id="strConnectionToServer">Підключення до сервера ...</text> <text id="strOpponent1">Противник</text> <text id="strOpponent2">У грі</text> <text id="strLevel">Рівень</text> <text id="strYourRaiting">Ваш рахунок:</text> <text id="strLevelScoreR">очки за рівень:</text> <text id="strLevelConfirm">Щоб перейти на наступний рівень, ви повинні набрати не менше ніж:</text> <text id="strLevelConfirm1">очок</text> <text id="strLevelConfirm2">Щоб перейти на наступний рівень, ви повинні \nперемогти Вашого суперника</text> <text id="strConnect1">Зіграти в режимі \nмультиплеєр!</text> <text id="strConnect1URL">http://www.wellgames.com/ru/free_online/abc-mysteriez/?g=abc_mysteriez_uk</text> <text id="strConnect2">Спробувати інші \nмультиплеєрні \nігри!</text> <text id="strConnect2URL">http://www.wellgames.com/ru/?g=abc_mysteriez_uk</text> <text id="strConnect3">Розповісти другу\nпро гру\n</text> <text id="strConnect3URL">http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/abc-mysteriez/?g=abc_mysteriez_uk'</text> <text id="strLevelScore">\nОчки за рівень\n</text> <text id="strReiting1">Місце:</text> <text id="strReiting2"> має рахунок </text> <text id="strCompleteLevel">\nЗавершів рівень \nз результатом \n</text> <text id="strFailedLevel">\nНе пройшов рівень \nз результатом \n</text> <text id="strPlayOnline1">Грати онлайн!</text> <text id="strMoreGames1">Інші ігри</text> <text id="strPlayersOnline1">Гравців \nонлайн</text> <text id="strPlace">Місце</text> <text id="strHasReiting">\n має рахунок \n</text> <text id="strAccept">Прийняти</text> <text id="strCancel">Скасувати</text> <text id="strPlayOnline">Грати!</text> <text id="strPlay">Грати</text> <text id="strOptions">Налаштування</text> <text id="strInstructions">Правила гри</text> <text id="strHighScores">Кращі результати</text> <text id="strMoreGames">Інші ігри</text> <text id="strClose">Закрити</text> <text id="strNew">Новий</text> <text id="strDelete">Видалити</text> <text id="strYes">Так</text> <text id="strNo">Ні</text> <text id="strOff">Ні</text> <text id="strOn">Так</text> <text id="strClear">Очистити</text> <text id="strMenu">Меню</text> <text id="strPlayAgain">грати ще раз</text> <text id="strNextLevel">Наступний рівень</text> <text id="strSendMail">Надіслати листа</text> <text id="strComplete">пройдено!</text> <text id="strPrToCont">клікніть для продовження</text> <text id="strFailed">програний</text> <text id="strGainedScore">Набрані очки:</text> <text id="strBonusScore">Бонусні очки:</text> <text id="strResults1">Результат:</text> <text id="strLevel1">Рівень:</text> <text id="strHowToPlay">Привила гри</text> <text id="strLevelEditor">редактор рівня</text> <text id="strInputText">введення тексту</text> <text id="strResume">Продовжити</text> <text id="strMainMenu">Головне меню</text> <text id="strMissed">Пропустити</text> <text id="strTimeBonus">Додатковий час:</text> <text id="strCountNumbers1">Знайдіть всі</text> <text id="strCountNumbers2">числа</text> <text id="strTimeFreeze">Time Freeze</text> <text id="strAddHint">EXTRA Підказка!</text> <text id="strTimeDecrease">Час - </text> <text id="strFind">Знайдіть</text> <text id="strClick">(клацніть для продовження)</text> <text id="strBonuses">Бонуси</text> <text id="strBack">Назад</text> <text id="strPause">Пауза</text> <text id="strContinue">продовжити</text> <text id="strInstructionsText1">Знайдіть всі заховані числа</text> <text id="strInstructionsText2">Використовуйте подвійний клік, \nщоб включити / вимикнути лупу</text> <text id="strInstructionsText3">Ви можете використовувати\n кнопку «Лупа», яка знаходиться\nна панелі праворуч </text> <text id="strLoadingLevel">завантаження рівня ...</text> <text id="strTimeIsUp">Час вийшов!</text> <text id="strUpSellName">Маєте iPhone / iPad?</text> <text id="strUpSellText">Тоді завантажуйте цю гру безкоштовно\nі відкрийте для себе безліч нових рівнів,\nа також можливість використовувати підказку!</text> <text id="strUpSellContinue">продовжити</text> <text id="strLoadingError">Помилка завантаження</text> <text id="strTryAgain">Спробуйте ще раз</text> <text id="strLanguage">Мова</text> <text id="strChange">Прийняти</text> <text id="strSubmitScore">Відправити Очки</text> </root> ; private static var text_de:XML = <root> <text id="strSite">WELLGAMES.COM</text> <text id="strEnterNameLat">(in lateinischen Buchstaben)</text> <text id="strPresents">präsentiert</text> <text id="strGameName">MYSTERIEZ2!</text> <text id="strNewPlayer">Neuer Spieler!</text> <text id="strEnterName">Geben Sie Ihren Namen ein:</text> <text id="strDefPlayerName">WELL</text> <text id="strWelcome">Herzlich Willkommen</text> <text id="strChangePlayer">Klicken Sie hier, um den Spieler zu ändern</text> <text id="strCommingSoon">Kommt bald...</text> <text id="strCommingSoonI">Diese Option ist zur Zeit \nnicht verfügbar</text> <text id="strChoosePlayer">Spieler auswählen</text> <text id="strDeletePlayerConfirm">Sind Sie sicher,\ndass Sie dieses Profil\nlöschen wollen?</text> <text id="strSound">Sounds</text> <text id="strMusic">Musik</text> <text id="strWindow">Im Fenster</text> <text id="strFullScreen">Vollbild</text> <text id="strResults">Ergebnisse</text> <text id="strScore">Score:</text> <text id="strLocal">Lokal</text> <text id="strPersonal">Persönlich</text> <text id="strDeleteScoresConfirm">Sind Sie sicher,\ndass Sie die Tabelle\nlöschen wollen?</text> <text id="strPlayersOnline">Spieler Online</text> <text id="strConnectionToServer">Verbindung zum Server...</text> <text id="strOpponent1">Gegner</text> <text id="strOpponent2">Im Spiel</text> <text id="strLevel">Level</text> <text id="strYourRaiting">Ihr Rating:</text> <text id="strLevelScoreR">Level Score: </text> <text id="strLevelConfirm">Um in den nächsten Level zu kommen, brauchen Sie mehr als</text> <text id="strLevelConfirm1">Punkte</text> <text id="strLevelConfirm2">Um in den nächsten Level zu kommen,\nmüssen Sie Ihren Gegner besiegen</text> <text id="strConnect1">Spielen Sie mit\nanderen Spielern\nim Multispieler\nModus!</text> <text id="strConnect1URL">http://www.wellgames.com/de/free_online/mysteriez2/?g=mysteriez2_de</text> <text id="strConnect2">Spielen Sie\nandere\nMultispieler\nSpiele!</text> <text id="strConnect2URL">http://www.wellgames.com/de/?g=mysteriez2_de</text> <text id="strConnect3">Erzählen Sie\nEinem Freund\nvom Spiel\n</text> <text id="strConnect3URL">http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/de/free_online/mysteriez2/?g=mysteriez2_de</text> <text id="strLevelScore">\'s\nLevel Score\nist </text> <text id="strReiting1"> Platz: </text> <text id="strReiting2"> Rating ist </text> <text id="strCompleteLevel">\nhat den Level\nabgeschlossen.\nMit dem Ergebnis\n</text> <text id="strFailedLevel">\nhat den Level\nverloren.\nMit dem Ergebnis\n</text> <text id="strPlayOnline1">Online spielen!</text> <text id="strMoreGames1">Andere Spiele</text> <text id="strPlayersOnline1">Spieler\nonline</text> <text id="strPlace"> Platz</text> <text id="strHasReiting">\'s\nRanking ist \n</text> <text id="strAccept">Ok</text> <text id="strCancel">Abbrechen</text> <text id="strPlayOnline">Online spielen!</text> <text id="strOptions">Optionen</text> <text id="strInstructions">Spielregeln</text> <text id="strHighScores">Top-Punkte</text> <text id="strMoreGames">Andere Spiele</text> <text id="strClose">Schließen</text> <text id="strNew">Neu</text> <text id="strDelete">Löschen</text> <text id="strYes">Ja</text> <text id="strNo">Nein</text> <text id="strOff">Aus</text> <text id="strOn">Ein</text> <text id="strClear">Löschen</text> <text id="strMenu">Menü</text> <text id="strPlayAgain">Nochmal spielen</text> <text id="strNextLevel">Nächster Level</text> <text id="strSendMail">E-Mail senden</text> <text id="strComplete">abgeschlossen!</text> <text id="strPrToCont">Klicken Sie, um fortzusetzen</text> <text id="strFailed">Verloren</text> <text id="strGainedScore">Erreichte Punktzahl:</text> <text id="strBonusScore">Bonuspunkte:</text> <text id="strResults1">Ergebnisse:</text> <text id="strLevel1">Level:</text> <text id="strHowToPlay">Wie gespielt wird</text> <text id="strLevelEditor">Leveleditor</text> <text id="strInputText">Texteingabe</text> <text id="strMissed">Überspringen</text> <text id="strTimeBonus">Zeitbonus:</text> <text id="strCountNumbers1">Finden Sie </text> <text id="strCountNumbers2"> Ziffern</text> <text id="strTimeFreeze">Zeitstillstand</text> <text id="strAddHint">EXTRA HINWEIS!</text> <text id="strTimeDecrease">Zeit - </text> <text id="strFind">Finden Sie</text> <text id="strClick">(Klicken Sie, um zu spielen)</text> <text id="strBonuses">Boni</text> <text id="strBack">Zurück</text> <text id="strPause">Pause</text> <text id="strContinue">weiter</text> <text id="strInstructionsText1">Finden Sie die versteckten Ziffern</text> <text id="strInstructionsText2">Doppelklicken Sie,\num Lupe ein- und auszuschalten </text> <text id="strInstructionsText3">Oder klicken Sie den Knopf “Lupe” \nim rechten Panel an.</text> <text id="strLoadingLevel">Level wird geladen...</text> <text id="strTimeIsUp">Die Zeit ist um!</text> <text id="strNamePlus">daydreaming</text> <text id="strUpSellName"></text> <text id="strUpSellText">Downloaden Sie dieses Spiel direkt \nauf Ihren Gerät und spielen Sie \nwann immer Sie möchten.\nGenießen Sie tolle Level \nPack und Upgrades.</text> <text id="strResume">Weiter</text> <text id="strMainMenu">Hauptmenü</text> <text id="strLanguage">Sprache</text> <text id="strChange">Ändern</text> <text id="strResume">Weiter</text> <text id="strSubmitScore">Eintragen</text> </root> ; private static var text_ru:XML = <root> <text id="strSite">WELLGAMES.COM</text> <text id="strEnterNameLat">(ЛАТИНСКИМИ БУКВАМИ)</text> <text id="strPresents">представляет</text> <text id="strGameName">MYSTERIEZ2!</text> <text id="strNewPlayer">Новый игрок!</text> <text id="strEnterName">Введите ваше имя:</text> <text id="strDefPlayerName">WELL</text> <text id="strWelcome">Добро пожаловать,</text> <text id="strChangePlayer">Кликните, чтобы изменить имя игрока</text> <text id="strCommingSoon">Скоро...</text> <text id="strCommingSoonI">Эта опция недоступна\nв данный момент</text> <text id="strChoosePlayer">Выбор игрока</text> <text id="strDeletePlayer">Удалить игрока?</text> <text id="strDeletePlayerConfirm">Вы уверены,\nчто хотите удалить\nэтот профиль?</text> <text id="strSound">Звук</text> <text id="strMusic">Музыка</text> <text id="strWindow">В окне</text> <text id="strFullScreen">Во весь экран</text> <text id="strResults">Результаты</text> <text id="strScore">Очки:</text> <text id="strLocal">Локальные</text> <text id="strPersonal">Мои очки</text> <text id="strDeleteScoresConfirm">Вы уверены,\nчто хотите удалить\nтаблицу рекордов?</text> <text id="strPlayersOnline">Игроков онлайн</text> <text id="strConnectionToServer">Подключение к серверу...</text> <text id="strOpponent1">Противник</text> <text id="strOpponent2">В игре</text> <text id="strLevel">Уровень</text> <text id="strYourRaiting">Ваш рейтинг:</text> <text id="strLevelScoreR">Очки за уровень: </text> <text id="strLevelConfirm">Чтобы перейти на следующий уровень, вы должны набрать не менее чем:</text> <text id="strLevelConfirm1">очков</text> <text id="strLevelConfirm2">Чтобы перейти на следующий уровень, вы должны\nпобедить Вашего противника</text> <text id="strConnect1">Играть с другими\nигроками\nв режиме\nмультиплеер!</text> <text id="strConnect1URL">http://www.wellgames.com/ru/free_online/mysteriez2/?g=mysteriez2_ru</text> <text id="strConnect2">Играть в другие\nмультиплеерные\nигры!</text> <text id="strConnect2URL">http://www.wellgames.com/ru/?g=mysteriez2_ru</text> <text id="strConnect3">Рассказать\nдругу\nоб игре\n</text> <text id="strConnect3URL">http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2_ru</text> <text id="strLevelScore">\nОчки за уровень</text> <text id="strReiting1"> Место: </text> <text id="strReiting2"> имеет рейтинг </text> <text id="strCompleteLevel">\nЗавершил\nуровень\nс результатом\n</text> <text id="strFailedLevel">\nНе прошел\nуровень\nс результатом\n</text> <text id="strPlayOnline1">Играть онлайн!</text> <text id="strMoreGames1">Другие игры</text> <text id="strPlayersOnline1">Игроков\nонлайн</text> <text id="strPlace"> Место</text> <text id="strHasReiting">\nимеет рейтинг\n</text> <text id="strAccept">Принять</text> <text id="strCancel">Отклонить</text> <text id="strPlayOnline">Играть!</text> <text id="strOptions">Опции</text> <text id="strInstructions">Правила игры</text> <text id="strHighScores">Лучшие результаты</text> <text id="strMoreGames">Другие игры</text> <text id="strClose">Закрыть</text> <text id="strNew">Новый</text> <text id="strDelete">Удалить</text> <text id="strYes">Да</text> <text id="strNo">Нет</text> <text id="strOff">Нет</text> <text id="strOn">Да</text> <text id="strClear">Очистить</text> <text id="strMenu">Меню</text> <text id="strPlayAgain">играть еще раз</text> <text id="strNextLevel">Следующий уровень</text> <text id="strSendMail">Послать письмо</text> <text id="strComplete">пройден!</text> <text id="strPrToCont">нажмите для продолжения</text> <text id="strFailed">проигран</text> <text id="strGainedScore">Набранные очки :</text> <text id="strBonusScore">Бонусные очки :</text> <text id="strResults1">Результат :</text> <text id="strLevel1">Уровень:</text> <text id="strHowToPlay">Инструкция</text> <text id="strGoToPlay">Перейти к игре</text> <text id="strLevelEditor">Level Editor</text> <text id="strInputText">Input Text</text> <text id="strOpponent">Противник</text> <text id="strMissed">Пропустить</text> <text id="strTimeBonus">Очки за время:</text> <text id="strCountNumbers1">Найдите все</text> <text id="strCountNumbers2">числа</text> <text id="strTimeDecrease">Время - </text> <text id="strFind">Найдите</text> <text id="strClick">(кликните для продолжения)</text> <text id="strBonuses">Бонусы</text> <text id="strBack">Назад</text> <text id="strPause">Пауза</text> <text id="strContinue">продолжить</text> <text id="strInstructionsText1">Найдите все спрятанные числа</text> <text id="strInstructionsText2">Используйте двойной клик \nдля включения/выключения лупы</text> <text id="strInstructionsText3">Вы можете использовать кнопку «Лупа», \nкоторая находится на панели справа</text> <text id="strLoadingLevel">загрузка уровня...</text> <text id="strTimeIsUp">Время вышло!</text> <text id="strNamePlus">daydreaming</text> <text id="strUpSellName">Есть iPhone/iPad?</text> <text id="strUpSellText">Тогда скачайте эту игру бесплатно \nи откройте для себя 40 \nсовершенно новых уровней, \nа также возможность \nиспользовать подсказку!</text> <text id="strLanguage">Язык</text> <text id="strChange">Применить</text> <text id="strResume">Продолжить</text> <text id="strMainMenu">Главное Меню</text> <text id="strSubmitScore">Отправить Очки</text> </root> ; private static var config_xml:XML = <root> <var id="language">en</var> <var id="cheatsEnabled">false</var> <file id="text_en" path="localized/en/text.xml" type="xml"/> <file id="text_de" path="localized/de/text.xml" type="xml"/> <file id="text_fr" path="localized/fr/text.xml" type="xml"/> <file id="text_ru" path="localized/ru/text.xml" type="xml"/> <!-- <file id="text_uk" path="localized/uk/text.xml" type="xml"/> --> <language id="en" xml="text_en" name="English" ui="UI_EN"/> <language id="de" xml="text_de" name="Deutsch" ui="UI_DE"/> <language id="fr" xml="text_fr" name="Français" ui="UI_FR"/> <language id="ru" xml="text_ru" name="Русский" ui="UI_RU"/> <!-- <language id="uk" xml="text_uk" name="Українська" /> --> </root> ; private static var text_en:XML = <root> <text id="strSite">WELLGAMES.COM</text> <text id="strEnterNameLat">(Latin characters)</text> <text id="strPresents">presents</text> <text id="strGameName">MYSTERIEZ2!</text> <text id="strNewPlayer">NEW PLAYER!</text> <text id="strEnterName">please enter your name:</text> <text id="strDefPlayerName">WELL</text> <text id="strWelcome">Welcome</text> <text id="strChangePlayer">click to change player</text> <text id="strCommingSoon">Coming Soon...</text> <text id="strCommingSoonI">This option is not available\nat the moment</text> <text id="strChoosePlayer">Choose a Player</text> <text id="strDeletePlayerConfirm">Are you sure you\nwant to delete\nthis profile?</text> <text id="strSound">Sound Volume</text> <text id="strMusic">Music Volume</text> <text id="strWindow">Window</text> <text id="strFullScreen">Full Screen</text> <text id="strResults">Results</text> <text id="strScore">Score:</text> <text id="strLocal">Local</text> <text id="strPersonal">Personal</text> <text id="strDeleteScoresConfirm">Are you sure you\nwant to delete\nscore table?</text> <text id="strPlayersOnline">Players Online</text> <text id="strConnectionToServer">Connecting To Server...</text> <text id="strOpponent1">Opponent</text> <text id="strOpponent2">In Game</text> <text id="strLevel">Level</text> <text id="strYourRaiting">Your Rating:</text> <text id="strLevelScoreR">Level Score: </text> <text id="strLevelConfirm">To get to the next level you need more than</text> <text id="strLevelConfirm1">score</text> <text id="strLevelConfirm2">to get to the next level you must\nbeat your opponent</text> <text id="strConnect1">Play With\nOther Gamers\nIn Multiplayer\nMode!</text> <text id="strConnect1URL">http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2</text> <text id="strConnect2">Try Other\nMultiplayer\nGames!</text> <text id="strConnect2URL">http://www.wellgames.com/?g=mysteriez2</text> <text id="strConnect3">Tell A Friend\nAbout\n</text> <text id="strConnect3URL">http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2</text> <text id="strLevelScore">\'s\nLevel Score\nIs </text> <text id="strReiting1"> Place: </text> <text id="strReiting2">'s Rating Is </text> <text id="strCompleteLevel">\nHas Completed\nThe Level\nWith Score\n</text> <text id="strFailedLevel">\nHas Failed\nThe Level\nWith Score\n</text> <text id="strPlayOnline1">Play Online!</text> <text id="strMoreGames1">More Games</text> <text id="strPlayersOnline1">Players\nOnline</text> <text id="strPlace"> Place</text> <text id="strHasReiting">\'s\nRating Is\n</text> <text id="strAccept">Accept</text> <text id="strCancel">Cancel</text> <text id="strPlayOnline">Play Online!</text> <text id="strOptions">Options</text> <text id="strInstructions">Instruction</text> <text id="strHighScores">High Scores</text> <text id="strMoreGames">More Games</text> <text id="strClose">Close</text> <text id="strNew">New</text> <text id="strDelete">Delete</text> <text id="strYes">Yes</text> <text id="strNo">No</text> <text id="strOff">Off</text> <text id="strOn">On</text> <text id="strClear">Clear</text> <text id="strMenu">Menu</text> <text id="strPlayAgain">Play Again</text> <text id="strNextLevel">Next Level</text> <text id="strSendMail">Send Mail</text> <text id="strComplete">complete!</text> <text id="strPrToCont">press to continue</text> <text id="strFailed">Failed</text> <text id="strGainedScore">gained score :</text> <text id="strBonusScore">bonus score :</text> <text id="strResults1">Results:</text> <text id="strLevel1">Level:</text> <text id="strHowToPlay">How To Play</text> <text id="strLevelEditor">Level Editor</text> <text id="strInputText">Input Text</text> <text id="strMissed">Skip</text> <text id="strTimeBonus">Time bonus:</text> <text id="strCountNumbers1">Find </text> <text id="strCountNumbers2"> numbers</text> <text id="strTimeFreeze">Time Freeze</text> <text id="strAddHint">EXTRA HINT!</text> <text id="strTimeDecrease">Time - </text> <text id="strFind">Find all</text> <text id="strClick">Click to play</text> <text id="strBonuses">Bonuses</text> <text id="strBack">Back</text> <text id="strPause">Pause</text> <text id="strContinue">continue</text> <text id="strInstructionsText1">Find numbers hidden among objects</text> <text id="strInstructionsText2">Left mouse button double-click\nwill turn on/off the magnifier</text> <text id="strInstructionsText3">Or use “Magnifier” button\non the right panel</text> <text id="strLoadingLevel">loading level...</text> <text id="strTimeIsUp">Time is up</text> <text id="strNamePlus">daydreaming</text> <text id="strUpSellName">Mobilize!</text> <text id="strUpSellText">Download this game for your \ndevice and play it everywhere.\nDiscover a number of level \npacks and upgrades.</text> <text id="strLanguage">Language</text> <text id="strChange">Change</text> <text id="strResume">Resume</text> <text id="strMainMenu">Main Menu</text> <text id="strSubmitScore">Submit Score</text> </root> ; private static var text_fr:XML = <root> <text id="strSite">WELLGAMES.COM</text> <text id="strEnterNameLat">(Caractères latins)</text> <text id="strPresents">présente</text> <text id="strGameName">MYSTERIEZ 2!</text> <text id="strNewPlayer">Nouveau joueur!</text> <text id="strEnterName">Introduisez votre nom svp:</text> <text id="strDefPlayerName">WELL</text> <text id="strWelcome">Soyez le bienvenu</text> <text id="strChangePlayer">Cliquer afin de changer le joueur</text> <text id="strCommingSoon">Bientôt...</text> <text id="strCommingSoonI">Cette option est inaccessible\nà présent</text> <text id="strChoosePlayer">Choix du joueur</text> <text id="strDeletePlayerConfirm">Vous êtes sûr\nque vous\nvoulez enlever\nce profil?</text> <text id="strSound">Volume du son</text> <text id="strMusic">Volume de musique</text> <text id="strWindow">Window</text> <text id="strFullScreen">Plein écran</text> <text id="strResults">Résultats</text> <text id="strScore">Compte:</text> <text id="strLocal">Local</text> <text id="strPersonal">Personnel</text> <text id="strDeleteScoresConfirm">Vous êtes sûr\nque vous\nvoulez enlever\nune table des records?</text> <text id="strPlayersOnline">Joueurs en ligne</text> <text id="strConnectionToServer">Adjonction au serveur...</text> <text id="strOpponent1">Opposant</text> <text id="strOpponent2">Dans le jeu</text> <text id="strLevel">Niveau</text> <text id="strYourRaiting">Votre cote de popularité:</text> <text id="strLevelScoreR">Compte du niveau: </text> <text id="strLevelConfirm">Afin de parvenir au niveau suivant vous devez plus que</text> <text id="strLevelConfirm1">score</text> <text id="strLevelConfirm2">afin de parvenir au niveau suivant vous devez\nbattre au jeu votre opposant</text> <text id="strConnect1">Jouer avec\nles autres joueurs\ndans le mode\nMultijoueur!</text> <text id="strConnect1URL">http://www.wellgames.com/fr/free_online/mysteriez2/?g=mysteriez2_fr</text> <text id="strConnect2">Essayer les autres\njeux\nmultijoueur!</text> <text id="strConnect2URL">http://www.wellgames.com/fr/?g=mysteriez2_fr</text> <text id="strConnect3">Raconter à un ami \nde\n</text> <text id="strConnect3URL">http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/fr/free_online/mysteriez2/?g=mysteriez2_fr</text> <text id="strLevelScore">\'s\nCompte du niveau\nest </text> <text id="strReiting1"> lieu: </text> <text id="strReiting2"> a le cote de popularité </text> <text id="strCompleteLevel">\nA gagné\nle niveau\navec le compte\n</text> <text id="strFailedLevel">\nA perdu\nle niveau\navec le compte\n</text> <text id="strPlayOnline1">Jouez en ligne!</text> <text id="strMoreGames1">Plus de jeux</text> <text id="strPlayersOnline1">Joueurs\nen ligne</text> <text id="strPlace"> lieu</text> <text id="strHasReiting">\'s\ncote de\npopularité est\n</text> <text id="strAccept">Accepter</text> <text id="strCancel">Décliner</text> <text id="strPlayOnline">Jouez en ligne!</text> <text id="strOptions">Options</text> <text id="strInstructions">Instruction</text> <text id="strHighScores">Compte plus haut</text> <text id="strMoreGames">Plus de jeux</text> <text id="strClose">Fermer</text> <text id="strNew">Nouveau</text> <text id="strDelete">Enlever</text> <text id="strYes">Oui</text> <text id="strNo">Non</text> <text id="strOff">Non</text> <text id="strOn">Oui</text> <text id="strClear">Nettoyer</text> <text id="strMenu">Menu</text> <text id="strPlayAgain">Joueur de nouveau</text> <text id="strNextLevel">Niveau suivant</text> <text id="strSendMail">Envoyer le mail</text> <text id="strComplete">complet!</text> <text id="strPrToCont">appuyer afin de continuer</text> <text id="strFailed">Perdu</text> <text id="strGainedScore">compte gagné :</text> <text id="strBonusScore">bonus :</text> <text id="strResults1">Résultats:</text> <text id="strLevel1">Niveau:</text> <text id="strHowToPlay">Comment de jouer</text> <text id="strLevelEditor">Editeur du niveau</text> <text id="strInputText">Text d'entrée</text> <text id="strMissed">Laisser passer</text> <text id="strTimeBonus">Bonus du temps:</text> <text id="strCountNumbers1">Trouver </text> <text id="strCountNumbers2"> chiffres</text> <text id="strTimeFreeze">Timps figé</text> <text id="strAddHint">Extra allusion!</text> <text id="strTimeDecrease">Temps - </text> <text id="strFind">Trouver tous</text> <text id="strClick">Cliquer afin de jouer</text> <text id="strBonuses">Bonuses</text> <text id="strBack">En arrière</text> <text id="strPause">Pause</text> <text id="strContinue">Cliquer afin de continuer!</text> <text id="strInstructionsText1">Trouver les chiffres cachés parmi des objets</text> <text id="strInstructionsText2">Bouton gauche de souris avec double-click\nallumer ou/couper la loupe</text> <text id="strInstructionsText3">Ou utiliser un bouton de “Magnifier”\nsur un tableau droit</text> <text id="strLoadingLevel">chargement du niveau...</text> <text id="strTimeIsUp">Temps est fini</text> <text id="strNamePlus">jour des rêves</text> <text id="strResume">Reprendre</text> <text id="strMainMenu">Menu principal</text> <text id="strLanguage">Langue</text> <text id="strChange">Changer</text> <text id="strMainMenu">Menu principal</text> <text id="strUpSellName">Mobilisez-vous!</text> <text id="strUpSellText">Téléchargez gratuitement \nce jeu et jouez partout.\nDécouvrez un tas de nouveaux \nniveaux magnifiques avec indices!</text> <text id="strUpSellContinue">continuer</text> <text id="strSubmitScore">Ajouter le compte</text> </root> ; public static function getXMLFile(_arg1:String):XML{ var _local2:int; _local2 = 0; while (_local2 < LIST.length) { if (LIST[_local2][0] == _arg1){ return (LIST[_local2][1]); }; _local2++; }; return (null); } } }//package MAIN.UTIL
Section 99
//SLoadData (MAIN.UTIL.SLoadData) package MAIN.UTIL { import flash.events.*; import flash.display.*; import flash.media.*; import flash.net.*; public class SLoadData extends Sprite { private var iType:String; private var iID:String; private var iChangeData:Object; private var iSound:Sound; private var iLoader:URLLoader; private var iPath:String; private var iImage:Loader; public static const EVENT_ERROR:String = "EVENT_ERROR"; public static const FILE_SOUND:String = "sound"; public static const FILE_DATA:String = "data"; public static const FILE_TEXT:String = "text"; public static const FILE_XML:String = "xml"; public static const FILE_IMAGE:String = "img"; public static const EVENT_COMPLETE:String = "EVENT_COMPLETE"; private function ClearListeners():void{ if (this.iLoader != null){ this.iLoader.removeEventListener(Event.COMPLETE, this.OnLoadComplete); this.iLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.OnLoadSecurityError); }; if (this.iSound != null){ this.iSound.removeEventListener(Event.COMPLETE, this.OnLoadComplete); }; if (this.iImage != null){ this.iImage.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.OnLoadComplete); }; } public function Free():void{ this.ClearListeners(); this.iLoader = null; this.iSound = null; this.iImage = null; } public function Load(_arg1:String, _arg2:String, _arg3:String):void{ var aURL:URLRequest; var aPath = _arg1; var aID = _arg2; var aType = _arg3; this.iID = aID; this.iPath = aPath; this.iType = aType; this.iLoader = null; this.iSound = null; this.iImage = null; this.iChangeData = null; switch (this.iType){ case FILE_XML: case FILE_TEXT: this.iLoader = new URLLoader(); this.iLoader.dataFormat = URLLoaderDataFormat.TEXT; break; case FILE_DATA: this.iLoader = new URLLoader(); this.iLoader.dataFormat = URLLoaderDataFormat.BINARY; break; case FILE_SOUND: this.iSound = new Sound(); break; case FILE_IMAGE: this.iImage = new Loader(); break; }; trace(("Loading -> " + aPath)); aURL = new URLRequest(aPath); if (this.iLoader != null){ this.iLoader.addEventListener(Event.COMPLETE, this.OnLoadComplete); this.iLoader.addEventListener(IOErrorEvent.IO_ERROR, this.OnLoadError); this.iLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.OnLoadSecurityError); }; if (this.iSound != null){ this.iSound.addEventListener(Event.COMPLETE, this.OnLoadComplete); this.iSound.addEventListener(IOErrorEvent.IO_ERROR, this.OnLoadError); }; if (this.iImage != null){ this.iImage.contentLoaderInfo.addEventListener(Event.COMPLETE, this.OnLoadComplete); this.iImage.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.OnLoadError); }; if (SConfig.USE_NETWORK == true){ try { if (this.iLoader != null){ this.iLoader.load(aURL); }; if (this.iSound != null){ this.iSound.load(aURL); }; if (this.iImage != null){ this.iImage.load(aURL); }; } catch(aError:Error) { this.ClearListeners(); this.dispatchEvent(new Event(EVENT_ERROR)); }; } else { this.ClearListeners(); this.dispatchEvent(new Event(EVENT_ERROR)); }; var m:Array = new Array(); var url:RegExp = new RegExp("([app]):/([\\w./%|]*)"); m = aPath.match(url); if (m != null){ trace(((((m[0] + "\n") + m[1]) + "\n") + m[2])); aPath = m[2]; }; } public function getBytesLoaded():Number{ if (this.iLoader != null){ return (this.iLoader.bytesLoaded); }; if (this.iSound != null){ return (this.iSound.bytesLoaded); }; if (this.iImage != null){ return (this.iImage.contentLoaderInfo.bytesLoaded); }; return (0); } public function getPath():String{ return (this.iPath); } private function OnLoadComplete(_arg1:Event):void{ this.ClearListeners(); this.dispatchEvent(new Event(EVENT_COMPLETE)); } public function getData():Object{ var _local1:Bitmap; if (this.iChangeData != null){ return (this.iChangeData); }; if (this.iLoader != null){ switch (this.iType){ case FILE_XML: return (new XML(this.iLoader.data)); case FILE_DATA: case FILE_TEXT: return (this.iLoader.data); default: return (this.iLoader.data); }; }; if (this.iSound != null){ return (this.iSound); }; if (this.iImage != null){ return (this.iImage.content); }; return (null); } private function OnLoadSecurityError(_arg1:SecurityErrorEvent):void{ trace(("ERROR -> OLoadData -> OnLoadSecurityError -> SecurityErrorEvent -> " + _arg1.text)); this.ClearListeners(); this.dispatchEvent(new Event(EVENT_ERROR)); } private function OnLoadError(_arg1:IOErrorEvent):void{ trace(("ERROR -> OLoadData -> OnLoadError -> IOErrorEvent -> " + _arg1.text)); this.ClearListeners(); this.dispatchEvent(new Event(EVENT_ERROR)); } public function setData(_arg1:Object):void{ this.iChangeData = _arg1; } public function getType():String{ return (this.iType); } public function getID():String{ return (this.iID); } public function getProcess():int{ if (this.iLoader != null){ return (((this.iLoader.bytesLoaded * 100) / this.iLoader.bytesTotal)); }; if (this.iSound != null){ return (((this.iSound.bytesLoaded * 100) / this.iSound.bytesTotal)); }; if (this.iImage != null){ return (((this.iImage.contentLoaderInfo.bytesLoaded * 100) / this.iImage.contentLoaderInfo.bytesTotal)); }; return (0); } } }//package MAIN.UTIL
Section 100
//SPanelSysButtons (MAIN.UTIL.SPanelSysButtons) package MAIN.UTIL { import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; import MAIN.WINDOWS.*; public class SPanelSysButtons extends Sprite { private var iLayerButtons:Sprite; private var iFuncClickLang:Function; private var btn_sound:Sprite; private var btn_language:Sprite; public var btn_fullscreen:Sprite; public static var sInstance:SPanelSysButtons; public function SPanelSysButtons(){ sInstance = this; this.iLayerButtons = (this.addChild(new Sprite()) as Sprite); this.iLayerButtons.scaleX = (this.iLayerButtons.scaleY = (OGlobal.Scale * 0.75)); if (this.stage == null){ this.addEventListener(Event.ADDED_TO_STAGE, this.OnAddedToStage); } else { this.OnAddedToStage(null); }; } private function OnAddedToStage(_arg1:Event):void{ this.removeEventListener(Event.ADDED_TO_STAGE, this.OnAddedToStage); this.MakeSysButtons(); } private function ClickFullscreen():void{ if (stage == null){ return; }; try { if (stage.displayState == StageDisplayState.FULL_SCREEN){ stage.displayState = StageDisplayState.NORMAL; } else { stage.displayState = StageDisplayState.FULL_SCREEN; }; } catch(e:Error) { trace("ERROR -> CHANGE DISPLAY STATE"); }; } public function Free():void{ this.removeEventListener(Event.ADDED_TO_STAGE, this.OnAddedToStage); sInstance = null; this.iFuncClickLang = null; this.btn_language.removeEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); this.btn_fullscreen.removeEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); this.btn_sound.removeEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); } private function RefreshFullscreen():void{ if (stage == null){ return; }; if (stage.displayState != StageDisplayState.FULL_SCREEN){ this.btn_fullscreen["btn_restore"].visible = false; this.btn_fullscreen["btn_fullscreen"].visible = true; } else { this.btn_fullscreen["btn_restore"].visible = true; this.btn_fullscreen["btn_fullscreen"].visible = false; }; } public function RefreshLanguage():void{ this.btn_language["text1"].text = (this.btn_language["text2"].text = SConfig.language.toUpperCase()); } public function setFuncClickLang(_arg1:Function):void{ this.iFuncClickLang = _arg1; } private function MakeSysButtons():void{ this.btn_language = new UI.Lib_language(); this.btn_language.x = 0; this.btn_language.y = 0; this.btn_language["text1"].mouseEnabled = (this.btn_language["text2"].mouseEnabled = false); this.iLayerButtons.addChild(this.btn_language); this.btn_language.addEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); this.RefreshLanguage(); this.btn_fullscreen = new UI.Lib_fullscreen(); this.btn_fullscreen.x = 40; this.btn_fullscreen.y = 0; this.iLayerButtons.addChild(this.btn_fullscreen); this.btn_fullscreen.addEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); this.RefreshFullscreen(); this.btn_sound = new UI.Lib_sound(); this.btn_sound.x = 80; this.btn_sound.y = 0; this.iLayerButtons.addChild(this.btn_sound); this.btn_sound.addEventListener(MouseEvent.CLICK, this.OnButtonMouseDown); this.RefreshButtonSound(); } public function RefreshButtonSound():void{ this.btn_sound["btn_sound_off"].visible = OSound.Mute; this.btn_sound["btn_sound_on"].visible = !(OSound.Mute); } private function OnButtonMouseDown(_arg1:MouseEvent):void{ var _local2:OWindow; switch (_arg1.currentTarget){ case this.btn_language: trace("Press -> Language"); _local2 = (OApplication.sInstance as Mysteriez2).getTopWindow(); if (((!((_local2 == null))) && ((_local2 is OWLanguage)))){ trace("Window Language already open"); return; }; if (this.iFuncClickLang != null){ this.iFuncClickLang(); }; OApplication.sInstance.OnPress(null, UI.miLanguage); if (_local2 != null){ _local2.prActive = false; }; break; case this.btn_fullscreen: trace("Press -> Fullscreen"); this.ClickFullscreen(); this.RefreshFullscreen(); break; case this.btn_sound: trace("Press -> Sound"); OSound.Mute = !(OSound.Mute); this.RefreshButtonSound(); break; }; } } }//package MAIN.UTIL
Section 101
//SStrings (MAIN.UTIL.SStrings) package MAIN.UTIL { public class SStrings { private static var iStringTable:Object; private static var iConfigLoader:SConfigLoader; public static function AddStrings(_arg1:XML):void{ var _local2:int; var _local3:String; var _local4:String; if (SStrings.iStringTable == null){ SStrings.iStringTable = new Object(); }; _local2 = 0; while (_local2 < _arg1.text.length()) { _local3 = _arg1.text[_local2].@id; _local4 = _arg1.text[_local2]; SStrings.iStringTable[_local3] = newLinesApply(_local4); _local2++; }; } public static function getString(_arg1:String):String{ if ((((((SStrings.iStringTable == null)) || ((SStrings.iStringTable[_arg1] == undefined)))) || ((SStrings.iStringTable[_arg1] == null)))){ trace(("ERROR -> STRINGS NOT FOUND -> ID -> " + _arg1)); return (""); }; return (SStrings.iStringTable[_arg1]); } public static function TimeToString(_arg1:int):String{ var _local2:int; var _local3:int; var _local4:int; var _local5:String; var _local6:String; var _local7:String; _local2 = Math.floor((_arg1 / 3600)); _arg1 = (_arg1 - (_local2 * 3600)); _local3 = Math.floor((_arg1 / 60)); _arg1 = (_arg1 - (_local3 * 60)); _local4 = _arg1; if (_local2 > 0){ _local5 = (_local2.toString() + ":"); } else { _local5 = ""; }; if (_local3 < 10){ _local6 = ("0" + _local3.toString()); } else { _local6 = _local3.toString(); }; if (_local4 < 10){ _local7 = ("0" + _local4.toString()); } else { _local7 = _local4.toString(); }; return ((((_local5 + _local6) + ":") + _local7)); } public static function replace(_arg1:String, _arg2:String, _arg3:String):String{ var _local4:String; var _local5:int; var _local6:int; while ((_local5 = _arg1.indexOf(_arg2)) >= 0) { _local6 = (_local5 + _arg2.length); _local4 = _arg1.substr(0, _local5); _local4 = (_local4 + _arg3); _local4 = (_local4 + _arg1.substr(_local6, _arg1.length)); _arg1 = _local4; }; return (_arg1); } public static function newLinesApply(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; for (;_local2 < (_arg1.length - 1);_local2++) { if (_arg1.substr(_local2, 2) == "\\n"){ _arg1 = ((_arg1.substring(0, _local2) + "\n") + _arg1.substring((_local2 + 2), _arg1.length)); continue; }; }; return (_arg1); } } }//package MAIN.UTIL
Section 102
//OWChoosePlayer (MAIN.WINDOWS.OWChoosePlayer) package MAIN.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import MAIN.UTIL.*; public class OWChoosePlayer extends ODialog { public var iCancel:OButton; public var iListBox:OListBox; public var iAccept:OButton; private var iData; public var iDelete:OButton; public var iNew:OButton; private var iCurPlayer:String; public function OWChoosePlayer(){ super(UI.OWChoosePlayer); } override public function OnPress(_arg1:Event, _arg2):void{ if (!this.prMouseEnabled){ return; }; if (_arg2 == this.iNew){ OApplication.sInstance.OnPress(null, UI.miEnterNewName); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iDelete){ OApplication.sInstance.OnPress(null, UI.miDeletePlayerConfirm); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iCancel){ UI.iGAME.prPlayersData = this.iData; UI.iGAME.prPlayerName = this.iCurPlayer; OApplication.sInstance.OnPress(null, UI.miMenu); this.prVisible = false; return; }; if (_arg2 == this.iAccept){ if (UI.iMP.isConnected){ UI.iMP.disconnect(); }; OApplication.sInstance.OnPress(null, UI.miMenu); if (((!((UI.iGAME.prLang == null))) && (!((SConfig.language == UI.iGAME.prLang))))){ SConfig.language = UI.iGAME.prLang; SConfigLoader.ValidLanguage(); if (SPanelSysButtons.sInstance != null){ SPanelSysButtons.sInstance.RefreshLanguage(); }; UI.ReInit(); (OApplication.sInstance as Mysteriez2).CloseAllWindows(); } else { if (UI.iGAME.prLang == null){ UI.iGAME.prLang = SConfig.language; }; this.prVisible = false; }; return; }; if ((((_arg2 == this.iListBox)) && (!((UI.iGAME.prPlayerName == this.iListBox.prCurrentLBParam))))){ UI.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(); } override public function Init():void{ super.Init(); this.iData = UI.iGAME.prPlayersData; this.iCurPlayer = UI.iGAME.prPlayerName; this.iListBox.SetCurrentElement(UI.iGAME.prPlayerName, UI.iGAME.prPlayerNames); } override public function set prActive(_arg1:Boolean):void{ if (_arg1){ this.iListBox.SetCurrentElement(UI.iGAME.prPlayerName, UI.iGAME.prPlayerNames); }; super.prActive = _arg1; } } }//package MAIN.WINDOWS
Section 103
//OWDemo (MAIN.WINDOWS.OWDemo) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import flash.geom.*; import flash.utils.*; import MAIN.OBJECTS.SENDRECEIVE.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.OBJECTS.UTILS.*; import MAIN.OBJECTS.OLEVELS.*; public class OWDemo extends OIObject { private const iSpeed:int = 5; private const iNumMoveObject:int = 3; private const iMap:Array; private var iGame:OGGame; private var iSPC:Point; public var iPlayProgram:Array; private var iSpeedCursor:Point; private var iTimer:int; private var iIndHint:int; private var iCursor:OBitmap; private var iDelay:int; private var iCounterMoveObject:int; private var FindColors2:Array; private var iLoopOn:Boolean; private var FindColors1:Array; private var iEndMovePos:Point; private var _iReceiver:OReceiver; private var iDPP:Point; 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([]); } override public function Free():void{ super.Free(); } public function Play(_arg1:Array):void{ iPlayProgram = OLUtils.CloneArray(_arg1); this.State = stStart; } 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; }; } 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); } 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; }; } public function MoveCursor(_arg1:Point):Boolean{ var _local2:Point = _arg1; var _local3:Point = 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 Init():void{ super.Init(); UI.OGFind; iCursor = ODisplay.OBitmapSpriteFillRect([ODisplay.OBitmapSpriteFillRect, 30, 30, [ODisplay.SpriteLib, UI.OCursor], "GEL", "white", "border", 1, 0, 0, null, 0, true]); iSpeedCursor = new Point(); iEndMovePos = new Point(); iDPP = new Point(); } private function NextStep():void{ var _local1:Array = 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; }; } } }//package MAIN.WINDOWS
Section 104
//OWDialog (MAIN.WINDOWS.OWDialog) package MAIN.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 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; }; } 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; }; } } }//package MAIN.WINDOWS
Section 105
//OWEnterName (MAIN.WINDOWS.OWEnterName) package MAIN.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class OWEnterName extends ODialog { public var iCancel:OButton; private var iHasCancel:Boolean; public var iAccept:OButton; public var iName:OInput; public function OWEnterName(_arg1:Boolean=true){ this.iHasCancel = _arg1; super(UI.OWEnterName); } private function removeSpaces(_arg1:String):String{ var _local2 = ""; var _local3:int; while (_local3 < _arg1.length) { if (_arg1.charAt(_local3) != " "){ _local2 = (_local2 + _arg1.charAt(_local3)); }; _local3++; }; return (_local2); } override public function OnPress(_arg1:Event, _arg2):void{ var _local3:String; var _local4:String; var _local5:String; if (!this.prMouseEnabled){ return; }; if (_arg2 == this.iCancel){ if (!this.iCancel.visible){ return; }; this.prVisible = false; return; }; if (_arg2 == this.iAccept){ _local4 = OUtils.ClearString(this.iName.prText.toUpperCase()); _local5 = removeSpaces(_local4); SPanelSysButtons.sInstance.btn_fullscreen.visible = true; if (_local5.length > 0){ _local3 = UI.iGAME.prLang; UI.iGAME.prPlayerName = _local5; UI.iGAME.prLang = _local3; this.prVisible = false; } else { this.iName.prText = ""; }; }; } override public function Free():void{ super.Free(); this.iName.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler); this.iName = null; this.iAccept = null; this.iCancel = null; } public function get prName():String{ return (this.iName.prText); } override public function Init():void{ super.Init(); this.iName.prText = (UI.iGAME.prPlayerName) ? UI.iGAME.prPlayerName : ""; if (!this.iHasCancel){ this.iCancel.visible = false; this.iAccept.prX = 78; }; this.iName.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler); this.prX = 485; } private function keyHandler(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case 13: OnPress(_arg1, this.iAccept); break; case 27: OnPress(_arg1, this.iCancel); break; }; trace(((((((_arg1.target + "(") + _arg1.currentTarget) + "): ") + _arg1.keyCode) + "/") + _arg1.charCode)); } 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; } public function set prName(_arg1:String):void{ this.iName.prText = _arg1; } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); SetNameFocus(); } } }//package MAIN.WINDOWS
Section 106
//OWGame (MAIN.WINDOWS.OWGame) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import flash.geom.*; import flash.utils.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.GAME.*; import MAIN.OBJECTS.SENDRECEIVE.*; import MAIN.OBJECTS.OGAME.*; import MAIN.OBJECTS.MULTYPLAYER.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; import flash.net.*; import ENGINE.SMARTFOX.*; import MAIN.OBJECTS.UTILS.*; import MAIN.OBJECTS.DIGITS_PANEL.*; import MAIN.OBJECTS.OGTIMER.*; import MAIN.OBJECTS.OLEVELS.*; public class OWGame extends OWindow { private var iOppEndGame:Boolean; private var iLoaderLevel:Loader; public var iPause:OCheckBox; public var iScoreCounter:OCounter; public var iAllSpr:OSprite; private var iDAlpha:Number;// = 0.025 private var iITimer:int; public var iGameName:OBitmap; public var iPanelBorder:OBitmap; private var iNameO:String; private var iInfoGame:OGInfo; private var iMultiPlayer:Boolean; public var iSite:OIObject; private var flag_pause:Boolean; public var iMenu:OButton; private var iRecordO:String; private var iReceiver:OReceiver; private var iInfoP:OWInfoPanel; private var iLevelVal:int; private var iOPlayer:OLOpponentPlay; private var iCounterLevelFailed:int; private var iSplashObject:OFlairSplash; private var iRNDIndex:int; public var iName:OIObject; private var iDigitsPanel:OGDigitsPanel; public var iInvisibleButton:OButton; public var iLevel:OIObject; public var iScoreCounterO:OCounter; public var iScore:OIObject; private var iSaveKoef:Number;// = 0.5 private var iOppScore:int; public var iLoop:OCheckBox; private var iInfo:OIObject; private var iRecO:ORecord; private var iShowAd:Boolean; public var iScoreO:OIObject; public var iExcellent:OIObject; private var iOpponentRecord:String; private var iZoom:OGZoom; private var iGameMP:OMPGame; public var iGameNamePlus:OIObject; public var iLevelCounter:OCounter; private var flag_in_game_menu:Boolean; private var iGTimer:OGTimer; private var iLevelData:Array; private var iShowTime:int; public var iBorder:OBitmap; private var iGame:OGGame; public static const stStart:int = 4; public static const stPlay:int = 6; public static const stShow:int = 0; public static const stLevelNotComplete:int = 8; public static const stGameFieldHide:int = 11; public static const stPause:int = 10; public static const stGoToPlay:int = 1; public static const stLoadLevel:int = 3; public static const stConnection:int = 2; public static const stWaitUpSell:int = 14; public static const stShowResults:int = 9; private static const TIME_WAIT_LOADING_ERROR:int = 4000; public static const stLoadLevelData:int = 12; public static const stShowGoal:int = 5; private static const TIME_WAIT_OPPONENT:int = 5000; private static const TIME_WAIT_CONNECTION:int = 7000; public static const stLevelComplete:int = 7; public function OWGame(){ super(UI.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 RemoveObject(_arg1:Array):void{ if (iDigitsPanel){ iDigitsPanel.RemoveDigit(_arg1[0]); }; } private function AddScoreSound(_arg1:Array):void{ OSound.PlaySound(UI.OSBubbleBang05); } private function NewGameOpponent():void{ iGameMP = new OMPGame(iLevelData[2]); iOPlayer = new OLOpponentPlay(iGameMP, iRecordO); iGameMP.Pos(611, 100); addChild(iGameMP); iOppEndGame = false; } private function OnAdFinished():void{ this.iShowAd = false; } 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 PressInGameMenu():void{ switch (OWInGameMenu.PRESS_BTN){ case OWInGameMenu.BTN_RESUME: trace("Resume Game"); if (this.flag_pause == false){ this.Pause(false); }; iGame.reInitParticle(); break; case OWInGameMenu.BTN_MAIN_MENU: trace("Main Menu"); OSound.MusicVolume = UI.iGAME.prMusicVolume; OSound.SoundVolume = UI.iGAME.prSoundVolume; OApplication.sInstance.prMenuItem = UI.miMenu; this.prVisible = false; break; }; } 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 get prGameIndex():int{ return (((UI.GameType * 10) + iRNDIndex)); } private function WrongObjectSound(_arg1:Array):void{ OSound.PlaySound(UI.OSBubbleBang02); } private function Path(_arg1:String):String{ return (_arg1.substring(0, _arg1.lastIndexOf("/"))); } private function get prLevelIndex():int{ return ((((iLevelVal + 1) * 10) + iRNDIndex)); } private function OnProgress(_arg1:ProgressEvent):void{ var _local2:Number = (_arg1.bytesLoaded / _arg1.bytesTotal); OWLoadProgress(iInfo).iProgress.prValue = (_local2 * 100); } 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; }; } override public function set prActive(_arg1:Boolean):void{ if (_arg1){ if (this.flag_in_game_menu == true){ if (this.iInfo != null){ this.iInfo.visible = true; }; this.PressInGameMenu(); }; }; 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 ChangePosTextConnection():void{ var _local1:Number; var _local2:Rectangle; _local2 = Partner.iAdRotator.getInterLevelRect(); if (_local2 == null){ return; }; _local1 = (_local2.height / OGlobal.Scale); if (_local1 < 250){ _local1 = 250; }; if (_local1 > 500){ _local1 = 500; }; this.iInfo.prY = _local1; } private function SplashInfoMessage():Boolean{ var _local1:Boolean; 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 OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iMenu){ this.flag_in_game_menu = true; if (this.iInfo != null){ this.iInfo.visible = false; }; this.flag_pause = !(this.iPause.Checked); this.Pause(true); OApplication.sInstance.OnPress(null, UI.miInGameMenu); this.prActive = false; return; }; if (_arg2 == this.iLoop){ iGame.Field.OnZoom(); OSound.PlaySound(UI.OSBubbleBang06); }; if (_arg2 == this.iPause){ Pause(!(iPause.Checked)); OSound.PlaySound(UI.OSBubbleBang06); }; } private function NewGame():void{ 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); var _local1:int = (iLevelVal / OLLevels.LevelCount); var _local2:int = OLLevels._LevelList(iLevelVal)[1]; var _local3:int = (_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; } override public function Free():void{ super.Free(); OGBitmapFactory.PlayBook.prVisible = false; if (iOPlayer){ iOPlayer.Free(); }; } private function OnClickSite(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(UI.strConnect2URL)); } 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 DecreaseTime(_arg1:Array):void{ if (iInfoGame){ iInfoGame.AddInfo(OGInfo.infTimeDec); }; iGTimer.FonVisible = true; iShowTime = getTimer(); } private function get prSeed():int{ return ((29989 + (7 * (((UI.iGAME.prLevel + 1) * 10) + iRNDIndex)))); } private function ChangeTime(_arg1:Array):void{ iGTimer.ChangeTime(_arg1[0]); } 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 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; if (!flag_in_game_menu){ iInfo.removeEventListener(MouseEvent.CLICK, OnClick); iInfo.buttonMode = false; this.AddInfo(null, true); }; flag_in_game_menu = false; iGame.Field.prVisible = true; iPause.Checked = true; }; }; } 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; }; } override public function OnEnterFrame(_arg1:Event):void{ var _local2:int; var _local3:Boolean; var _local4:Number; 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: _local4 = (iLoaderLevel.contentLoaderInfo.bytesLoaded / iLoaderLevel.contentLoaderInfo.bytesTotal); OWLoadProgress(iInfo).iProgress.prValue = (_local4 * 100); SplashInfoMessage(); break; case stConnection: _local2 = getTimer(); _local3 = this.SplashInfoMessage(); if (((((((_local2 - this.iITimer) > TIME_WAIT_OPPONENT)) && ((UI.iMP.State == OMultiplayer.stInZone)))) && ((this.iShowAd == false)))){ this.State = stLoadLevel; break; }; if (((((((_local2 - this.iITimer) > TIME_WAIT_CONNECTION)) && ((_local3 == true)))) && ((this.iShowAd == false)))){ this.State = stStart; break; }; break; case stLoadLevel: _local3 = this.SplashInfoMessage(); iMultiPlayer = false; iRecordO = null; iNameO = null; if (((_local3) && (UI.iMP.prOpponentTurn))){ _local5 = UI.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(); if (!flag_in_game_menu){ 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 = stWaitUpSell; }; break; case stWaitUpSell: if (((!(this.iInfo.prVisible)) && (!(this.iInfo.prAnimation)))){ this.State = stLoadLevelData; }; break; }; super.OnEnterFrame(_arg1); } override public function set State(_arg1:int):void{ var _local2:*; var _local3:URLRequest; var _local4:Boolean; var _local5:int; this.iState = _arg1; switch (this.iState){ case stShow: iLevelVal = UI.iGAME.prLevel; break; case stGoToPlay: this.AddInfo(new OWInstruction()); break; case stLoadLevelData: (OApplication.sInstance as Mysteriez2).iLayerAPI.x = ((OApplication.sInstance as Mysteriez2).iLayerAPI.x - 0); if (OGBitmapFactory.PlayBook.prVisible == false){ OGBitmapFactory.PlayBook.prVisible = true; }; iLevelVal = UI.iGAME.prLevel; if (iLevelVal == 0){ iLevelData = OEmbedsLevels.iDataLevel1[0]; this.State = stConnection; return; }; iITimer = 0; iLoaderLevel = new Loader(); this.AddInfo(new OWLoadProgress(), true); iLoaderLevel.contentLoaderInfo.addEventListener(Event.COMPLETE, OnLoadComplete); iLoaderLevel.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, OnProgress); _local3 = new URLRequest(((Mysteriez2.Path(this.loaderInfo.url) + "/") + OLLevels._LevelList(iLevelVal)[0])); _local2 = new (OEmbedsLevels.LIST_EMBED[(iLevelVal % OEmbedsLevels.LIST_EMBED.length)][1]); _local4 = false; _local5 = 0; while (_local5 < OEmbedsLevels.LIST_EMBED.length) { if (OLLevels._LevelList(iLevelVal)[0] == OEmbedsLevels.LIST_EMBED[_local5][0]){ _local4 = true; }; _local5++; }; if (_local4){ trace("Load embeded level..."); iLoaderLevel.loadBytes(_local2); } else { trace("Loading level..."); iLoaderLevel.load(_local3); }; break; case stConnection: (OApplication.sInstance as Object).iPanelSysButtons.visible = false; (OApplication.sInstance as Mysteriez2).iLayerAPI.x = ((OApplication.sInstance as Mysteriez2).iLayerAPI.x - 75); this.iShowAd = true; Partner.iAdRotator.ShowInterLevelAd(this.OnAdFinished); UI.iMP.ClearOpponentTurn(true); this.iITimer = getTimer(); this.AddInfo(GL.ColorHeaderM(UI.OWGameConnection), true); this.ChangePosTextConnection(); if (UI.iMP.State != OMultiplayer.stConnection){ UI.iMP.State = OMultiplayer.stNone; UI.iMP.Init(UI.sDomain, UI.sServer, UI.sZone, UI.sXTName, UI.iGAME.prPlayerName); }; break; case stLoadLevel: UI.iMP.ClearOpponentTurn(true); UI.iMP.Turn(["rdl", (UI.iGAME.prLevel % OLLevels.LevelCount), int((UI.iGAME.prLevel / OLLevels.LevelCount)), UI.iGAME.prPlayerName]); break; case stStart: (OApplication.sInstance as Object).iPanelSysButtons.visible = true; iLevelCounter.prValue = (iLevelVal + 1); if (!this.iMultiPlayer){ UI.OWGameNewLevelWithNoOpponent[0][4] = ((SStrings.getString("strLevel") + " # ") + (iLevelVal + 1).toString()); this.AddInfo(OInterface.OIObjectMake(UI.OWGameNewLevelWithHoutOpponent), true); if (UI.iMP.State == OMultiplayer.stInZone){ iInfoP.State = OWInfoPanel.stUserNotFound; } else { iInfoP.State = OWInfoPanel.stConnect; }; } else { UI.OWGameNewLevel[0][4] = ((SStrings.getString("strLevel") + " # ") + (iLevelVal + 1).toString()); UI.OWGameNewLevel[2][4] = this.iNameO; this.AddInfo(OInterface.OIObjectMake(UI.OWGameNewLevelWithOpponent), true); iInfoP.prOpponent = this.iNameO; iInfoP.State = OWInfoPanel.stOpponent; }; iITimer = getTimer(); break; case stShowGoal: (OApplication.sInstance as Mysteriez2).iLayerAPI.x = ((OApplication.sInstance as Mysteriez2).iLayerAPI.x + 75); 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(UI.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(UI.OSBubbleBang07); iITimer = getTimer(); iPause.mouseEnabled = true; iPause.mouseChildren = true; iLoop.mouseEnabled = true; iLoop.mouseChildren = true; break; case stPause: if (!flag_in_game_menu){ this.AddInfo(OInterface.OIObjectMake(UI.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; UI.iGAME.Write(OGame.catTmp, "Score", iScoreCounter.prValue); UI.iGAME.Write(OGame.catTmp, "TimeBonus", iGame.TimeBonusScore); UI.iGAME.Write(OGame.catTmp, "Bonus", iOppScore); UI.iGAME.Write(OGame.catTmp, "Result", ((iScoreCounter.prValue + iOppScore) + iGame.TimeBonusScore)); UI.OWResults[6][6] = SStrings.getString("strNextLevel"); UI.iMP.Turn(["wrl", (UI.iGAME.prLevel % OLLevels.LevelCount), int((UI.iGAME.prLevel / OLLevels.LevelCount)), UI.iGAME.prPlayerName, iGame.prRecord]); iITimer = getTimer(); this.AddInfo(OInterface.OIObjectMake(UI.OWGameCL), true); UI.iGAME.NextLevel(); AddAllSpr(); OSound.PlaySound(UI.OSBubbleBang03); iGame.Field.alpha = 0.3; break; case stLevelNotComplete: UI.iGAME.Write(OGame.catTmp, "Score", iScoreCounter.prValue); UI.iGAME.Write(OGame.catTmp, "TimeBonus", 0); UI.iGAME.Write(OGame.catTmp, "Bonus", 0); UI.iGAME.Write(OGame.catTmp, "Result", iScoreCounter.prValue); if (iGame.Score > 0){ UI.iMP.Turn(["wrl", (UI.iGAME.prLevel % OLLevels.LevelCount), int((UI.iGAME.prLevel / OLLevels.LevelCount)), UI.iGAME.prPlayerName, iGame.prRecord]); }; iITimer = getTimer(); this.AddInfo(OInterface.OIObjectMake(UI.OWGameNCL), true); UI.iGAME.NextLevel(); AddAllSpr(); OSound.PlaySound(UI.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; case stWaitUpSell: if ((((UI.iGAME.prLevel == UI.firstAdLevel)) && (UI.showAD))){ 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; OGBitmapFactory.BookUpSell.prVisible = true; this.AddInfo(new OWUpSell()); } else { if (((((UI.iGAME.prLevel % UI.numAdLevels) == ((UI.firstAdLevel + UI.numAdLevels) % UI.numAdLevels))) && (UI.showAD))){ 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; OGBitmapFactory.BookUpSell.prVisible = true; this.AddInfo(new OWUpSell()); }; }; break; }; } 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 TimeEnd(_arg1:Array):void{ if (iGTimer.State != OGTimer.stSplashBorder){ iGTimer.State = OGTimer.stSplashBorder; }; } private function CurrentObjectSound(_arg1:Array):void{ OSound.PlaySound(UI.OSBubbleBang01); } 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; }; }; } } }//package MAIN.WINDOWS
Section 107
//OWHighScores (MAIN.WINDOWS.OWHighScores) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import ENGINE.GAME.*; public class OWHighScores extends ODialog { public var iType:OListBox; public var iClear:OButton; public var iTable:OTab; public var iPublish:OButton; public var iClose:OButton; public var iGlobal:OButton; public function OWHighScores(){ var _local1:OScoreParams; var _local2:int; while (_local2 < 5) { _local1 = UI.iGAME.GetLocalScores(0, _local2); UI.OWHighScoreLocalM[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : ""; UI.OWHighScoreLocalM[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : ""; _local1 = UI.iGAME.GetPersonalScores(0, _local2); UI.OWHighScorePersonalM[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : ""; UI.OWHighScorePersonalM[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : ""; _local2++; }; super(UI.OWHighScores); } 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){ OApplication.sInstance.OnPress(null, UI.miDeleteScoresConfirm); this.prActive = false; this.prVisible = false; return; }; OApplication.sInstance.OnPress(null, UI.miCommingSoon); this.prActive = false; } override public function set prActive(_arg1:Boolean):void{ var _local2:OScoreParams; if (_arg1){ _local2 = UI.iGAME.GetLocalScores(0, 0); if (!_local2){ (iTable.getChildAt(0) as OSprite).Free(); }; _local2 = UI.iGAME.GetPersonalScores(0, 0); if (!_local2){ (iTable.getChildAt(1) as OSprite).Free(); }; }; super.prActive = _arg1; } 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 MAIN.WINDOWS
Section 108
//OWInfoPanel (MAIN.WINDOWS.OWInfoPanel) package MAIN.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import flash.utils.*; import MAIN.OBJECTS.*; import MAIN.UTIL.*; import flash.net.*; public class OWInfoPanel extends OIObject { private var iOpponent:String; private var iScore:int; private var iMode:int; private var iTDelta:int; private var iInfo:OInfoObject; private var iTimer:int; 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 prScore(_arg1:int):void{ this.iScore = _arg1; } 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: UI.OWInfoP[0][2] = 20; UI.OWInfoP[0][3] = UI.OWInfoColors[0]; UI.OWInfoP[0][6] = 110; UI.OWInfoP[0][4] = (((((SStrings.getString("strOpponent1") + "\n") + this.iOpponent) + "\n") + SStrings.getString("strOpponent2")) as String).toLowerCase(); this.InitObject(UI.OWInfoP); this.iTimer = getTimer(); break; case stOpponent: UI.OWInfoPPlayer[0][4] = this.iOpponent.toLowerCase(); this.InitObject(UI.OWInfoPPlayer); break; case stEndLevel: UI.OWInfoP[0][2] = 20; UI.OWInfoP[0][6] = 35; UI.OWInfoP[0][4] = (((this.iOpponent + SStrings.getString("strLevelScore")) + this.iScore) as String).toLowerCase(); this.InitObject(UI.OWInfoP); this.iTimer = getTimer(); break; case stCompleteLevel: UI.OWInfoP[0][2] = 20; UI.OWInfoP[0][6] = 35; UI.OWInfoP[0][4] = (((this.iOpponent + SStrings.getString("strCompleteLevel")) + this.iScore) as String).toLowerCase(); this.InitObject(UI.OWInfoP); this.iTimer = getTimer(); break; case stFailedLevel: UI.OWInfoP[0][2] = 20; UI.OWInfoP[0][6] = 35; UI.OWInfoP[0][4] = (((this.iOpponent + SStrings.getString("strFailedLevel")) + this.iScore) as String).toLowerCase(); this.InitObject(UI.OWInfoP); this.iTimer = getTimer(); break; }; } override public function OnPress(_arg1:Event, _arg2):void{ var _local3:String; switch ((this.iMode % 3)){ case 0: _local3 = UI.strConnect1URL; break; case 1: _local3 = UI.strConnect2URL; break; case 2: _local3 = UI.strConnect3URL; break; }; var _local4:URLRequest = new URLRequest(_local3); navigateToURL(_local4); } private function ShowConnect():void{ var _local1:int = UI.OWInfoColors[((this.iMode + 2) % UI.OWInfoColors.length)]; switch ((this.iMode % 3)){ case 0: UI.OWInfoPConnect[0][4] = SStrings.getString("strConnect1").toLowerCase(); UI.OWInfoPConnect[0][6] = 40; UI.OWInfoPConnect[1][6] = SStrings.getString("strPlayOnline1"); break; case 1: UI.OWInfoPConnect[0][4] = SStrings.getString("strConnect2").toLowerCase(); UI.OWInfoPConnect[0][6] = 40; UI.OWInfoPConnect[1][6] = SStrings.getString("strMoreGames1"); break; case 2: UI.OWInfoPConnect[0][4] = (SStrings.getString("strConnect3").toLowerCase() + UI.strGameName.toLocaleLowerCase()); UI.OWInfoPConnect[0][6] = 40; UI.OWInfoPConnect[1][6] = SStrings.getString("strSendMail"); break; }; this.InitObject(UI.OWInfoPConnect); } 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 Init():void{ super.Init(); } 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; }; } private function ShowUserNotFound():void{ var _local1:String; var _local3:Array; var _local4:Array; _local1 = UI.iMP.prOpponentTurn; UI.iMP.ClearOpponentTurn(true); UI.iMP.Turn(["rdr"]); if (_local1){ _local3 = _local1.split(/,/); if ((((((_local3.length == 2)) || ((_local3[1] == "")))) || (isNaN(_local3[2])))){ return; }; }; iTDelta = 30000; var _local2:int = UI.OWInfoColors[Math.round((Math.random() * (UI.OWInfoColors.length - 1)))]; switch ((this.iMode % 5)){ case 0: UI.OWInfoPUserNotFound[0][4] = UI.iMP.prUsersCount.toString().toLowerCase(); UI.OWInfoPUserNotFound[0][6] = 40; UI.OWInfoPUserNotFound[1][6] = (UI.OWInfoPUserNotFound[0][6] + 50); UI.OWInfoPUserNotFound[1][4] = SStrings.getString("strPlayersOnline1").toLowerCase(); break; default: if (!_local1){ return; }; _local4 = _local1.split(/,/); UI.OWInfoPUserNotFound[0][4] = ((int(_local4[0]) + 1).toString() + SStrings.getString("strPlace")).toLowerCase(); UI.OWInfoPUserNotFound[0][6] = 40; UI.OWInfoPUserNotFound[1][6] = (UI.OWInfoPUserNotFound[0][6] + 50); UI.OWInfoPUserNotFound[1][4] = ((_local4[1].toString() + SStrings.getString("strHasReiting")) + _local4[2].toString()).toLowerCase(); break; }; this.InitObject(UI.OWInfoPUserNotFound); } override public function Free():void{ this.iInfo = null; super.Free(); } public function set prOpponent(_arg1:String):void{ this.iOpponent = _arg1; } } }//package MAIN.WINDOWS
Section 109
//OWInGameMenu (MAIN.WINDOWS.OWInGameMenu) package MAIN.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import flash.utils.*; import flash.net.*; public class OWInGameMenu extends OWindow { public var btnMoreGames:OButton; public var btnInstructions:OButton; public var btnResume:OButton; public var btnOptions:OButton; public var btnMainMenu:OButton; public static const BTN_INSTRUCTIONS:int = 2; public static const BTN_MAIN_MENU:int = 4; public static const BTN_NONE:int = -1; public static const BTN_RESUME:int = 0; public static const BTN_MORE_GAMES:int = 3; public static const BTN_OPTIONS:int = 1; public static var PRESS_BTN:int = 0; public function OWInGameMenu(){ OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_NONE; super(UI.OWInGameMenuParam); } override public function OnPress(_arg1:Event, _arg2):void{ switch (_arg2){ case this.btnResume: trace("Press -> InGameMenu -> Resume"); OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_RESUME; this.SetVisible(false); break; case this.btnOptions: trace("Press -> InGameMenu -> Options"); OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_OPTIONS; OApplication.sInstance.prMenuItem = UI.miOptions; this.prActive = false; break; case this.btnInstructions: trace("Press -> InGameMenu -> Instructions"); OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_INSTRUCTIONS; OApplication.sInstance.prMenuItem = UI.miInstructions; this.prActive = false; break; case this.btnMoreGames: trace("Press -> InGameMenu -> More Games"); OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_MORE_GAMES; navigateToURL(new URLRequest(UI.strConnect2URL)); break; case this.btnMainMenu: trace(("Press -> InGameMenu -> Main Menu" + getTimer())); OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_MAIN_MENU; OApplication.sInstance.prMenuItem = UI.miLastWindow; this.prVisible = false; break; }; } } }//package MAIN.WINDOWS
Section 110
//OWInstruction (MAIN.WINDOWS.OWInstruction) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import MAIN.OBJECTS.SENDRECEIVE.*; import MAIN.OBJECTS.OGAME.*; public class OWInstruction extends OWindow { private const iTestPlayProgram1:Array; private const iTestPlayProgram2:Array; private const iTestPlayProgram3:Array; public var iInfoText:OIObject; public var iClose:OButton; public var iGraphics:OBitmap; private var iPlayIndex:int;// = 0 private var iTimer:int; private var list:Array; private var iDemo:OWDemo; private var iIsOWGame:Boolean; public var iBorder:OBitmap; private var iReceiver:OReceiver; private static const stNone:int = 0; private static const stPlay:int = 1; public function OWInstruction(){ 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(UI.OWInstructions); } override public function Free():void{ super.Free(); if (iDemo){ iDemo.Free(); iDemo = null; }; } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iClose){ this.removeChild(OGBitmapFactory.PlayBook2); OApplication.sInstance.OnPress(null, UI.miLastWindow); this.prVisible = false; }; } override public function OnEnterFrame(_arg1:Event):void{ switch (State){ case stPlay: if (iDemo.State == OWDemo.stEnd){ State = stPlay; }; break; }; } private function ChangeText(_arg1:Array):void{ UI.OWInstructionsInfo[0][0][4] = UI.OWInstructionsText[iPlayIndex]; UI.OWInstructions[2][1] = UI.OWInstructionsInfo[0]; if (iInfoText){ this.removeChild(iInfoText); iInfoText = UI.OWInstructions[2][0](UI.OWInstructions[2]); this.addChild(iInfoText); }; iPlayIndex++; if (iPlayIndex > (UI.OWInstructionsText.length - 1)){ iPlayIndex = 0; }; } 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, UI.OWInstructionsInfo[iPlayIndex], null, 25, 440, null, 0, true]); this.addChild(iInfoText); iDemo.Play(list[iPlayIndex]); iPlayIndex++; if (iPlayIndex > 2){ iPlayIndex = 0; }; break; }; } override public function Init():void{ this.addChild(OGBitmapFactory.PlayBook2); OGBitmapFactory.PlayBook2.y = 0; 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)); var _local1:OBitmap = 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; State = stNone; } } }//package MAIN.WINDOWS
Section 111
//OWIntro (MAIN.WINDOWS.OWIntro) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import MAIN.OBJECTS.OGAME.*; public class OWIntro extends OWindow { public var iFooter:OBitmap; public var iVersion:OBitmap; public var iHit:OSprite; public var iName:Array; public var iAlpha:Array; public var iHeader:OBitmap; private var iTimer:Number; 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(UI.OWIntroParam); } 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 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; }; } 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 Free():void{ super.Free(); this.iHeader = null; this.iFooter = null; this.iName = null; } override public function Init():void{ this.iName = new Array(); super.Init(); this.iHeader.alpha = 0; this.iFooter.alpha = 0; this.iVersion.alpha = 0; var _local1:int = this.iName.length; this.iAlpha = new Array(_local1); var _local2:int; 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; } } }//package MAIN.WINDOWS
Section 112
//OWLanguage (MAIN.WINDOWS.OWLanguage) package MAIN.WINDOWS { import flash.events.*; import ENGINE.INTERFACE.*; import MAIN.OBJECTS.OGAME.*; import MAIN.UTIL.*; public class OWLanguage extends OWindow { public var btnChange:OButton; public var iListBox:OListBox; public var btnCancel:OButton; public function OWLanguage(){ super(UI.OWLanguageParam); } override public function Init():void{ var _local1:int; var _local2:int; var _local3:Array; (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.Book2); (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.NamePlus2); (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.LoopOnBook2); (OApplication.sInstance as Mysteriez2).iLayerAPI.visible = false; super.Init(); _local3 = new Array(); _local2 = 0; _local1 = 0; while (_local1 < SConfig.list_language.length) { if (SConfig.list_language[_local1][0] == SConfig.language){ _local2 = _local1; }; _local3.push(SConfig.list_language[_local1][2]); _local1++; }; this.iListBox.SetCurrentElement(_local3[_local2], _local3); } private function ChangeLanguage():void{ var _local1:String; _local1 = SConfig.language; SConfig.language = SConfig.list_language[this.iListBox.prCurrentInd][0]; if (SConfig.language != _local1){ if (UI.iMP.isConnected){ UI.iMP.disconnect(); }; if (SPanelSysButtons.sInstance != null){ SPanelSysButtons.sInstance.RefreshLanguage(); }; OApplication.sInstance.prMenuItem = UI.miMenu; UI.ReInit(); (OApplication.sInstance as Mysteriez2).InitAd(); (OApplication.sInstance as Mysteriez2).CloseAllWindows(); } else { OApplication.sInstance.prMenuItem = UI.miLastWindow; this.prVisible = false; }; } override public function OnPress(_arg1:Event, _arg2):void{ switch (_arg2){ case this.btnChange: this.ChangeLanguage(); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.Book2); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.NamePlus2); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.LoopOnBook2); (OApplication.sInstance as Mysteriez2).iLayerAPI.visible = true; break; case this.btnCancel: OApplication.sInstance.prMenuItem = UI.miLastWindow; this.prVisible = false; (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.Book2); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.NamePlus2); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.LoopOnBook2); (OApplication.sInstance as Mysteriez2).iLayerAPI.visible = true; break; }; super.OnPress(_arg1, _arg2); } } }//package MAIN.WINDOWS
Section 113
//OWLoadProgress (MAIN.WINDOWS.OWLoadProgress) package MAIN.WINDOWS { import ENGINE.INTERFACE.*; public class OWLoadProgress extends OIObject { public var iProgress:OCounter; public function OWLoadProgress(_arg1:Array=null, _arg2:Array=null){ super(UI.OWLoadProgress, _arg2); } } }//package MAIN.WINDOWS
Section 114
//OWMenu (MAIN.WINDOWS.OWMenu) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import flash.utils.*; import ENGINE.CORE.*; import MAIN.UTIL.*; import flash.net.*; import ENGINE.SMARTFOX.*; public class OWMenu extends ODialog { public var iPlayOnlineStrategy:OButton; public var iPlayers:OIObject; public var iMoreGames:OButton; public var iTextChange:OBitmap; public var iCPlayers:OCounter; public var iTimer:int; public var iBName:OButton; public var iLevelEditor:OButton; public var iHighScores:OButton; public var iInstructions:OButton; public var iOptions:OButton; public var iInfo:OIObject; public function OWMenu(){ super(UI.OWMenu); } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iBName){ OApplication.sInstance.OnPress(null, UI.miChoosePlayer); this.prVisible = false; return; }; if (_arg2 == this.iPlayOnlineStrategy){ OApplication.sInstance.OnPress(null, UI.miGameMP); UI.GameType = UI.STRATEGY; this.prVisible = false; return; }; if (_arg2 == this.iLevelEditor){ OApplication.sInstance.OnPress(null, UI.miLevelEditor); UI.GameType = UI.STRATEGY; this.prVisible = false; return; }; if (_arg2 == this.iOptions){ OApplication.sInstance.OnPress(null, UI.miOptions); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iInstructions){ OApplication.sInstance.OnPress(null, UI.miInstructions); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iHighScores){ OApplication.sInstance.OnPress(null, UI.miHighScores); this.prActive = false; this.prVisible = false; return; }; if (_arg2 == this.iMoreGames){ navigateToURL(new URLRequest(UI.sURLSite)); return; }; OApplication.sInstance.OnPress(null, UI.miCommingSoon); this.prActive = false; } 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 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(); } override public function OnEnterFrame(_arg1:Event):void{ if (this.iCPlayers.prValue != UI.iMP.prUsersCount){ if (UI.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 = UI.iMP.prUsersCount; }; var _local2:int = getTimer(); if ((_local2 - this.iTimer) > 30000){ ShowUserReiting(false); }; super.OnEnterFrame(_arg1); } override public function set prActive(_arg1:Boolean):void{ super.prActive = _arg1; } override public function set prVisible(_arg1:Boolean):void{ super.prVisible = _arg1; } private function ShowUserReiting(_arg1:Boolean):void{ if (_arg1){ UI.iMP.ClearOpponentTurn(true); UI.OWMenuReiting[0][4] = ((UI.iGAME.prPlayerName + SStrings.getString("strReiting2").toLowerCase()) + UI.iGAME.prScore.toString()); this.InitObject(UI.OWMenuReiting); }; this.iTimer = getTimer(); if (UI.iMP.State != OMultiplayer.stInZone){ return; }; var _local2:String = UI.iMP.prOpponentTurn; UI.iMP.ClearOpponentTurn(true); UI.iMP.Turn(["rdr"]); if (!_local2){ return; }; var _local3:Array = _local2.split(/,/); if ((((_local3[1] == "")) || (isNaN(_local3[2])))){ return; }; UI.OWMenuReiting[0][4] = (((((int(_local3[0]) + 1).toString() + SStrings.getString("strReiting1")) + _local3[1]) + SStrings.getString("strReiting2")) + _local3[2]); this.InitObject(UI.OWMenuReiting); } override public function Init():void{ UI.OWMenu[0][4] = ((SStrings.getString("strWelcome") + " ") + UI.iGAME.prPlayerName); super.Init(); if (UI.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 = UI.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); if (OGlobal.prStage.displayState == StageDisplayState.FULL_SCREEN){ this.iTextChange.visible = false; this.iBName.SetVisible(false); }; } } }//package MAIN.WINDOWS
Section 115
//OWOptions (MAIN.WINDOWS.OWOptions) package MAIN.WINDOWS { import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import flash.system.*; import MAIN.OBJECTS.OGAME.*; import ENGINE.CORE.*; import flash.net.*; import flash.external.*; public class OWOptions extends OWDialog { public var iCancel:OButton; public var iFullScreen:OListBox; public var iSound:OListBox; public var iAccept:OButton; private var iSResList:Array; private var iSRes:Array; public var iMusic:OListBox; public function OWOptions(){ super(UI.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 OnPress(_arg1:Event, _arg2):void{ if (_arg2 == this.iCancel){ (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.Book3); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.NamePlus3); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.LoopOnBook3); this.prVisible = false; return; }; if (_arg2 == this.iAccept){ (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.Book3); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.NamePlus3); (OApplication.sInstance as Mysteriez2).iLayerWindow.removeChild(OGBitmapFactory.LoopOnBook3); this.prVisible = false; UI.iGAME.prSoundVolume = (this.iSound.prCurrentInd / 10); UI.iGAME.prMusicVolume = (this.iMusic.prCurrentInd / 10); UI.iGAME.prFullScreen = (this.iFullScreen.prCurrentInd) ? true : false; this.AnalisFullscreen(); return; }; } override public function Init():void{ var _local6:Number; (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.Book3); (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.NamePlus3); (OApplication.sInstance as Mysteriez2).iLayerWindow.addChild(OGBitmapFactory.LoopOnBook3); super.Init(); this.iSound.prCurrentInd = int((UI.iGAME.prSoundVolume * 10)); this.iMusic.prCurrentInd = int((UI.iGAME.prMusicVolume * 10)); this.InitResolutions(); var _local1:int = OGlobal.prStage.stageWidth; var _local2:int = OGlobal.prStage.stageHeight; var _local3:Number = 10000; var _local4:int; var _local5:int; 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; } 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); } 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 AnalisFullscreen():void{ if (stage == null){ return; }; try { if ((((UI.iGAME.prFullScreen == true)) && ((stage.displayState == StageDisplayState.FULL_SCREEN)))){ return; }; if ((((UI.iGAME.prFullScreen == false)) && (!((stage.displayState == StageDisplayState.FULL_SCREEN))))){ return; }; if (UI.iGAME.prFullScreen == true){ stage.displayState = StageDisplayState.FULL_SCREEN; } else { stage.displayState = StageDisplayState.NORMAL; }; } catch(e:Error) { trace("ERROR (OWOptions) -> CHANGE DISPLAY STATE"); }; } } }//package MAIN.WINDOWS
Section 116
//OWResults (MAIN.WINDOWS.OWResults) package MAIN.WINDOWS { import ENGINE.DISPLAY.*; import flash.events.*; import ENGINE.INTERFACE.*; import flash.utils.*; import ENGINE.GAME.*; import MAIN.OBJECTS.TEXTBUTTON.*; import ENGINE.CORE.*; import flash.net.*; public class OWResults extends OAlert { public var iSubmit:OMButton; private var iDelta:Number;// = 0.025 private var iWInd:int;// = 0 private var iTimer:Timer; 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 = UI.iGAME.Read(OGame.catTmp, "Score"); UI.OWResultsLevelScore[1][5] = _local1.toString(); _local1 = UI.iGAME.Read(OGame.catTmp, "TimeBonus"); UI.OWResultsTimeBonusScore[1][5] = _local1.toString(); _local1 = UI.iGAME.Read(OGame.catTmp, "Bonus"); UI.OWResultsBonusScore[1][5] = _local1.toString(); _local1 = UI.iGAME.Read(OGame.catTmp, "Result"); UI.OWResultsTotalScore[1][5] = _local1.toString(); UI.iGAME.AddScore(_local1); UI.iGAME.AddScoreInTable(_local1); var _local2:int = UI.iGAME.prMode; UI.iGAME.prMode = 0; UI.iGAME.AddScore(_local1); UI.iGAME.AddScoreInTable(_local1); UI.iGAME.prMode = _local2; var _local3:int = UI.iGAME.prScore; UI.OWResultsRaiting[1][4] = _local3.toString(); if (!(((UI.iGAME.prPlayerName == "")) || (isNaN(_local3)))){ UI.iMP.Turn(["wrr", UI.iGAME.prPlayerName, _local3]); }; super(UI.OWResults, null); } override public function OnPress(_arg1:Event, _arg2):void{ switch (_arg2){ case this.iSubmit: SendScores(); return; }; super.OnPress(_arg1, _arg2); } 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; if (Partner.P_SubmitScore){ (this.getChildAt(8) as OIObject).prVisible = true; }; OSound.PlaySoundInd(1); OGlobal.prStage.addEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); break; }; } private function SendScores():void{ var _local1:URLRequest = new URLRequest(UI.sURLRating); var _local2:URLVariables = new URLVariables(); _local1.method = URLRequestMethod.POST; _local2.gamename = UI.strGameName.replace("!", "").toLowerCase(); _local2.game = UI.sZone.toLowerCase(); _local2.user = UI.iGAME.prPlayerName; _local2.score = UI.OWResultsTotalScore[1][5]; _local2.level = UI.iGAME.prLevel; _local2.lang = UI.sLang; _local1.data = _local2; navigateToURL(_local1, "_blank"); } override public function Free():void{ this.iTimer.stop(); this.iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); this.iTimer = null; super.Free(); } override public function Init():void{ super.Init(); if (!Partner.P_SubmitScore){ iSubmit.prVisible = false; (iButtons[0] as OMButton).prX = (400 + ((400 - ((iButtons[0] as OMButton).width / OGlobal.Scale)) / 2)); }; this.Pos(0, 0); this.iTimer = new Timer(500, 8); this.iTimer.addEventListener(TimerEvent.TIMER, OnTimer); this.iTimer.start(); } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); } private function OnKeyDown(_arg1:KeyboardEvent):void{ this.prVisible = false; OGlobal.prStage.removeEventListener(KeyboardEvent.KEY_DOWN, OnKeyDown); } } }//package MAIN.WINDOWS
Section 117
//OWUpSell (MAIN.WINDOWS.OWUpSell) package MAIN.WINDOWS { import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import MAIN.OBJECTS.OGAME.*; import flash.net.*; public class OWUpSell extends ODialog { public var iContinue:OButton; public var iOptions:OButton; public var iDownloadMore:OButton; public var iUpButton:SimpleButton; public function OWUpSell(){ super(UI.OWUpSell, null); iUpButton = OGBitmapFactory.ButUpSell; iUpButton.addEventListener(MouseEvent.CLICK, onClick); } override public function OnPress(_arg1:Event, _arg2):void{ switch (_arg2){ case iOptions: OGBitmapFactory.BookUpSell.SetVisible(false); OGBitmapFactory.PlayBook.prVisible = true; this.prVisible = false; break; default: break; }; } public function onClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(UI.downloadableURL)); } } }//package MAIN.WINDOWS
Section 118
//MochiAd (Mochi.mochi.as3.MochiAd) package Mochi.mochi.as3 { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; import flash.net.*; public class MochiAd { public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:5500, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType == "application"){ return (_local2); }; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:5500, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var clip:Object; var mc:MovieClip; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!(clip is DisplayObject)){ trace("Warning: Object passed as container clip not a descendant of the DisplayObject type"); return (null); }; if (MovieClip(clip).stage == null){ trace("Warning: Container clip for ad is not attached to the stage"); return (null); }; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; var depth:Number = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; } else { trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal"); }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{ trace("[MochiAds] Blocked URL"); }); if (!options.skip){ loader.load(req); }; mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.right - _local3.left); _local5 = (_local3.top - _local3.bottom); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:5500, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }, progress_override:function (_arg1:Object):Number{ return (NaN); }, bar_offset:0}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; if (options.skip){ ad_timeout = 0; }; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = (10 + options.bar_offset); bar.y = (h - 20); }; var bar_w:Number = ((w - bar.x) - 10); var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(bar_w, 0); backing.lineTo(bar_w, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo(bar_w, 0); inside.lineTo(bar_w, 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(bar_w, 0); outline.lineTo(bar_w, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var progress:Number = Math.min(1, options.progress_override(clip)); var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; if (!isNaN(progress)){ complete = (progress == 1); } else { if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){ complete = true; } else { if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local12:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; var _local7:Number = Math.min(1, options.progress_override(_local1)); if (_local7 == 1){ complete = true; }; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local8:Number = ((100 * _local6) / _local5); if (!isNaN(_local7)){ _local8 = (100 * _local7); }; var _local9:Number = ((100 * _local3) / chk.ad_msec); var _local10:Object = this._mochiad_bar._inside; var _local11:Number = Math.min(100, Math.min(((_local8) || (0)), _local9)); _local11 = Math.max(this.last_pcnt, _local11); this.last_pcnt = _local11; _local10.scaleX = (_local11 * 0.01); options.ad_progress(_local11); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8}); if (_local8 >= 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local12 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (unloaded){ MochiAd.unload(_local1); } else { if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package Mochi.mochi.as3
Section 119
//MochiCoins (Mochi.mochi.as3.MochiCoins) package Mochi.mochi.as3 { public class MochiCoins { public static const STORE_HIDE:String = "StoreHide"; public static const NO_USER:String = "NoUser"; public static const IO_ERROR:String = "IOError"; public static const ITEM_NEW:String = "ItemNew"; public static const ITEM_OWNED:String = "ItemOwned"; public static const STORE_ITEMS:String = "StoreItems"; public static const ERROR:String = "Error"; public static const STORE_SHOW:String = "StoreShow"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static var _inventory:MochiInventory; public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function getStoreItems():void{ MochiServices.send("coins_getStoreItems"); } public static function get inventory():MochiInventory{ return (_inventory); } public static function showStore(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showStore", {options:_arg1}, null, null); } public static function requestFunding(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestFunding", _arg1); } public static function showItem(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showItem call must pass an Object with an item key"); return; }; MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showItem", {options:_arg1}, null, null); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showVideo(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showVideo call must pass an Object with an item key"); return; }; MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showVideo", {options:_arg1}, null, null); } addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{ _inventory = new MochiInventory(); }); addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{ _inventory = null; }); } }//package Mochi.mochi.as3
Section 120
//MochiDigits (Mochi.mochi.as3.MochiDigits) package Mochi.mochi.as3 { public final class MochiDigits { private var Sibling:MochiDigits; private var Fragment:Number; private var Encoder:Number; public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{ Encoder = 0; setValue(_arg1, _arg2); } public function reencode():void{ var _local1:uint = int((2147483647 * Math.random())); Fragment = (Fragment ^ (_local1 ^ Encoder)); Encoder = _local1; } public function set value(_arg1:Number):void{ setValue(_arg1); } public function toString():String{ var _local1:String = String.fromCharCode((Fragment ^ Encoder)); if (Sibling != null){ _local1 = (_local1 + Sibling.toString()); }; return (_local1); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); Fragment = (_local3.charCodeAt(_temp1) ^ Encoder); if (_arg2 < _local3.length){ Sibling = new MochiDigits(_arg1, _arg2); } else { Sibling = null; }; reencode(); } public function get value():Number{ return (Number(this.toString())); } public function addValue(_arg1:Number):void{ value = (value + _arg1); } } }//package Mochi.mochi.as3
Section 121
//MochiEventDispatcher (Mochi.mochi.as3.MochiEventDispatcher) package Mochi.mochi.as3 { public class MochiEventDispatcher { private var eventTable:Object; public function MochiEventDispatcher():void{ eventTable = {}; } public function triggerEvent(_arg1:String, _arg2:Object):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ return; }; for (_local3 in eventTable[_arg1]) { var _local6 = eventTable[_arg1]; _local6[_local3](_arg2); }; } public function removeEventListener(_arg1:String, _arg2:Function):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ eventTable[_arg1] = []; return; }; for (_local3 in eventTable[_arg1]) { if (eventTable[_arg1][_local3] != _arg2){ } else { eventTable[_arg1].splice(Number(_local3), 1); }; }; } public function addEventListener(_arg1:String, _arg2:Function):void{ removeEventListener(_arg1, _arg2); eventTable[_arg1].push(_arg2); } } }//package Mochi.mochi.as3
Section 122
//MochiEvents (Mochi.mochi.as3.MochiEvents) package Mochi.mochi.as3 { import flash.display.*; public class MochiEvents { public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL"; public static const FORMAT_LONG:String = "LongForm"; public static const ALIGN_BOTTOM:String = "ALIGN_B"; public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived"; public static const FORMAT_SHORT:String = "ShortForm"; public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR"; public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR"; public static const ALIGN_TOP:String = "ALIGN_T"; public static const ALIGN_LEFT:String = "ALIGN_L"; public static const ALIGN_RIGHT:String = "ALIGN_R"; public static const ALIGN_TOP_LEFT:String = "ALIGN_TL"; public static const ALIGN_CENTER:String = "ALIGN_C"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); private static var gameStart:Number; private static var levelStart:Number; public static function endPlay():void{ MochiServices.send("events_clearRoundID", null, null, null); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function trackEvent(_arg1:String, _arg2=null):void{ MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function startSession(_arg1:String):void{ MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{ var _local4:Object; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; _local3.clip = _arg1; MochiServices.send("events_setNotifications", _local3, null, null); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function startPlay(_arg1:String="gameplay"):void{ MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null); } } }//package Mochi.mochi.as3
Section 123
//MochiInventory (Mochi.mochi.as3.MochiInventory) package Mochi.mochi.as3 { import flash.events.*; import flash.utils.*; public dynamic class MochiInventory extends Proxy { private var _timer:Timer; private var _names:Array; private var _syncID:Number; private var _consumableProperties:Object; private var _storeSync:Object; private var _outstandingID:Number; private var _syncPending:Boolean; public static const READY:String = "InvReady"; public static const ERROR:String = "Error"; public static const IO_ERROR:String = "IoError"; private static const KEY_SALT:String = " syncMaint"; public static const WRITTEN:String = "InvWritten"; public static const NOT_READY:String = "InvNotReady"; public static const VALUE_ERROR:String = "InvValueError"; private static const CONSUMER_KEY:String = "MochiConsumables"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public function MochiInventory():void{ MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned); MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems); MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn); MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut); _storeSync = new Object(); _syncPending = false; _outstandingID = 0; _syncID = 0; _timer = new Timer(1000); _timer.addEventListener(TimerEvent.TIMER, sync); _timer.start(); if (MochiSocial.loggedIn){ loggedIn(); } else { loggedOut(); }; } private function newItems(_arg1:Object):void{ if (!this[(_arg1.id + KEY_SALT)]){ this[(_arg1.id + KEY_SALT)] = 0; }; if (!this[_arg1.id]){ this[_arg1.id] = 0; }; this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count); this[_arg1.id] = (this[_arg1.id] + _arg1.count); if (((_arg1.privateProperties) && (_arg1.privateProperties.consumable))){ if (!this[_arg1.privateProperties.tag]){ this[_arg1.privateProperties.tag] = 0; }; this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count)); }; } public function release():void{ MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems); MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn); MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return (-1); }; if (_consumableProperties[_arg1]){ return (MochiDigits(_consumableProperties[_arg1]).value); }; return (undefined); } private function loggedIn(_arg1:Object=null):void{ MochiUserData.get(CONSUMER_KEY, getConsumableBag); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{ if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return (false); }; if (_consumableProperties[_arg1] == undefined){ return (false); }; return (true); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1)); } private function putConsumableBag(_arg1:MochiUserData):void{ _syncPending = false; if (_arg1.error){ triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error}); _outstandingID = -1; }; triggerEvent(WRITTEN, {}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:MochiDigits; if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return; }; if (!(_arg2 is Number)){ triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2}); return; }; if (_consumableProperties[_arg1]){ _local3 = MochiDigits(_consumableProperties[_arg1]); if (_local3.value == _arg2){ return; }; _local3.value = _arg2; } else { _names.push(_arg1); _consumableProperties[_arg1] = new MochiDigits(_arg2); }; _syncID++; } private function itemOwned(_arg1:Object):void{ _storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count}; } private function sync(_arg1:Event=null):void{ var _local3:String; if (((_syncPending) || ((_syncID == _outstandingID)))){ return; }; _outstandingID = _syncID; var _local2:Object = {}; for (_local3 in _consumableProperties) { _local2[_local3] = MochiDigits(_consumableProperties[_local3]).value; }; MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag); _syncPending = true; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return (_names[(_arg1 - 1)]); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{ if (!_consumableProperties[_arg1]){ return (false); }; _names.splice(_names.indexOf(_arg1), 1); delete _consumableProperties[_arg1]; return (true); } private function getConsumableBag(_arg1:MochiUserData):void{ var _local2:String; var _local3:Number; if (_arg1.error){ triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error}); return; }; _consumableProperties = {}; _names = new Array(); if (_arg1.data){ for (_local2 in _arg1.data) { _names.push(_local2); _consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]); }; }; for (_local2 in _storeSync) { _local3 = _storeSync[_local2].count; if (_consumableProperties[(_local2 + KEY_SALT)]){ _local3 = (_local3 - _consumableProperties[(_local2 + KEY_SALT)].value); }; if (_local3 == 0){ } else { newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties}); }; }; triggerEvent(READY, {}); } private function loggedOut(_arg1:Object=null):void{ _consumableProperties = null; } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } } }//package Mochi.mochi.as3
Section 124
//MochiServices (Mochi.mochi.as3.MochiServices) package Mochi.mochi.as3 { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import flash.system.*; import flash.net.*; public class MochiServices { public static const CONNECTED:String = "onConnected"; private static var _container:Object; private static var _connected:Boolean = false; private static var _queue:Array; private static var _swfVersion:String; private static var _preserved:Object; public static var netupAttempted:Boolean = false; private static var _sendChannel:LocalConnection; private static var _nextCallbackID:Number; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _services:String = "services.swf"; private static var _servURL:String = "http://www.mochiads.com/static/lib/services/"; public static var widget:Boolean = false; private static var _timer:Timer; private static var _sendChannelName:String; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); private static var _callbacks:Object; private static var _connecting:Boolean = false; private static var _mochiLocalConnection:MovieClip; private static var _listenChannelName:String = "__ms_"; public static var onError:Object; public static var netup:Boolean = true; private static var _mochiLC:String = "MochiLC.swf"; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get connected():Boolean{ return (_connected); } private static function onReceive(_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = _callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete _callbacks[cb]; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1)); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID}); }; if (_clip != null){ if (_callbacks != null){ _callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _nextCallbackID++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time)); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } private static function detach(_arg1:Event):void{ var _local2:LoaderInfo = LoaderInfo(_arg1.target); _local2.removeEventListener(Event.COMPLETE, detach); _local2.removeEventListener(IOErrorEvent.IO_ERROR, detach); _local2.removeEventListener(Event.COMPLETE, loadLCBridgeComplete); _local2.removeEventListener(IOErrorEvent.IO_ERROR, loadError); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } private static function loadLCBridgeComplete(_arg1:Event):void{ var _local2:Loader = LoaderInfo(_arg1.target).loader; _mochiLocalConnection = MovieClip(_local2.content); listen(); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _mochiLocalConnection.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, connectWait); _timer = null; } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; if (Security.sandboxType != "application"){ Security.allowDomain("*"); Security.allowInsecureDomain("*"); }; if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType != "application"){ Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; }; return (_local2); } public static function getVersion():String{ return ("3.9.2 as3"); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); } public static function warnID(_arg1:String, _arg2:Boolean):void{ _arg1 = _arg1.toLowerCase(); if (_arg1.length != 16){ trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length")); return; } else { if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ trace("WARNING: Using testing board ID"); } else { trace("WARNING: Using testing board ID as game ID"); }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ trace("WARNING: Using testing game ID as board ID"); } else { trace("WARNING: Using testing game ID"); }; return; }; }; }; var _local3:Number = 0; while (_local3 < _arg1.length) { switch (_arg1.charAt(_local3)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "a": case "b": case "c": case "d": case "e": case "f": break; default: trace(("WARNING: Board ID contains illegal characters: " + _arg1)); return; }; _local3++; }; } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (((_clip) && (_queue))){ while (_queue.length > 0) { _local2 = _queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _callbacks[_local2.callbackID]; }; delete _callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; } public static function get id():String{ return (_id); } private static function onEvent(_arg1:Object):void{ var _local2:String = _arg1.target; var _local3:String = _arg1.event; switch (_local2){ case "services": MochiServices.triggerEvent(_arg1.event, _arg1.args); break; case "events": MochiEvents.triggerEvent(_arg1.event, _arg1.args); break; case "coins": MochiCoins.triggerEvent(_arg1.event, _arg1.args); break; case "social": MochiSocial.triggerEvent(_arg1.event, _arg1.args); break; }; } private static function urlOptions(_arg1:Object):Object{ var _local3:String; var _local4:Array; var _local5:Number; var _local6:Array; var _local2:Object = {}; if (_arg1.stage){ _local3 = _arg1.stage.loaderInfo.parameters.mochiad_options; } else { _local3 = _arg1.loaderInfo.parameters.mochiad_options; }; if (_local3){ _local4 = _local3.split("&"); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].split("="); _local2[unescape(_local6[0])] = unescape(_local6[1]); _local5++; }; }; return (_local2); } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var avm1Click:DisplayObject; var x:String; var req:URLRequest; var loader:Loader; var setURL:Function; var err:Function; var complete:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); var s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://link.mochiads.com/linkping.swf"); loader = new Loader(); setURL = function (_arg1:String):void{ if (avm1Click){ btn.removeChild(avm1Click); }; avm1Click = clickMovie(_arg1, onClick); var _local2:Rectangle = btn.getBounds(btn); btn.addChild(avm1Click); avm1Click.x = _local2.x; avm1Click.y = _local2.y; avm1Click.scaleX = (0.01 * _local2.width); avm1Click.scaleY = (0.01 * _local2.height); }; err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); setURL(burl); }; complete = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; if (netup){ setURL((url + s)); } else { setURL(burl); }; if (!((netupAttempted) || (_connected))){ netupAttempted = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_clip.parent){ _clip.parent.removeChild(_clip); }; if (_arg1 != null){ if ((_arg1 is DisplayObjectContainer)){ _container = _arg1; }; }; if (_arg2){ if ((_container is DisplayObjectContainer)){ DisplayObjectContainer(_container).addChild(_clip); }; }; } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } private static function loadError(_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); } public static function get childClip():Object{ return (_clip); } private static function initComChannels():void{ if (!_connected){ trace("[SERVICES_API] connected!"); _connecting = false; _connected = true; _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _clip.onReceive = onReceive; _clip.onEvent = onEvent; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; while (_queue.length > 0) { _mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift()); }; }; } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } private static function listen():void{ _mochiLocalConnection.connect(_listenChannelName); _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; trace("Waiting for MochiAds services to connect..."); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } private static function loadLCBridge(_arg1:Object):void{ var _local2:Loader = new Loader(); var _local3:String = (_servURL + _mochiLC); var _local4:URLRequest = new URLRequest(_local3); _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, detach); _local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach); _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadLCBridgeComplete); _local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); _local2.load(_local4); _arg1.addChild(_local2); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; if (urlOptions(_arg2).servURL){ _servURL = urlOptions(_arg2).servURL; }; var _local3:String = (_servURL + _services); if (urlOptions(_arg2).servicesURL){ _local3 = urlOptions(_arg2).servicesURL; }; _listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999)))); MochiServices.allowDomains(_local3); _clip = new MovieClip(); loadLCBridge(_clip); _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, detach); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); var _local4:URLRequest = new URLRequest(_local3); var _local5:URLVariables = new URLVariables(); _local5.listenLC = _listenChannelName; _local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options; _local5.api_version = getVersion(); if (widget){ _local5.widget = true; }; _local4.data = _local5; _loader.load(_local4); _clip.addChild(_loader); _sendChannel = new LocalConnection(); _queue = []; _nextCallbackID = 0; _callbacks = {}; _timer = new Timer(10000, 1); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); return (_clip); } public static function get clip():Object{ return (_container); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; warnID(id, false); if ((clip is DisplayObject)){ if (clip.stage == null){ trace("MochiServices connect requires the containing clip be attached to the stage"); }; if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function bringToTop(_arg1:Event=null):void{ var e = _arg1; if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; } public static function connectWait(_arg1:TimerEvent):void{ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load. (timeout)"); MochiServices.disconnect(); MochiServices.onError("IOError"); } else { _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, connectWait); _timer = null; }; } } }//package Mochi.mochi.as3
Section 125
//MochiSocial (Mochi.mochi.as3.MochiSocial) package Mochi.mochi.as3 { public class MochiSocial { public static const LOGGED_IN:String = "LoggedIn"; public static const ACTION_CANCELED:String = "onCancel"; public static const PROPERTIES_SIZE:String = "PropertiesSize"; public static const IO_ERROR:String = "IOError"; public static const NO_USER:String = "NoUser"; public static const FRIEND_LIST:String = "FriendsList"; public static const PROFILE_DATA:String = "ProfileData"; public static const GAMEPLAY_DATA:String = "GameplayData"; public static const ACTION_COMPLETE:String = "onComplete"; public static const LOGIN_SHOW:String = "LoginShow"; public static const PROFILE_HIDE:String = "ProfileHide"; public static const USER_INFO:String = "UserInfo"; public static const PROPERTIES_SAVED:String = "PropertySaved"; public static const WIDGET_LOADED:String = "WidgetLoaded"; public static const ERROR:String = "Error"; public static const LOGGED_OUT:String = "LoggedOut"; public static const PROFILE_SHOW:String = "ProfileShow"; public static const LOGIN_HIDE:String = "LoginHide"; public static const LOGIN_SHOWN:String = "LoginShown"; public static var _user_info:Object = null; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static function requestFan(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestFan", _arg1); } public static function postToStream(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_postToStream", _arg1); } public static function getFriendsList(_arg1:Object=null):void{ MochiServices.send("social_getFriendsList", _arg1); } public static function requestLogin(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestLogin", _arg1); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function saveUserProperties(_arg1:Object):void{ MochiServices.send("social_saveUserProperties", _arg1); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function inviteFriends(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_inviteFriends", _arg1); } public static function get loggedIn():Boolean{ return (!((_user_info == null))); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function showLoginWidget(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_showLoginWidget", {options:_arg1}); } public static function getAPIURL():String{ if (!_user_info){ return (null); }; return (_user_info.api_url); } public static function hideLoginWidget():void{ MochiServices.send("social_hideLoginWidget"); } public static function getAPIToken():String{ if (!_user_info){ return (null); }; return (_user_info.api_token); } MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{ _user_info = _arg1; }); MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{ _user_info = null; }); } }//package Mochi.mochi.as3
Section 126
//MochiUserData (Mochi.mochi.as3.MochiUserData) package Mochi.mochi.as3 { import flash.events.*; import flash.utils.*; import flash.net.*; public class MochiUserData extends EventDispatcher { public var callback:Function;// = null public var operation:String;// = null public var error:Event;// = null public var data;// = null public var _loader:URLLoader; public var key:String;// = null public function MochiUserData(_arg1:String="", _arg2:Function=null){ this.key = _arg1; this.callback = _arg2; } public function serialize(_arg1):ByteArray{ var _local2:ByteArray = new ByteArray(); _local2.objectEncoding = ObjectEncoding.AMF3; _local2.writeObject(_arg1); _local2.compress(); return (_local2); } public function errorHandler(_arg1:IOErrorEvent):void{ data = null; error = _arg1; if (callback != null){ performCallback(); } else { dispatchEvent(_arg1); }; close(); } public function putEvent(_arg1):void{ request("put", serialize(_arg1)); } public function deserialize(_arg1:ByteArray){ _arg1.objectEncoding = ObjectEncoding.AMF3; _arg1.uncompress(); return (_arg1.readObject()); } public function securityErrorHandler(_arg1:SecurityErrorEvent):void{ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString()))); } public function getEvent():void{ request("get", serialize(null)); } override public function toString():String{ return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]")); } public function performCallback():void{ try { callback(this); } catch(e:Error) { trace(("[MochiUserData] exception during callback: " + e)); }; } public function request(_arg1:String, _arg2:ByteArray):void{ var _operation = _arg1; var _data = _arg2; operation = _operation; var api_url:String = MochiSocial.getAPIURL(); var api_token:String = MochiSocial.getAPIToken(); if ((((api_url == null)) || ((api_token == null)))){ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in")); return; }; _loader = new URLLoader(); var args:URLVariables = new URLVariables(); args.op = _operation; args.key = key; var req:URLRequest = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString())); req.method = URLRequestMethod.POST; req.contentType = "application/x-mochi-userdata"; req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)]; req.data = _data; _loader.dataFormat = URLLoaderDataFormat.BINARY; _loader.addEventListener(Event.COMPLETE, completeHandler); _loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); _loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); try { _loader.load(req); } catch(e:SecurityError) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString()))); }; } public function completeHandler(_arg1:Event):void{ var event = _arg1; try { if (_loader.data.length){ data = deserialize(_loader.data); } else { data = null; }; } catch(e:Error) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString()))); return; }; if (callback != null){ performCallback(); } else { dispatchEvent(event); }; close(); } public function close():void{ if (_loader){ _loader.removeEventListener(Event.COMPLETE, completeHandler); _loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); _loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _loader.close(); _loader = null; }; error = null; callback = null; } public static function get(_arg1:String, _arg2:Function):void{ var _local3:MochiUserData = new MochiUserData(_arg1, _arg2); _local3.getEvent(); } public static function put(_arg1:String, _arg2, _arg3:Function):void{ var _local4:MochiUserData = new MochiUserData(_arg1, _arg3); _local4.putEvent(_arg2); } } }//package Mochi.mochi.as3
Section 127
//OMochiAd (Mochi.OMochiAd) package Mochi { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.utils.*; import ENGINE.CORE.*; import Mochi.mochi.as3.*; public class OMochiAd extends Ad { protected var iClickAvayAdShowTime:int; protected var bClickAvayAd:Boolean; protected var iClip:MovieClip; protected var iTimer:Timer; protected var iClickAvayAdPosY:Number; protected var iClickAvayAdPosX:Number; protected var iMochiID:String; public function OMochiAd(_arg1:uint=0, _arg2:String="test", _arg3:Boolean=false, _arg4:int=10, _arg5:Number=250, _arg6:Number=7){ super(_arg1); iMochiID = _arg2; bClickAvayAd = _arg3; iClickAvayAdShowTime = (_arg4 * 1000); iClickAvayAdPosX = _arg5; iClickAvayAdPosY = _arg6; this.iRect = new Rectangle(0, 0, 300, 250); } protected function OnTimer(_arg1:TimerEvent=null):void{ AdFinished(); } override public function ShowInterLevelAd(_arg1:Function):void{ super.ShowInterLevelAd(_arg1); this.iClip = new MovieClip(); this.iApp.addChild(this.iClip); if (!bClickAvayAd){ MochiAd.showInterLevelAd({clip:this.iClip, id:this.iMochiID, ad_finished:this.AdFinished, ad_failed:this.ad_failed, ad_skipped:this.ad_skipped}); } else { this.iClip.y = iClickAvayAdPosY; this.iClip.x = (((800 * OGlobal.Scale) - 300) / 2); iTimer = new Timer(iClickAvayAdShowTime, 1); iTimer.addEventListener(TimerEvent.TIMER, OnTimer); iTimer.start(); MochiAd.showClickAwayAd({clip:this.iClip, id:this.iMochiID, ad_failed:this.OnTimer, ad_skipped:this.ad_skipped}); }; } private function ad_skipped():void{ trace("Mochi ad_skipped"); } override protected function AdFinished():void{ trace("AdFinished"); if (iTimer){ iTimer.stop(); iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); iTimer = null; }; if (this.iClip){ MochiAd.unload(this.iClip); this.iApp.removeChild(this.iClip); this.iClip = null; }; super.AdFinished(); } override public function ShowEndGameAd(_arg1:Function):void{ _arg1(); } override public function ShowPreGameAd(_arg1:Function):void{ super.ShowPreGameAd(_arg1); this.iClip = new MovieClip(); this.iApp.addChild(this.iClip); MochiAd.showPreGameAd({clip:this.iClip, id:this.iMochiID, ad_finished:this.AdFinished, ad_failed:this.ad_failed, ad_skipped:this.ad_skipped, res:((Math.round((800 * OGlobal.Scale)).toString() + "x") + Math.round((600 * OGlobal.Scale)).toString())}); } private function ad_failed():void{ trace("Mochi ad_failed"); } override public function GetName():String{ return (AdNames.AD_MOCHI); } } }//package Mochi
Section 128
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "3.6.0.21751"; 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 129
//ButtonAsset (mx.core.ButtonAsset) package mx.core { public class ButtonAsset extends FlexSimpleButton implements IFlexAsset, IFlexDisplayObject { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.6.0.21751"; public function ButtonAsset(){ _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 130
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.6.0.21751"; } }//package mx.core
Section 131
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.6.0.21751"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 132
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "3.6.0.21751"; 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 133
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.6.0.21751"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 134
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.6.0.21751"; 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 135
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.6.0.21751"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 136
//FlexSimpleButton (mx.core.FlexSimpleButton) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSimpleButton extends SimpleButton { mx_internal static const VERSION:String = "3.6.0.21751"; public function FlexSimpleButton(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 137
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.6.0.21751"; 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 138
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.6.0.21751"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 139
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 140
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 141
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 142
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; import flash.media.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 143
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 144
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 145
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { import flash.utils.*; public interface IFlexModuleFactory { function get preloadedRSLs():Dictionary; function allowInsecureDomain(... _args):void; function create(... _args):Object; function allowDomain(... _args):void; function info():Object; } }//package mx.core
Section 146
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 147
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 148
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 149
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 150
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 151
//ISWFBridgeGroup (mx.core.ISWFBridgeGroup) package mx.core { import flash.events.*; public interface ISWFBridgeGroup { function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider; function removeChildBridge(_arg1:IEventDispatcher):void; function get parentBridge():IEventDispatcher; function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void; function set parentBridge(_arg1:IEventDispatcher):void; function containsBridge(_arg1:IEventDispatcher):Boolean; function getChildBridges():Array; } }//package mx.core
Section 152
//ISWFBridgeProvider (mx.core.ISWFBridgeProvider) package mx.core { import flash.events.*; public interface ISWFBridgeProvider { function get childAllowsParent():Boolean; function get swfBridge():IEventDispatcher; function get parentAllowsChild():Boolean; } }//package mx.core
Section 153
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 154
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.6.0.21751"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 155
//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 156
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.6.0.21751"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 157
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.6.0.21751"; } }//package mx.core
Section 158
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.6.0.21751"; 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; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 159
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 160
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.6.0.21751"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 161
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.6.0.21751"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 162
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.6.0.21751"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 163
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import mx.core.*; import flash.geom.*; import flash.filters.*; import mx.utils.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.6.0.21751"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 164
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function moveFocus(_arg1:String, _arg2:DisplayObject=null):void; function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function removeSWFBridge(_arg1:IEventDispatcher):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 165
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 166
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 167
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 168
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 169
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import flash.geom.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function set focusPane(_arg1:Sprite):void; function get toolTipChildren():IChildList; function useSWFBridge():Boolean; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function deployMouseShields(_arg1:Boolean):void; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void; function getSandboxRoot():DisplayObject; function get swfBridgeGroup():ISWFBridgeGroup; function removeFocusManager(_arg1:IFocusManagerContainer):void; function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function get document():Object; function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function getTopLevelRoot():DisplayObject; function removeChildBridge(_arg1:IEventDispatcher):void; function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function isTopLevel():Boolean; function isTopLevelRoot():Boolean; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle; } }//package mx.managers
Section 170
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var changingListenersInOtherSystemManagers:Boolean; public static var bootstrapLoaderInfoURL:String; public static var showMouseCursor:Boolean; public static var dispatchingEventToOtherSystemManagers:Boolean; } }//package mx.managers
Section 171
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 172
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.6.0.21751"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.events.*; import flash.net.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ var _local4:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local4 = new ModuleEvent(ModuleEvent.PROGRESS); _local4.bytesLoaded = info.size; _local4.bytesTotal = info.size; dispatchEvent(_local4); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2, _arg3); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); loader.content.removeEventListener("error", moduleErrorHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); loader.content.addEventListener("error", moduleErrorHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{ var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.loadBytes(_arg2, _local3); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_arg3){ loadBytes(_arg1, _arg3); return; }; if (_url.indexOf("published://") == 0){ return; }; var _local4:URLRequest = new URLRequest(_url); var _local5:LoaderContext = new LoaderContext(); _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (((!((_arg2 == null))) && ((Security.sandboxType == Security.REMOTE)))){ _local5.securityDomain = _arg2; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local4, _local5); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function moduleErrorHandler(_arg1:Event):void{ var _local2:ModuleEvent; _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); if ((_arg1 is ModuleEvent)){ _local2 = ModuleEvent(_arg1); } else { _local2 = new ModuleEvent(ModuleEvent.ERROR); }; dispatchEvent(_local2); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.READY); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(_local2); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 173
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 174
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 175
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function getPreferredLocaleChain():Array; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function initializeLocaleChain(_arg1:Array):void; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 176
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 177
//LocaleSorter (mx.resources.LocaleSorter) package mx.resources { public class LocaleSorter { mx_internal static const VERSION:String = "3.6.0.21751"; private static function normalizeLocale(_arg1:String):String{ return (_arg1.toLowerCase().replace(/-/g, "_")); } public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{ var result:Array; var hasLocale:Object; var i:int; var j:int; var k:int; var l:int; var locale:String; var plocale:LocaleID; var appLocales = _arg1; var systemPreferences = _arg2; var ultimateFallbackLocale = _arg3; var addAll = _arg4; var promote:Function = function (_arg1:String):void{ if (typeof(hasLocale[_arg1]) != "undefined"){ result.push(appLocales[hasLocale[_arg1]]); delete hasLocale[_arg1]; }; }; result = []; hasLocale = {}; var locales:Array = trimAndNormalize(appLocales); var preferenceLocales:Array = trimAndNormalize(systemPreferences); addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale); j = 0; while (j < locales.length) { hasLocale[locales[j]] = j; j = (j + 1); }; i = 0; l = preferenceLocales.length; while (i < l) { plocale = LocaleID.fromString(preferenceLocales[i]); promote(preferenceLocales[i]); promote(plocale.toString()); while (plocale.transformToParent()) { promote(plocale.toString()); }; plocale = LocaleID.fromString(preferenceLocales[i]); j = 0; while (j < l) { locale = preferenceLocales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; j = 0; k = locales.length; while (j < k) { locale = locales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; i = (i + 1); }; if (addAll){ j = 0; k = locales.length; while (j < k) { promote(locales[j]); j = (j + 1); }; }; return (result); } private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{ var _local3:String; if (((!((_arg2 == null))) && (!((_arg2 == ""))))){ _local3 = normalizeLocale(_arg2); if (_arg1.indexOf(_local3) == -1){ _arg1.push(_local3); }; }; } private static function trimAndNormalize(_arg1:Array):Array{ var _local2:Array = []; var _local3:int; while (_local3 < _arg1.length) { _local2.push(normalizeLocale(_arg1[_local3])); _local3++; }; return (_local2); } } }//package mx.resources class LocaleID { private var privateLangs:Boolean;// = false private var script:String;// = "" private var variants:Array; private var privates:Array; private var extensions:Object; private var lang:String;// = "" private var region:String;// = "" private var extended_langs:Array; public static const STATE_PRIMARY_LANGUAGE:int = 0; public static const STATE_REGION:int = 3; public static const STATE_EXTENDED_LANGUAGES:int = 1; public static const STATE_EXTENSIONS:int = 5; public static const STATE_SCRIPT:int = 2; public static const STATE_VARIANTS:int = 4; public static const STATE_PRIVATES:int = 6; private function LocaleID(){ extended_langs = []; variants = []; extensions = {}; privates = []; super(); } public function equals(_arg1:LocaleID):Boolean{ return ((toString() == _arg1.toString())); } public function canonicalize():void{ var _local1:String; for (_local1 in extensions) { if (extensions.hasOwnProperty(_local1)){ if (extensions[_local1].length == 0){ delete extensions[_local1]; } else { extensions[_local1] = extensions[_local1].sort(); }; }; }; extended_langs = extended_langs.sort(); variants = variants.sort(); privates = privates.sort(); if (script == ""){ script = LocaleRegistry.getScriptByLang(lang); }; if ((((script == "")) && (!((region == ""))))){ script = LocaleRegistry.getScriptByLangAndRegion(lang, region); }; if ((((region == "")) && (!((script == ""))))){ region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); }; } public function toString():String{ var _local2:String; var _local1:Array = [lang]; appendElements(_local1, extended_langs); if (script != ""){ _local1.push(script); }; if (region != ""){ _local1.push(region); }; appendElements(_local1, variants); for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1.push(_local2); appendElements(_local1, extensions[_local2]); }; }; if (privates.length > 0){ _local1.push("x"); appendElements(_local1, privates); }; return (_local1.join("_")); } public function isSiblingOf(_arg1:LocaleID):Boolean{ return ((((lang == _arg1.lang)) && ((script == _arg1.script)))); } public function transformToParent():Boolean{ var _local2:String; var _local3:Array; var _local4:String; if (privates.length > 0){ privates.splice((privates.length - 1), 1); return (true); }; var _local1:String; for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1 = _local2; }; }; if (_local1){ _local3 = extensions[_local1]; if (_local3.length == 1){ delete extensions[_local1]; return (true); }; _local3.splice((_local3.length - 1), 1); return (true); }; if (variants.length > 0){ variants.splice((variants.length - 1), 1); return (true); }; if (script != ""){ if (LocaleRegistry.getScriptByLang(lang) != ""){ script = ""; return (true); }; if (region == ""){ _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); if (_local4 != ""){ region = _local4; script = ""; return (true); }; }; }; if (region != ""){ if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){ region = ""; return (true); }; }; if (extended_langs.length > 0){ extended_langs.splice((extended_langs.length - 1), 1); return (true); }; return (false); } private static function appendElements(_arg1:Array, _arg2:Array):void{ var _local3:uint; var _local4:uint = _arg2.length; while (_local3 < _local4) { _arg1.push(_arg2[_local3]); _local3++; }; } public static function fromString(_arg1:String):LocaleID{ var _local5:Array; var _local8:String; var _local9:int; var _local10:String; var _local2:LocaleID = new (LocaleID); var _local3:int = STATE_PRIMARY_LANGUAGE; var _local4:Array = _arg1.replace(/-/g, "_").split("_"); var _local6:int; var _local7:int = _local4.length; while (_local6 < _local7) { _local8 = _local4[_local6].toLowerCase(); if (_local3 == STATE_PRIMARY_LANGUAGE){ if (_local8 == "x"){ _local2.privateLangs = true; } else { if (_local8 == "i"){ _local2.lang = (_local2.lang + "i-"); } else { _local2.lang = (_local2.lang + _local8); _local3 = STATE_EXTENDED_LANGUAGES; }; }; } else { _local9 = _local8.length; if (_local9 == 0){ } else { _local10 = _local8.charAt(0).toLowerCase(); if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){ _local2.extended_langs.push(_local8); if (_local2.extended_langs.length == 3){ _local3 = STATE_SCRIPT; }; } else { if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){ _local2.script = _local8; _local3 = STATE_REGION; } else { if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){ _local2.region = _local8; _local3 = STATE_VARIANTS; } else { if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){ _local2.variants.push(_local8); _local3 = STATE_VARIANTS; } else { if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){ if (_local8 == "x"){ _local3 = STATE_PRIVATES; _local5 = _local2.privates; } else { _local3 = STATE_EXTENSIONS; _local5 = ((_local2.extensions[_local8]) || ([])); _local2.extensions[_local8] = _local5; }; } else { if (_local3 >= STATE_EXTENSIONS){ _local5.push(_local8); }; }; }; }; }; }; }; }; _local6++; }; _local2.canonicalize(); return (_local2); } } class LocaleRegistry { private static const SCRIPT_ID_BY_LANG:Object = {ab:5, af:1, am:2, ar:3, as:4, ay:1, be:5, bg:5, bn:4, bs:1, ca:1, ch:1, cs:1, cy:1, da:1, de:1, dv:6, dz:7, el:8, en:1, eo:1, es:1, et:1, eu:1, fa:3, fi:1, fj:1, fo:1, fr:1, frr:1, fy:1, ga:1, gl:1, gn:1, gu:9, gv:1, he:10, hi:11, hr:1, ht:1, hu:1, hy:12, id:1, in:1, is:1, it:1, iw:10, ja:13, ka:14, kk:5, kl:1, km:15, kn:16, ko:17, la:1, lb:1, ln:1, lo:18, lt:1, lv:1, mg:1, mh:1, mk:5, ml:19, mo:1, mr:11, ms:1, mt:1, my:20, na:1, nb:1, nd:1, ne:11, nl:1, nn:1, no:1, nr:1, ny:1, om:1, or:21, pa:22, pl:1, ps:3, pt:1, qu:1, rn:1, ro:1, ru:5, rw:1, sg:1, si:23, sk:1, sl:1, sm:1, so:1, sq:1, ss:1, st:1, sv:1, sw:1, ta:24, te:25, th:26, ti:2, tl:1, tn:1, to:1, tr:1, ts:1, uk:5, ur:3, ve:1, vi:1, wo:1, xh:1, yi:10, zu:1, cpe:1, dsb:1, frs:1, gsw:1, hsb:1, kok:11, mai:11, men:1, nds:1, niu:1, nqo:27, nso:1, son:1, tem:1, tkl:1, tmh:1, tpi:1, tvl:1, zbl:28}; private static const SCRIPTS:Array = ["", "latn", "ethi", "arab", "beng", "cyrl", "thaa", "tibt", "grek", "gujr", "hebr", "deva", "armn", "jpan", "geor", "khmr", "knda", "kore", "laoo", "mlym", "mymr", "orya", "guru", "sinh", "taml", "telu", "thai", "nkoo", "blis", "hans", "hant", "mong", "syrc"]; private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {bg:{5:"bg"}, ca:{1:"es"}, zh:{30:"tw", 29:"cn"}, cs:{1:"cz"}, da:{1:"dk"}, de:{1:"de"}, el:{8:"gr"}, en:{1:"us"}, es:{1:"es"}, fi:{1:"fi"}, fr:{1:"fr"}, he:{10:"il"}, hu:{1:"hu"}, is:{1:"is"}, it:{1:"it"}, ja:{13:"jp"}, ko:{17:"kr"}, nl:{1:"nl"}, nb:{1:"no"}, pl:{1:"pl"}, pt:{1:"br"}, ro:{1:"ro"}, ru:{5:"ru"}, hr:{1:"hr"}, sk:{1:"sk"}, sq:{1:"al"}, sv:{1:"se"}, th:{26:"th"}, tr:{1:"tr"}, ur:{3:"pk"}, id:{1:"id"}, uk:{5:"ua"}, be:{5:"by"}, sl:{1:"si"}, et:{1:"ee"}, lv:{1:"lv"}, lt:{1:"lt"}, fa:{3:"ir"}, vi:{1:"vn"}, hy:{12:"am"}, az:{1:"az", 5:"az"}, eu:{1:"es"}, mk:{5:"mk"}, af:{1:"za"}, ka:{14:"ge"}, fo:{1:"fo"}, hi:{11:"in"}, ms:{1:"my"}, kk:{5:"kz"}, ky:{5:"kg"}, sw:{1:"ke"}, uz:{1:"uz", 5:"uz"}, tt:{5:"ru"}, pa:{22:"in"}, gu:{9:"in"}, ta:{24:"in"}, te:{25:"in"}, kn:{16:"in"}, mr:{11:"in"}, sa:{11:"in"}, mn:{5:"mn"}, gl:{1:"es"}, kok:{11:"in"}, syr:{32:"sy"}, dv:{6:"mv"}, nn:{1:"no"}, sr:{1:"cs", 5:"cs"}, cy:{1:"gb"}, mi:{1:"nz"}, mt:{1:"mt"}, quz:{1:"bo"}, tn:{1:"za"}, xh:{1:"za"}, zu:{1:"za"}, nso:{1:"za"}, se:{1:"no"}, smj:{1:"no"}, sma:{1:"no"}, sms:{1:"fi"}, smn:{1:"fi"}, bs:{1:"ba"}}; private static const SCRIPT_BY_ID:Object = {latn:1, ethi:2, arab:3, beng:4, cyrl:5, thaa:6, tibt:7, grek:8, gujr:9, hebr:10, deva:11, armn:12, jpan:13, geor:14, khmr:15, knda:16, kore:17, laoo:18, mlym:19, mymr:20, orya:21, guru:22, sinh:23, taml:24, telu:25, thai:26, nkoo:27, blis:28, hans:29, hant:30, mong:31, syrc:32}; private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {zh:{cn:29, sg:29, tw:30, hk:30, mo:30}, mn:{cn:31, sg:5}, pa:{pk:3, in:22}, ha:{gh:1, ne:1}}; private function LocaleRegistry(){ } public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{ var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1]; if (_local3 == null){ return (""); }; var _local4:Object = _local3[_arg2]; if (_local4 == null){ return (""); }; return (SCRIPTS[int(_local4)].toLowerCase()); } public static function getScriptByLang(_arg1:String):String{ var _local2:Object = SCRIPT_ID_BY_LANG[_arg1]; if (_local2 == null){ return (""); }; return (SCRIPTS[int(_local2)].toLowerCase()); } public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{ var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1]; var _local4:Object = SCRIPT_BY_ID[_arg2]; if ((((_local3 == null)) || ((_local4 == null)))){ return (""); }; return (((_local3[int(_local4)]) || (""))); } }
Section 178
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.6.0.21751"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 179
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.6.0.21751"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ try { instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); } catch(e:Error) { instance = new ResourceManagerImpl(); }; }; return (instance); } } }//package mx.resources
Section 180
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.6.0.21751"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function getPreferredLocaleChain():Array{ return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function initializeLocaleChain(_arg1:Array):void{ localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true); } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } private function getSystemPreferredLocales():Array{ var _local1:Array; if (Capabilities["languages"]){ _local1 = Capabilities["languages"]; } else { _local1 = [Capabilities.language]; }; return (_local1); } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ var _local4:Array; var _local5:int; var _local6:int; var _local7:String; var _local8:String; var _local3:ResourceModuleInfo = resourceModules[_arg1]; if (!_local3){ return; }; if (_local3.resourceModule){ _local4 = _local3.resourceModule.resourceBundles; if (_local4){ _local5 = _local4.length; _local6 = 0; while (_local6 < _local5) { _local7 = _local4[_local6].locale; _local8 = _local4[_local6].bundleName; removeResourceBundle(_local7, _local8); _local6++; }; }; }; resourceModules[_arg1] = null; delete resourceModules[_arg1]; _local3.moduleInfo.unload(); if (_arg2){ this.update(); }; } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 181
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.skins.*; import mx.graphics.*; import mx.utils.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.6.0.21751"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = Math.max((radius - Math.max(_local6.top, _local6.left, _local6.right)), 0); _local10 = (bRoundedCorners) ? Math.max((radius - Math.max(_local6.bottom, _local6.left, _local6.right)), 0) : 0; radiusObj = {tl:_local9, tr:_local9, bl:_local10, br:_local10}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local11 = getStyle("highlightAlphas"); _local12 = (_local11) ? _local11[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local12, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 182
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.6.0.21751"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); if (_local3){ blendMode = _local3; }; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 183
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.6.0.21751"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 184
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.display.*; import mx.core.*; import flash.geom.*; import mx.styles.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.6.0.21751"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return ((_styleName) ? _styleName.getStyle(_arg1) : null); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 185
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import flash.display.*; import mx.core.*; import flash.geom.*; import flash.utils.*; import mx.styles.*; import flash.system.*; import mx.resources.*; import flash.net.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.6.0.21751"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ if (((((_backgroundImageBounds) && (_arg1))) && (_backgroundImageBounds.equals(_arg1)))){ return; }; _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 186
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import mx.managers.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.6.0.21751"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 187
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 188
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 189
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 190
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 191
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 192
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.6.0.21751"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 193
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.6.0.21751"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 194
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.6.0.21751"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 195
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.6.0.21751"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 196
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.6.0.21751"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 197
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.6.0.21751"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 198
//OWellgamesAd (WellgamesAd.OWellgamesAd) package WellgamesAd { import flash.events.*; import flash.display.*; import flash.utils.*; import ENGINE.AD.*; public class OWellgamesAd extends Ad { protected var flag_show_top:Boolean; protected var iShowTimeSeconds:int;// = 10 protected var iX:int; protected var iY:int; protected var flag_show_bottom:Boolean; protected var iTimer:Timer; protected var iWidth:int; protected var sBannerID:String; protected var iListLang:Array; protected var iHeight:int; public function OWellgamesAd(_arg1:String, _arg2:Array, _arg3:int=0, _arg4:int=10, _arg5:int=0, _arg6:int=0, _arg7:int=800, _arg8:int=260){ super(_arg3); this.sBannerID = _arg1; this.iListLang = _arg2; this.iShowTimeSeconds = _arg4; this.iX = _arg5; this.iY = _arg6; this.iWidth = _arg7; this.iHeight = _arg8; this.flag_show_top = false; this.flag_show_bottom = false; } protected function RemoveBanners():void{ if (this.flag_show_top == true){ OAdBanners.RemoveTBanner(iApp); }; if (this.flag_show_bottom == true){ OAdBanners.RemoveBBanner(iApp); }; } override public function ShowInterLevelAd(_arg1:Function):void{ super.ShowInterLevelAd(_arg1); iTimer = new Timer((iShowTimeSeconds * 1000), 1); iTimer.addEventListener(TimerEvent.TIMER, OnTimer); iTimer.start(); AddBanners(); } protected function OnTimer(_arg1:TimerEvent=null):void{ AdFinished(); } override protected function AdFinished():void{ if (this.iTimer != null){ iTimer.stop(); iTimer.removeEventListener(TimerEvent.TIMER, OnTimer); iTimer = null; }; RemoveBanners(); super.AdFinished(); } override public function ShowPreGameAd(_arg1:Function):void{ _arg1(); } protected function AddBanners():void{ if (this.flag_show_top == true){ OAdBanners.AddTBanner(iApp, iX, iY, iWidth, iHeight); }; if (this.flag_show_bottom == true){ OAdBanners.AddBBanner(iApp, iX, (600 - iHeight), iWidth, iHeight); }; } override public function ShowEndGameAd(_arg1:Function):void{ _arg1(); } override public function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void{ var _local3:int; var _local4:int; super.Init(_arg1, _arg2); if ((((this.iListLang == null)) || ((this.iListLang.length == 0)))){ return; }; _local4 = 0; _local3 = 0; while (_local3 < this.iListLang.length) { if (_arg2.toLowerCase() == String(this.iListLang[_local3][0]).toLowerCase()){ _local4 = _local3; break; }; _local3++; }; this.flag_show_top = !((this.iListLang[_local4][1][0] == null)); if (this.flag_show_top == true){ OAdBanners.InitTBanner(this.iListLang[_local4][1][0], sBannerID); }; this.flag_show_bottom = !((this.iListLang[_local4][1][1] == null)); if (this.flag_show_bottom == true){ OAdBanners.InitBBanner(this.iListLang[_local4][1][1], sBannerID); }; } override public function GetName():String{ return (AdNames.AD_WELLGAMES); } } }//package WellgamesAd
Section 199
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 200
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 201
//_advancedDataGridStylesStyle (_advancedDataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _advancedDataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".advancedDataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".advancedDataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 202
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 203
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 204
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 205
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 206
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 207
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 208
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 209
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 210
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 211
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 212
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 213
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 214
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 215
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 216
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 217
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 218
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 219
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 220
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 221
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 222
//Ad (Ad) package { import flash.display.*; import flash.geom.*; import flash.utils.*; public class Ad implements IAd { protected var iCbfnAdFinished:Function; protected var iLastTime:int; protected var bInit:Boolean; protected var iLanguage:String; protected var iDelay:uint; protected var iShowState:Boolean; protected var iRect:Rectangle; protected var iApp:DisplayObjectContainer; public function Ad(_arg1:uint=0){ iDelay = (_arg1 * 1000); iLastTime = -1; bInit = false; } public function KillAd():void{ if (iShowState){ AdFinished(); }; } public function ShowInterLevelAd(_arg1:Function):void{ iLastTime = getTimer(); iShowState = true; iCbfnAdFinished = _arg1; } public function ShowEndGameAd(_arg1:Function):void{ iLastTime = getTimer(); iShowState = true; iCbfnAdFinished = _arg1; } protected function AdFinished():void{ trace("[Ad.as] -> AdFinished()"); iShowState = false; if (iCbfnAdFinished != null){ iCbfnAdFinished(); iCbfnAdFinished = null; }; } public function ShowPreGameAd(_arg1:Function):void{ iLastTime = getTimer(); iShowState = true; iCbfnAdFinished = _arg1; } public function GetName():String{ return (""); } public function getRect():Rectangle{ return (this.iRect); } public function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void{ this.iCbfnAdFinished = null; this.KillAd(); this.iLanguage = _arg2; bInit = true; this.iApp = _arg1; } public function DelayComplete():Boolean{ if (iLastTime == -1){ return (true); }; return (((getTimer() - iLastTime) >= iDelay)); } } }//package
Section 223
//AdNames (AdNames) package { public class AdNames { public static const AD_CPMSTAR:String = "cpmstar"; public static const AD_WELLGAMES:String = "wellgames"; public static const AD_ALFY:String = "alfy"; public static const AD_MOCHI:String = "mochi"; } }//package
Section 224
//AdRotator (AdRotator) package { import flash.display.*; import flash.geom.*; public class AdRotator { private var iCurPreGameAd:Ad; private var iPreGameAds:AdsList; private var iCurInterLevelAd:Ad; private var iEndGameAds:AdsList; private var iLanguage:String; private var iCurEndGameAd:Ad; private var iInterLevelAds:AdsList; public function AdRotator(_arg1:Array=null, _arg2:Array=null, _arg3:Array=null){ iPreGameAds = new AdsList(_arg1); iInterLevelAds = new AdsList(_arg2); iEndGameAds = new AdsList(_arg3); this.iLanguage = "en"; } public function getInterLevelRect():Rectangle{ if (this.iCurInterLevelAd == null){ return (null); }; return (this.iCurInterLevelAd.getRect()); } public function KillEndGameAd():void{ if (iCurEndGameAd){ iCurEndGameAd.KillAd(); }; } public function GetNameInterLevelAD():String{ if (this.iCurInterLevelAd == null){ return (""); }; return (this.iCurInterLevelAd.GetName()); } public function ShowInterLevelAd(_arg1:Function=null):void{ if (((iInterLevelAds.Valid) && (iInterLevelAds.SetAd()))){ iCurInterLevelAd = iInterLevelAds.CurAd; iCurInterLevelAd.ShowInterLevelAd(_arg1); iInterLevelAds.NextAd(); } else { if (_arg1 != null){ _arg1(); }; }; } public function KillInterLevelAd():void{ if (iCurInterLevelAd){ iCurInterLevelAd.KillAd(); }; } public function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void{ this.iLanguage = _arg2; if (iPreGameAds.Valid){ iPreGameAds.Init(_arg1, _arg2); }; if (iInterLevelAds.Valid){ iInterLevelAds.Init(_arg1, _arg2); }; if (iEndGameAds.Valid){ iEndGameAds.Init(_arg1, _arg2); }; } public function ShowEndGameAd(_arg1:Function=null):void{ if (((iEndGameAds.Valid) && (iEndGameAds.SetAd()))){ iCurEndGameAd = iEndGameAds.CurAd; iCurEndGameAd.ShowEndGameAd(_arg1); iEndGameAds.NextAd(); } else { if (_arg1 != null){ _arg1(); }; }; } public function ShowPreGameAd(_arg1:Function=null):void{ if (((iPreGameAds.Valid) && (iPreGameAds.SetAd()))){ iCurPreGameAd = iPreGameAds.CurAd; iCurPreGameAd.ShowPreGameAd(_arg1); iPreGameAds.NextAd(); } else { if (_arg1 != null){ _arg1(); }; }; } public function KillPreGameAd():void{ if (iCurPreGameAd){ iCurPreGameAd.KillAd(); }; } } }//package
Section 225
//AdsList (AdsList) package { import flash.display.*; public class AdsList { private var iAds:Array; private var iCurIndex:int; public function AdsList(_arg1:Array){ iAds = _arg1; iCurIndex = 0; } public function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void{ var _local3:Ad; for each (_local3 in iAds) { _local3.Init(_arg1, _arg2); }; } public function SetAd():Boolean{ var _local1:Boolean; var _local2:int = iCurIndex; while (true) { if (!CurAd.DelayComplete()){ NextAd(); if (_local2 == iCurIndex){ break; }; } else { _local1 = true; break; }; }; return (_local1); } public function get CurAd():Ad{ return (iAds[iCurIndex]); } public function get Valid():Boolean{ return (((iAds) && ((iAds.length > 0)))); } public function NextAd():void{ if (++iCurIndex == iAds.length){ iCurIndex = 0; }; } } }//package
Section 226
//GL (GL) package { import ENGINE.DISPLAY.*; import flash.display.*; import ENGINE.INTERFACE.*; import flash.geom.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.INTERFACE.ELEMENTS.*; import MAIN.OBJECTS.TEXTBUTTON.*; import MAIN.OBJECTS.*; import flash.text.*; import ENGINE.DISPLAY.EFFECTS.*; import ENGINE.CORE.*; import flash.filters.*; import ENGINE.SKIN.*; public class GL { private static const cAlign:Array = [TextFormatAlign.LEFT, TextFormatAlign.CENTER, TextFormatAlign.RIGHT]; public static var iRegistered:Boolean = GL.Register(); public static function HeaderM(_arg1:Array):OBitmap{ var _local2:Number = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; var _local3:Array = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; var _local4:Number = Math.round((1 + (_arg1[1] / 70))); var _local5:Sprite = ((UI.OFont is Sprite)) ? (UI.OFont as Sprite) : new ((UI.OFont as Class)); if (!(_local5.getChildAt(0) is TextField)){ return (null); }; var _local6:TextField = (_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; var _local7:TextFormat = _local6.defaultTextFormat; _local7.size = _arg1[2]; _local7.align = "center"; _local6.width = (_local6.text.length * _arg1[2]); _local6.setTextFormat(_local7); var _local8:Sprite = new Sprite(); _local8.addChild(_local6); _local8.width = _arg1[1]; _local6.x = ((_local8.width - _local6.width) / 2); var _local9:Sprite = GL.MakeColorSprite([_local8, _arg1[3]]); var _local10:OBitmap = OBitmap.MakeTmp(_local9, 1, _arg1[5], _arg1[6]); return (_local10); } public static function BorderM(_arg1:Array):OBitmap{ var _local2:Sprite = new (_arg1[4]); var _local3:Number = (_arg1[1] / _local2.width); var _local4:Number = (_arg1[2] / _local2.height); var _local5:Sprite = 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]; var _local6:Sprite = GL.MakeColorSprite([_local5, _arg1[3]]); var _local7:OBitmap = 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 = [[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]]; var _local3:OButton = 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 = _arg1[3]; var _local3:Sprite = 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 = (_arg1[1] + 80); var _local3:Number = ((_arg1[2] * _arg1[5]) + 30); var _local4:Array = [[GL.SmallBorder, _local2, _local3, _arg1[3], 0, 0, null, 0, true], [GL.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], UI.OIUp, "text 60", 1, (_local2 - 50), 20, "iUp", 0, false], [GL.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], UI.OIDown, "text 60", 1, (_local2 - 50), (_local3 - 50), "iDown", 0, false]]; var _local5:Array = [GL.ListBoxTextElement, _arg1[1], _arg1[2], _arg1[3], "w", _arg1[4], 0, 0]; var _local6:Array = new Array(_arg1[5]); var _local7:int; while (_local7 < _arg1[5]) { _local6[_local7] = [15, ((_local7 * _arg1[2]) + 15)]; _local7++; }; var _local8:OListBox = new OListBox(_local4, _local5, GL.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 = (_arg1[6] as String).toLowerCase(); var _local3:MovieClip = new UI.OButMC(); var _local4:Number = (_arg1[1] * OGlobal.Scale); var _local5:Number = (_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); var _local6:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [GL.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], _arg1[4], _local2, 1, 2, -4, 0, "iTextOver", 0, false], [GL.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], 12431251, _local2, 1, 2, -4, 0, "iTextShadow", 0, true], [GL.TextAlignM, _arg1[1], (_arg1[5] * 1.5), _arg1[5], _arg1[3], _local2, 1, 2, -4, 0, "iTextOut", 0, true]]; var _local7:OMButton = 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 = (_arg1[1] + 63); var _local3:Number = ((_arg1[2] * _arg1[5]) + 30); var _local4:Array = [[GL.BorderM, _local2, _local3, _arg1[3], UI.OChoosePBorder, 0, 0, null, 0, true], [GL.MakeSpriteButtonM, 30, 30, UI.OUp, (_local2 - 40), 20, "iUp", 0, false], [GL.MakeSpriteButtonM, 30, 30, UI.ODown, (_local2 - 40), (_local3 - 50), "iDown", 0, false]]; var _local5:Array = [GL.ListBoxTextElementM, _arg1[1], _arg1[2], _arg1[3], "w", _arg1[4], 0, 0]; var _local6:Array = new Array(_arg1[5]); var _local7:int; while (_local7 < _arg1[5]) { _local6[_local7] = [15, ((_local7 * _arg1[2]) + 15)]; _local7++; }; var _local8:OListBox = new OListBox(_local4, _local5, GL.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 = Math.round((1 + (_arg1[1] / 70))); var _local3:String = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90))); return (ODisplay.OBitmapText([null, UI.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 = _arg1[6]; var _local3:Number = Math.round((1 + (_local2 / 70))); var _local4:String = ("text " + String((Math.round((_local2 / 10)) * 10))); var _local5:Rectangle = ODisplay.TextRect(UI.OFont, _local2, _local3, _arg1[8]); var _local6:Number = (_arg1[6] - 10); var _local7:Array = (_arg1[4]) ? [[GL.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); var _local8:Array = [[ODisplay.OBitmapText, UI.OFont, _local2, _local3, _arg1[8], "GEL", _arg1[3], _local4, 1, 15, ((_arg1[2] - _local5.height) * 0.5), null, 0, true], [GL.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], UI.OILeft, "text 60", 1, ((_arg1[1] - _arg1[5]) - 75), ((_arg1[2] - _local6) * 0.5), "iUp", 0, false], [GL.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], UI.OIRight, "text 60", 1, (_arg1[1] - 45), ((_arg1[2] - _local6) * 0.5), "iDown", 0, false]]; _local7 = _local7.concat(_local8); var _local9:Array = [GL.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[7], "w", _arg1[7], 0, 0]; var _local10:Array = [[((_arg1[1] - 45) - _arg1[5]), ((_arg1[2] - _arg1[6]) * 0.5)]]; var _local11:OListBox = new OListBox(_local7, _local9, GL.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 _local11:String; var _local12:Rectangle; var _local2:Number = Math.round((1 + (_arg1[1] / 70))); var _local3:String = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90))); var _local4:Sprite = ((UI.OFont is Sprite)) ? (UI.OFont as Sprite) : new ((UI.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; var _local5:TextField = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[3]; var _local6:TextFormat = _local5.defaultTextFormat; _local6.size = _arg1[1]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); var _local7:Array = new Array(); var _local8:int; var _local9:int; 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, UI.OFont, _arg1[1], _local2, _local11], 1, "GEL", _arg1[2][(_temp1 % _arg1[2].length)], _local3, 1, _local12.x, _local12.y, null, 0, true]); }; _local9++; }; var _local10:OIObject = 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 = Math.round((1 + (_arg1[2] / 70))); var _local3:int = Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)); var _local4:String = ("text " + String(_local3)); return (ODisplay.OBitmapTextAlign([null, UI.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 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; var _local3:Array = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; var _local4:OSprite = new OSprite(); var _local5:TextField = 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; var _local6:TextFormat = _local5.getTextFormat(); _local6.font = UI.cFontName; _local5.embedFonts = true; _local6.align = cAlign[_arg1[6]]; _local6.size = _arg1[3]; _local5.setTextFormat(_local6); _local4.addChild(_local5); _local5.antiAliasType = AntiAliasType.ADVANCED; var _local7:Sprite = GL.MakeColorSprite([_local4, _arg1[4]]); var _local8:Sprite = 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 = Math.round((1 + (_arg1[1] / 70))); var _local3:Sprite = ((UI.OFontArial is Sprite)) ? (UI.OFontArial as Sprite) : new ((UI.OFontArial as Class)); if (!(_local3.getChildAt(0) is TextField)){ return (null); }; var _local4:TextField = (_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; var _local5:TextFormat = _local4.defaultTextFormat; _local5.size = _arg1[2]; _local5.align = "center"; _local4.width = (_local4.text.length * _arg1[2]); _local4.setTextFormat(_local5); var _local6:Sprite = new Sprite(); _local6.addChild(_local4); _local6.width = _arg1[1]; _local4.x = ((_local6.width - _local4.width) / 2); var _local7:Sprite = GL.MakeColorSprite([_local6, _arg1[3]]); var _local8:OBitmap = OBitmap.MakeTmp(_local7, 1, _arg1[5], _arg1[6]); return (_local8); } public static function ListBoxTextHSliderM(_arg1:Array):OListBox{ var _local2:Number = _arg1[6]; var _local3:Number = Math.round((1 + (_local2 / 70))); var _local4:String = ("text " + String((Math.round((_local2 / 10)) * 10))); var _local5:Rectangle = ODisplay.TextRect(UI.OFont, _local2, _local3, _arg1[8]); var _local6:Number = (_arg1[6] - 10); var _local7:Array = (_arg1[4]) ? [[GL.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); var _local8:Array = [[GL.TextM, _arg1[2], _arg1[7], _arg1[8], 15, ((_arg1[2] - _local5.height) * 0.5), null, 0, true], [GL.MakeSpriteButtonM, _local6, _local6, UI.OLeft, (((_arg1[1] - _arg1[5]) - 45) - _local6), ((_arg1[2] - _local6) * 0.5), "iUp", 0, true], [GL.MakeSpriteButtonM, _local6, _local6, UI.ORight, (_arg1[1] - 45), ((_arg1[2] - _local6) * 0.5), "iDown", 0, true]]; _local7 = _local7.concat(_local8); var _local9:Array = [GL.ListBoxTextElementM, _arg1[5], _arg1[6], _arg1[7], "w", _arg1[7], 0, 0]; var _local10:Array = [[((_arg1[1] - 47) - _arg1[5]), ((_arg1[2] - _arg1[6]) * 0.5)]]; var _local11:OListBox = new OListBox(_local7, _local9, GL.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 = OBM.Make([null, [ODisplay.SpriteLib, _arg1[0]], (1 / OGlobal.Scale), 0, 0, 0]); var _local3:Sprite = 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(); var _local4:OBM = 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); var _local5:Bitmap = new Bitmap(_local4.iBM); var _local6:Sprite = 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 = Math.min(_arg1[1], _arg1[2]); var _local3:Number = (_local2 / 150); var _local4:Number = (100 * _local3); var _local5:Number = 0.9; var _local6:Sprite = new (_arg1[4]); var _local7:Number = (((_local2 / Math.max(_local6.width, _local6.height)) * _local6.width) * _local5); var _local8:Number = (((_local2 / Math.max(_local6.width, _local6.height)) * _local6.height) * _local5); var _local9:Sprite = new (_arg1[5]); var _local10:Number = (((_local2 / Math.max(_local9.width, _local9.height)) * _local9.width) * _local5); var _local11:Number = (((_local2 / Math.max(_local9.width, _local9.height)) * _local9.height) * _local5); var _local12:Array = [[GL.MakeBitmapFromLib, _local7, _local8, _arg1[4], 0, 0, "iCheck", 0, true], [GL.MakeBitmapFromLib, _local10, _local11, _arg1[5], 0, 0, "iUnCheck", 0, true], [InvisibleButton, _local7, _local8, 0, 0, "iHit", 0, true]]; var _local13:OCheckBox = new OCheckBox(_local12); _local13.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])); return (_local13); } public static function ColorHeaderM(_arg1:Array):OIObject{ var _local13:String; var _local14:Rectangle; var _local2:Number = Math.round((1 + (_arg1[2] / 70))); var _local3:String = ("text " + String(Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)))); var _local4:Sprite = ((UI.OFont is Sprite)) ? (UI.OFont as Sprite) : new ((UI.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; var _local5:TextField = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[4]; var _local6:TextFormat = _local5.defaultTextFormat; _local6.size = _arg1[2]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); var _local7:Rectangle = _local5.getBounds(_local4); var _local8:Number = ((_arg1[1] - _local7.width) / 2); var _local9:Array = new Array(); var _local10:int; var _local11:int; 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++; }; var _local12:OIObject = 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 = new (_arg1[3]); var _local3:OBitmap = 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 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; var _local3:OButton = 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 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; var _local3:Array = [new DropShadowFilter((4 * _local2), 45, 0, 0.2)]; var _local4:Number = Math.round((1 + (_arg1[1] / 70))); var _local5:Sprite = ((UI.OFont is Sprite)) ? (UI.OFont as Sprite) : new ((UI.OFont as Class)); if (!(_local5.getChildAt(0) is TextField)){ return (null); }; var _local6:TextField = (_local5.getChildAt(0) as TextField); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.text = _arg1[3]; _local6.antiAliasType = AntiAliasType.ADVANCED; var _local7:TextFormat = _local6.defaultTextFormat; _local7.size = _arg1[1]; _local7.letterSpacing = _local4; _local6.setTextFormat(_local7); var _local8:Sprite = new Sprite(); _local8.addChild(_local6); var _local9:Sprite = GL.MakeColorSprite([_local8, _arg1[2]]); var _local10:OBitmap = OBitmap.MakeTmp(_local9, 1, _arg1[4], _arg1[5]); return (_local10); } public static function ListBoxTextVSlider(_arg1:Array):OListBox{ var _local2:Number = _arg1[6]; var _local3:Number = Math.round((1 + (_local2 / 70))); var _local4:String = ("text " + String((Math.round((_local2 / 10)) * 10))); var _local5:Rectangle = ODisplay.TextRect(UI.OFont, _local2, _local3, _arg1[9]); var _local6:Array = [[((_arg1[1] - _arg1[5]) * 0.5), _arg1[7]]]; var _local7:Number = (_arg1[6] - 10); var _local8:Number = (_local6[0][1] + ((_arg1[6] - _local7) * 0.5)); var _local9:Array = (_arg1[4]) ? [[GL.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array(); var _local10:Array = [[ODisplay.OBitmapText, UI.OFont, _local2, _local3, _arg1[9], "GEL", _arg1[3], _local4, 1, ((_arg1[1] - _local5.width) * 0.5), _arg1[10], null, 0, true], [GL.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], UI.OILeft, "text 60", 1, (_local6[0][0] - _local7), _local8, "iUp", 0, false], [GL.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], UI.OIRight, "text 60", 1, (_local6[0][0] + _arg1[5]), _local8, "iDown", 0, false]]; _local9 = _local9.concat(_local10); var _local11:Array = [GL.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[8], "w", _arg1[8], 0, 0]; var _local12:OListBox = new OListBox(_local9, _local11, GL.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 = Math.round((1 + (_arg1[5] / 70))); var _local3:String = ("text " + String(Math.max((Math.round((_arg1[5] / 10)) * 10), 30))); var _local4:Array = [[ODisplay.OBitmapTextInRect, UI.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]]; var _local5:OButton = 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 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]]; var _local3:Sprite = new (_arg1[3]); _local3.scaleX = ((_arg1[1] * OGlobal.Scale) / _local3.width); _local3.scaleY = ((_arg1[2] * OGlobal.Scale) / _local3.height); var _local4:OSprite = new OSprite(); _local4.addChild(_local3); _local4.prVisible = true; var _local5:OButton = 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 = new Array(); _local2.push([GL.TextArial, _arg1[1], _arg1[2], _arg1[3], _arg1[5], _arg1[6], null, 0, true]); var _local3:OIObject = 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 = Math.round((1 + (_arg1[5] / 70))); var _local3:String = ("text " + String((Math.round((_arg1[5] / 10)) * 10))); var _local4:Array = [[ODisplay.OBitmapRoundFrameText, _arg1[1], _arg1[2], 24, 5, "GEL", _arg1[3], "border", 1, _arg1[3], "spanel ns", 1, UI.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]]; var _local5:OButton = 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 _local13:String; var _local14:Rectangle; var _local2:Number = Math.round((1 + (_arg1[2] / 70))); var _local3:String = ("text " + String(Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)))); var _local4:Sprite = ((UI.OFont is Sprite)) ? (UI.OFont as Sprite) : new ((UI.OFont as Class)); if (!(_local4.getChildAt(0) is TextField)){ return (null); }; var _local5:TextField = (_local4.getChildAt(0) as TextField); _local5.autoSize = TextFieldAutoSize.LEFT; _local5.text = _arg1[4]; var _local6:TextFormat = _local5.defaultTextFormat; _local6.size = _arg1[2]; _local6.letterSpacing = _local2; _local5.setTextFormat(_local6); var _local7:Rectangle = _local5.getBounds(_local4); var _local8:Number = ((_arg1[1] - _local7.width) / 2); var _local9:Array = new Array(); var _local10:int; var _local11:int; 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, UI.OFont, _arg1[2], _local2, _local13], 1, "GEL", _arg1[3][(_temp1 % _arg1[3].length)], _local3, 1, (_local14.x + _local8), _local14.y, null, 0, true]); }; _local11++; }; var _local12:OIObject = 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 = (_arg1[2] - 10); if (_local2 < 30){ _local2 = 30; }; var _local3:Number = Math.round((1 + (_local2 / 70))); var _local4:String = ("text " + String((Math.round((_local2 / 10)) * 10))); var _local5:Array = [[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, UI.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]]; var _local6:OListBoxElement = 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 = [[GL.BorderM, _arg1[1], _arg1[2], _arg1[3], UI.OSelectBorder, 0, 0, null, 0, false], [GL.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]]; var _local3:OListBoxElement = 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{ var _local2:Object = 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])]); _local2.alpha = 0.85; return ((_local2 as OBitmap)); } public static function RoundBorderM(_arg1:Array):OBitmap{ var _local2:Sprite = new Sprite(); _local2.graphics.lineStyle(3, _arg1[3]); var _local3:Number = _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 = Math.round((1 + (_arg1[1] / 70))); var _local3:Sprite = ((UI.OFontArial is Sprite)) ? (UI.OFontArial as Sprite) : new ((UI.OFontArial as Class)); if (!(_local3.getChildAt(0) is TextField)){ return (null); }; var _local4:TextField = (_local3.getChildAt(0) as TextField); _local4.autoSize = TextFieldAutoSize.LEFT; _local4.text = _arg1[3]; _local4.antiAliasType = AntiAliasType.ADVANCED; var _local5:TextFormat = _local4.defaultTextFormat; _local5.size = _arg1[1]; _local5.letterSpacing = _local2; _local4.setTextFormat(_local5); var _local6:Sprite = new Sprite(); _local6.addChild(_local4); var _local7:Sprite = GL.MakeColorSprite([_local6, _arg1[2]]); var _local8:OBitmap = OBitmap.MakeTmp(_local7, 1, _arg1[4], _arg1[5]); return (_local8); } public static function SmallRectBorder(_arg1:Array):OBitmap{ var _local2 = 5; var _local3:OSprite = 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(); var _local4:Number = 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 = Math.round((1 + (_arg1[2] / 70))); var _local3:int = Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90)); var _local4:String = ("text " + String(_local3)); return (ODisplay.OBitmapTextAlign([null, UI.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 = new Sprite(); _local2.graphics.lineStyle(3, _arg1[3]); var _local3:Number = (_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 = Math.round((1 + (_arg1[2] / 70))); var _local3:String = ("text " + String(Math.min((Math.round((_arg1[2] / 10)) * 10), 90))); return (ODisplay.OBitmapTextInRect([null, UI.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 = ((OGlobal.Scale <= 1)) ? OGlobal.Scale : 1; var _local3:Array = [new DropShadowFilter((4 * _local2), 45, 0, 0.2), new BevelFilter((3 * _local2), 45, 0xFFFFFF, 0.5, 0, 0.5, (2 * _local2), (2 * _local2))]; var _local4:Array = new Array(); _local4.push([GL.TextM, _arg1[1], _arg1[2], _arg1[3], _arg1[5], _arg1[6], null, 0, true]); var _local5:OIObject = 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 = [[GL.BorderM, _arg1[1], _arg1[2], _arg1[3], UI.OEnterBorder, 0, 0, null, 0, true], [OInterface.OInputTextFieldMake, (_arg1[1] - 10), (_arg1[2] - 10), UI.OFont, (_arg1[2] / 2), 1, false, _arg1[5], _arg1[4], _arg1[6], 5, 2, "iText", 0, true]]; var _local3:OInput = 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 = 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)]); var _local3:OSprite = new OSprite(); _local3.addChild(_local2); _local3.Pos(_arg1[4], _arg1[5]); return (_local3); } } }//package
Section 227
//IAd (IAd) package { import flash.display.*; public interface IAd { function Init(_arg1:DisplayObjectContainer, _arg2:String="en"):void; function KillAd():void; function ShowEndGameAd(_arg1:Function):void; function GetName():String; function ShowPreGameAd(_arg1:Function):void; function ShowInterLevelAd(_arg1:Function):void; } }//package
Section 228
//LibraryDefault (LibraryDefault) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class LibraryDefault { public static var HEXAGON:int = 1; public static var OWGame:Array; public static var OWDemo:Array; public static var DEMO:int = 3; public static var TRIANGLE:int = 2; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; public static var sURLGame:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static var OSSmileSInd:int = 12; private static var OWGameCompletedLevelM:Array; public static var OWGamePause:Array; public static var iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; public static var OWGameGoalArray:Array; public static var downloadableURL:String = "http://redir.absolutist.com/4-2-3/http://itunes.apple.com/us/app/mysteriez/id420612349?mt=8"; public static var OWGameGoal:Array; private static var OWSelectGameGameModeColor:Array = ["60", "30", "180", "70", "190", "220", "280", "100", "40", "150", "170", "250", "50", "260", "140", "330", "300", "350", "80", "120"]; public static var cColorsParticles:Array = [0xFF0000, 0xFF00, 0xFF, 0xFFFF00, 0xFF00FF, 0xFFFF]; 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]; private static var OWHighScoresType:Array; public static var OGTimer:Array; public static var firstAdLevel:int = 1; public static var OWResultsRaitingS:Array; private static var OWGameSite:Array; public static var OWInfoP:Array; public static var OWHighScores:Array; public static var OWDeleteScoresConfirm:Array; public static var OWInGameMenuParam:Array = [[GL.BigFrame, 350, 335, "green1", "green1", 225, 145, null, 0, true], [GL.MakeTextButton, 250, 46, "red", "red", 25, SStrings.getString("strMainMenu"), 275, 180, "btnMainMenu", 0, true], [GL.MakeTextButton, 250, 46, "aqua1", "aqua1", 25, SStrings.getString("strOptions"), 275, 235, "btnOptions", 0, true], [GL.MakeTextButton, 250, 46, "aqua", "aqua", 25, SStrings.getString("strInstructions"), 275, 290, "btnInstructions", 0, true], [GL.MakeTextButton, 250, 46, "yellow1", "yellow1", 25, SStrings.getString("strMoreGames"), 275, 345, "btnMoreGames", 0, true], [GL.MakeTextButton, 250, 46, "yellow", "yellow", 25, SStrings.getString("strResume"), 275, 400, "btnResume", 0, true]]; public static var cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; private static var 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"]; private static var TimeColor:int = 0xFFFFFF; public static var strConnect1URL:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; private static var OWHighScoreTabF:Array; public static var OWInstructionsText:Array; public static var OSBubbleBangSInd:int = 0; public static var OWGameConnection:Array; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array; public static var OWEnterName:Array; 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 OWUpSell:Array; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; 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 OGInfo:Array; private static var 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 var FindColors1:Array = ["0", "30", "60", "90"]; public static var FindColors2:Array = ["150", "180", "210", "240"]; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, LibraryDefault.OTimerAnimator, null]; private static var OWGameCompletedLevel:Array; public static var sBBannerPrefix:String = "ru/bottom/"; public static var OWCommingSoon:Array; public static var sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static var OGFindO:Array; public static var sZone:String = "Mysteriez2"; 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"]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; private static var OWGameNotCompletedLevel:Array; 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 sBannerID:String = "mysteriez2"; public static var OWInfoPUserNotFound:Array; public static var strConnect2URL:String = "http://www.wellgames.com/?g=mysteriez2"; public static var OSSmileEInd:int = 14; public static var recLevel:String; private static var iWOptionsVolume:Array; public static var OWInputParam:Array; public static var OWResults:Array; 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]], 14, 20]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, LibraryDefault.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, LibraryDefault.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, LibraryDefault.OTimerAnimator, null]; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, LibraryDefault.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array; public static var OWResultsTimeBonusScore:Array; public static var sLang:String = "EN"; public static var cFontName:String = "Bankir-Retro"; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, LibraryDefault.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array; public static var OWGameNCL:Array; public static var OWLanguageParam:Array = [[GL.BigFrame, 460, 385, "green1", "green1", 170, 120, null, 0, true], [GL.Header, 350, 40, "blue", SStrings.getString("strLanguage"), 225, 145, null, 0, true], [GL.ListBoxText, 320, 40, "yellow", "yellow", 5, null, 200, 195, "iListBox", 0, true], [GL.MakeTextButton, 190, 46, "aqua", "aqua", 25, SStrings.getString("strChange"), 200, 439, "btnChange", 0, true], [GL.MakeTextButton, 190, 46, "yellow1", "yellow1", 25, SStrings.getString("strCancel"), 410, 439, "btnCancel", 0, true]]; public static var ARCADE:int = 2; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var sDomain:String = "wellgames.com"; public static var numAdLevels:int = 2; public static var OWMenuReiting:Array; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; public static var OWGameNewLevelWithNoOpponent:Array; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWInfoPConnect:Array; public static var strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static var OWResultsRaiting:Array; public static var OWResultsTotalScore:Array; private static var OTimerAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:15}; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array; public static var OWLoadProgress:Array; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; private static var iWOptionsOnOff:Array; public static var OWGameNewLevelWithOpponent:Array; public static var OSBubbleBangEInd:int = 10; public static var SQUARE:int = 0; public static var cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static var OWGameNewLevelWithHoutOpponent:Array; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); public static var sURLSite:String = "http://www.wellgames.com/?g=mysteriez2"; 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 OWMenu:Array; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, LibraryDefault.OWGameCounterAnimator, null]; public static var STRATEGY:int = 1; 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"]; 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]; 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 OWIntroParam:Array; public static var sServer:String = "www.wellgames.com"; public static var cColorsSite:Array = [8810577, 8810577, 8810577, 8810577, 9599576, 11113584, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603]; public static var OWOptions:Array; public static var sDebug:Boolean = false; public static var OWGameP:Array; private static var OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; public static var OWInstructions:Array; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; public static var OGFind:Array; public static var cColors:Array = [8810577]; 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 sTBannerPrefix:String = "ru/top/"; public static var OWInstrInfo3:Array; private static var OWGameNotCompletedLevelM:Array; public static var OWDeletePlayerConfirm:Array; public static var OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; public static var OWInstrInfo1:Array; public static var OWInstrInfo2:Array; public static var sXTName:String = "m2"; public static var OWInfoPPlayer:Array; public static var OWGameNewLevel:Array; public static var showAD:Boolean = true; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OWChoosePlayer:Array; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, 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]; private static var iGameType:int = 0; public static var OSOops:int = 15; 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 var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; public static var OWSSaver:Array; public static var OWInstructionsInfo:Array; public static function ReInit():void{ OWIntroParam = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [GL.MakeBitmapFromLib, 0, 25, UI.OSiteM, 240, 275, "iHeader", 0, true], [GL.MakeBitmapFromLib, 0, 83, UI.OGameNameM, 100, 200, "iName", 0, true], [GL.MakeBitmapFromLib, 0, 60, UI.OGameVersion, 200, 360, "iVersion", 0, true], [GL.HeaderM, 400, 20, cMainColors[0], SStrings.getString("strPresents"), 0, 420, "iFooter", 0, true]]; OWChoosePlayer = [[GL.HeaderM, 250, 25, cMainColors[0], SStrings.getString("strChoosePlayer"), -10, -60, null, 0, true], [GL.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strNew"), 15, 194, "iNew", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strDelete"), 145, 194, "iDelete", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 30, 230, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 130, 230, "iCancel", 0, true]]; OWEnterName = [[GL.HeaderM, 230, 25, cMainColors[0], SStrings.getString("strNewPlayer"), 0, 20, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterName"), 0, 90, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterNameLat"), 0, 170, null, 0, true], [GL.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 22, 210, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 122, 210, "iCancel", 0, true]]; OWGameNameColor = ["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"]; OWPlayersColor = ["180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150"]; OWColors1 = ["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"]; OWColors2 = ["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"]; OWColors3 = ["0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"]; OWPlayersCounterElement = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, LibraryDefault.OTimerAnimator, null]; OWPlayersCounterF = [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]; OWMenuReiting = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; OWUpSell = [[GL.HeaderM, 240, 35, cColorsGameName[0], SStrings.getString("strUpSellName"), 80, 60, null, 0, true], [GL.HeaderM, 240, 15, cColorsGameName[0], SStrings.getString("strUpSellText"), 80, 150, null, 0, true], [GL.InvisibleButton, 250, 86, 1000, 400, "iContinue", 0, true], [GL.MakeNewButton, 200, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strContinue"), (540 - 40), 335, "iOptions", 0, true]]; OWMenu = [[GL.HeaderM, 300, 20, cMainColors[4], SStrings.getString("strWelcome"), 0, 0, null, 0, true], [GL.HeaderM, 300, 18, cMainColors[5], SStrings.getString("strChangePlayer"), 0, 30, "iTextChange", 0, true], [GL.BorderM, 330, 63, cMainColors[3], UI.OWBorderM, -10, 0, null, 0, true], [GL.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [GL.ColorTextM, 15, cMainColors[4], SStrings.getString("strPlayersOnline").toLowerCase(), null, -5, 35, "iPlayers", 0, true], [GL.MakeNewButton, 155, 40, cMainColors[5], cMainColors[2], 30, SStrings.getString("strPlayOnline"), 70, 100, "iPlayOnlineStrategy", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strOptions"), 75, 180, "iOptions", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strHighScores"), 75, 215, "iHighScores", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strInstructions"), 75, 250, "iInstructions", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strMoreGames"), 75, 285, "iMoreGames", 0, true]]; OWCommingSoon = [[GL.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 530, 50, "red", SStrings.getString("strCommingSoon"), 0, 20, null, 0, true], [GL.Header, 530, 30, "magenta", SStrings.getString("strCommingSoonI"), 0, 125, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 190, 210, null, 0, true]]; OWDeletePlayerConfirm = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeletePlayerConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 18, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; iWOptionsVolume = [SStrings.getString("strOff"), "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; iWOptionsOnOff = [SStrings.getString("strOff"), SStrings.getString("strOn")]; OWOptions = [[GL.HeaderM, 200, 40, cMainColors[0], SStrings.getString("strOptions"), 240, 90, null, 0, true], [GL.ListBoxTextHSliderM, 320, 20, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strSound"), LibraryDefault.iWOptionsVolume, 187, 200, "iSound", 0, true], [GL.ListBoxTextHSliderM, 320, 20, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strMusic"), LibraryDefault.iWOptionsVolume, 187, 250, "iMusic", 0, true], [GL.ListBoxTextHSliderM, 320, 20, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strFullScreen"), LibraryDefault.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 250, 405, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 350, 405, "iCancel", 0, true], [GL.BorderM, 290, 150, cMainColors[3], UI.OBorderM, 197, 160, null, 0, true], [GL.BorderM, 290, 80, cMainColors[3], UI.OBorderM, 197, 320, null, 0, true]]; OWResultsColor = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; OWRecordColor = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; OWResultsScoreT = [[GL.Header, 800, 60, "yellow1", ((SStrings.getString("strLevel") + " ") + SStrings.getString("strScore")), 0, 0, null, 0, true]]; OWResultsRaitingS = [[GL.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; OWResultsLevelScore = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strGainedScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; OWResultsBonusScore = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strBonusScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; OWResultsTotalScore = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strLevelScoreR").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; OWResultsTimeBonusScore = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strTimeBonus").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; OWResultsRaiting = [[GL.ColorHeaderM, 800, 25, cColorsSite, SStrings.getString("strYourRaiting"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.HeaderM, 800, 25, cMainColors[0], "9", 0, 30, null, 0, true]]; OWResults = [[GL.ColorHeaderM, 800, 40, cColorsSite, SStrings.getString("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], [GL.MakeNewButton, 200, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNextLevel").toLowerCase(), (((545 - 75) - 25) - 25), 300, "iButtons", 0, false], [GL.BorderM, 290, 240, cMainColors[3], UI.OResultBorder, 450, 45, null, 0, false], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strSubmitScore").toLowerCase(), (610 + 15), 300, "iSubmit", 0, false]]; OWHighScoresType = [SStrings.getString("strLocal"), SStrings.getString("strPersonal")]; OWHighScoreLocal = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; OWHighScoreLocalM = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; OWHighScorePersonal = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; OWHighScorePersonalM = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; OWHighScoreTabF = [OInterface.OTabMake, [[OInterface.OIObjectMake, LibraryDefault.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, LibraryDefault.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, LibraryDefault.OTimerAnimator, null]; OWHighScoreTabFM = [OInterface.OTabMake, [[OInterface.OIObjectMake, LibraryDefault.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, LibraryDefault.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, LibraryDefault.OTimerAnimator, null]; OWHighScores = [[GL.HeaderM, 300, 25, cMainColors[0], SStrings.getString("strHighScores"), 0, -130, null, 0, true], [GL.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", LibraryDefault.OWHighScoresType, 45, -90, "iType", 0, true], [GL.BorderM, 288, 206, cMainColors[3], UI.OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, LibraryDefault.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strClear"), 50, 170, "iClear", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strClose"), 165, 170, "iClose", 0, true]]; OWDeleteScoresConfirm = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeleteScoresConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 12, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; OWInstructionsText = [SStrings.getString("strInstructionsText1"), SStrings.getString("strInstructionsText2"), SStrings.getString("strInstructionsText3")]; OWInstrInfo1 = [[GL.HeaderM, 550, 25, cMainColors[0], SStrings.getString("strInstructionsText1"), 0, 0, null, 0, true]]; OWInstrInfo2 = [[GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText2"), 0, -30, null, 0, true]]; OWInstrInfo3 = [[GL.MakeCheckBoxM, 80, 60, "yellow", UI.OLoop, UI.OUnLoop, 40, -15, null, 0, true], [GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText3"), 0, -30, null, 0, true]]; OWInstructionsInfo = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; OWInstructions = [[GL.HeaderM, 600, 50, cMainColors[0], SStrings.getString("strHowToPlay"), 0, 0, null, 0, true], [GL.BorderM, 318, 318, cMainColors[3], UI.ODemoBorder, 125, 125, "iBorder", 0, true], [GL.MakeBitmapFromLib, 28, 90, UI.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [GL.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 35, SStrings.getString("strClose"), 645, 460, "iClose", 0, true]]; OWColors = ["0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"]; OWInfoColors = [8810577, 11312258, 11244918, 12431251]; OWInfoPConnect = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 70, null, 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strPlayOnline"), 35, 175, null, 0, true]]; OWInfoPUserNotFound = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 100, null, 0, true], [GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 125, null, 0, true]]; OWInfoP = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 120, null, 0, true]]; OWInfoPPlayer = [[GL.ColorHeaderM, 190, 18, LibraryDefault.OWInfoColors, SStrings.getString("strLevel").toLowerCase(), null, 10, 37, null, 0, true]]; OWGoalColors = ["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"]; OWSelectGameGameModeColor = ["60", "30", "180", "70", "190", "220", "280", "100", "40", "150", "170", "250", "50", "260", "140", "330", "300", "350", "80", "120"]; OWGameCounterAnimator = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; OWGameConnection = [GL.ColorHeaderM, 600, 48, LibraryDefault.cColors, SStrings.getString("strConnectionToServer"), OInterface.iDefSlowAnimators]; OWGameSite = [[GL.MakeBitmapFromLib, 130, 15, UI.OSiteM, 0, 0, null, 0, true]]; OWGameNewLevel = [[GL.ColorHeaderM, 600, 50, LibraryDefault.cColors, UI.strSite, OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 40, LibraryDefault.cColors, SStrings.getString("strOpponent1"), OInterface.iDefAnimators, 0, 80, null, 0, true], [GL.ColorHeaderM, 600, 40, LibraryDefault.cColors, UI.strSite, OInterface.iDefAnimators, 0, 150, null, 0, true]]; OWGameNewLevelWithOpponent = [OInterface.OIObjectMake, OWGameNewLevel, OInterface.iDefAnimators, 0, 0, null, 0, false]; OWGameNewLevelWithNoOpponent = [[GL.ColorHeaderM, 600, 50, LibraryDefault.cColors, UI.strSite, OInterface.iDefAnimators, 0, 0, null, 0, true]]; OWGameNewLevelWithHoutOpponent = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; OWGameGoalArray = [[GL.ColorHeaderM, 600, 50, LibraryDefault.cColors, SStrings.getString("strCountNumbers1"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 50, LibraryDefault.cColors, SStrings.getString("strCountNumbers2"), OInterface.iDefAnimators, 0, 60, null, 0, true], [GL.ColorHeaderM, 600, 30, LibraryDefault.cColors, (" " + SStrings.getString("strClick").toLowerCase()), OInterface.iDefAnimators, 0, 140, null, 0, true]]; OWGameGoal = [OInterface.OIObjectMake, OWGameGoalArray, OInterface.iDefAnimators, 0, 0, null, 0, false]; OWGameScoreElement = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameScoreElementM = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameScoreElementO = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameScoreElementOM = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameScoreF = [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]; OWGameScoreFM = [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]; FindColors1 = ["0", "30", "60", "90"]; FindColors2 = ["150", "180", "210", "240"]; FindColorsO = ["240", "240", "240", "240"]; OGNumberCounterElement = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, LibraryDefault.OWGameCounterAnimator, null]; OGNumberCounter = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OGNumberCounterElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterElement, 15, 0, "iDigits", 1, true]], 30, 28]; OGFind = [[GL.ColorHeader, 190, 28, FindColors1, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [GL.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; OGNumberCounterElementO = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, LibraryDefault.OWGameCounterAnimator, null]; OGNumberCounterO = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OGNumberCounterElementO, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterElementO, 11, 0, "iDigits", 1, true]], 18, 35]; OGFindO = [[GL.ColorHeader, 60, 20, FindColorsO, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [GL.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; OWGameTimeElement = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; OWGameTimeF = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; OGTimer = [[GL.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [GL.BorderM, 162, 37, TimeColor, UI.OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [GL.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]]; OWGameScoreFOM = [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]], 14, 20]; OWGameLevelElement = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameLevelElementM = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, LibraryDefault.OWGameCounterAnimator, null]; OWGameLevelF = [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]; OWGameLevelFM = [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]; OGInfo = [[GL.HeaderM, 200, 50, 0xFF0000, (SStrings.getString("strTimeDecrease") + OGGame.iDecreaseTime.toString()), 0, 0, null, 0, false]]; OWGamePauseColor = ["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"]; OWGamePause = [[GL.ColorHeaderM, 600, 60, cColors, SStrings.getString("strPause"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 30, cColors, SStrings.getString("strPrToCont"), OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; OWGameP = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, null, 0, true]; OWDemo = [GL.MakeTextButton, 130, 35, "magenta", "magenta", 20, SStrings.getString("strMissed"), 305, 140, null, 0, false]; OWGame = [[GL.MakeBitmapFromLib, 165, 61, UI.OGameNameM, 635, 12, "iGameName", 0, false], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMenu"), 635, 520, "iMenu", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [GL.MakeCheckBoxM, 64, 53, "yellow", UI.OLoop, UI.OUnLoop, 655, 470, "iLoop", 0, false], [GL.MakeCheckBoxM, 64, 53, "green", UI.OStop, UI.OStart, 725, 470, "iPause", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strLevel1").toLowerCase(), OInterface.iDefAnimators, 640, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 740, 435, "iLevelCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 730, 144, "iScoreCounterO", 0, false], [GL.BorderM, 160, 220, cMainColors[3], UI.OGameBorder, 631, 293, "iBorder", 0, false]]; OWLevelEditor = [[GL.MakeTextButton, 200, 50, "white", "white", 25, SStrings.getString("strMenu"), 558, 490, "iMenu", 0, false]]; OWGameCompletedLevel = [[GL.Header, 600, 60, "yellow", SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.Header, 600, 60, "yellow", SStrings.getString("strComplete"), 0, 60, null, 0, true], [GL.Header, 600, 35, "yellow", SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; OWGameCompletedLevelM = [[GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strComplete"), 0, 67, null, 0, true], [GL.HeaderM, 600, 35, cMainColors[0], SStrings.getString("strPrToCont"), 0, 140, null, 0, true]]; OWGameCL = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; OWGameNotCompletedLevel = [[GL.Header, 600, 60, "red", SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.Header, 600, 35, "red", SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; OWGameNotCompletedLevelM = [[GL.HeaderM, 600, 60, 10040115, SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.HeaderM, 600, 35, 10040115, SStrings.getString("strPrToCont"), 0, 80, null, 0, true]]; OWGameNCL = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; OWSSaver = [[GL.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, SStrings.getString("strMenu"), 0, 0, "iMenu", 0, true], [GL.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, UI.strSite, 0, 0, "iSite", 0, true]]; OWInputParam = [[GL.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 600, 40, "aqua1", SStrings.getString("strInputText"), 0, 30, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 225, 310, "iClose", 0, true]]; OWGameLoadLevelElement = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, LibraryDefault.OWGameCounterAnimator, null]; OWGameLoadLevel = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameLoadLevelElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevelElement, 30, 0, "iDigits", 1, true]], 100, 50]; OWLoadProgress = [[GL.ColorHeaderM, 800, 50, cColorsSite, SStrings.getString("strLoadingLevel"), OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; OSoundParams = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; iSoundRegistered = OSound.RegisterEmbedSounds(OSoundParams); OWInGameMenuParam = [[GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMainMenu"), 200, 180, "btnMainMenu", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strOptions"), 200, 235, "btnOptions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strInstructions"), 200, 290, "btnInstructions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMoreGames"), 200, 345, "btnMoreGames", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strResume"), 200, 400, "btnResume", 0, true]]; OWLanguageParam = [[GL.HeaderM, 350, 40, cMainColors[0], SStrings.getString("strLanguage"), (225 + 200), (130 - 20), null, 0, true], [GL.ListBoxTextM, 200, 40, cMainColors[5], cMainColors[2], 5, null, ((200 + 200) + 65), (195 - 20), "iListBox", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strChange"), (((200 + 200) + 75) - 5), (439 - 20), "btnChange", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), ((410 + 200) - 5), (439 - 20), "btnCancel", 0, true]]; areaChange(); } public static function get GameType():int{ return (iGameType); } private static function areaChange():void{ var _local1:Array; var _local2:RegExp; var _local3:Boolean; var _local4:String; var _local5:int; if (SConfig.AREA == ""){ _local1 = new Array(); _local2 = new RegExp("([\\w]*)://([\\w./%|]*)"); _local1 = Preloader.sPath.match(_local2); if (_local1[1] != "file"){ _local3 = false; _local4 = ""; _local5 = 0; while (_local5 < _local1[2].length) { if ((((((_local1[2].charAt(_local5) == "/")) && (!(_local3)))) && (!((_local1[2].charAt((_local5 + 1)) == "/"))))){ _local3 = true; _local5 = (_local5 + 1); } else { if ((((_local1[2].charAt(_local5) == "/")) && (_local3))){ _local3 = false; break; }; }; if (_local3){ _local4 = (_local4 + _local1[2].charAt(_local5)); }; _local5++; }; if (_local4.length == 2){ SConfig.AREA = _local4; }; }; }; if (SConfig.AREA != ""){ strConnect1URL = (((((((("http://www.wellgames.com/" + SConfig.AREA.toLowerCase()) + "/") + "free_online/") + UI.sBannerID) + "/?g=") + UI.sZone) + "_") + SConfig.AREA.toLowerCase()); strConnect2URL = (((((("http://www.wellgames.com/" + SConfig.AREA.toLowerCase()) + "/") + "?g=") + UI.sZone) + "_") + SConfig.AREA.toLowerCase()); strConnect3URL = (((((((("http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/" + SConfig.AREA.toLowerCase()) + "/") + "free_online/") + UI.sBannerID) + "/?g=") + UI.sZone) + "_") + SConfig.AREA.toLowerCase()); sLang = SConfig.AREA.toUpperCase(); sURLSite = (((((("http://www.wellgames.com/" + SConfig.AREA.toLowerCase()) + "/") + "?g=") + UI.sZone) + "_") + SConfig.AREA.toLowerCase()); sURLGame = (((((((("http://www.wellgames.com/" + SConfig.AREA.toLowerCase()) + "/") + "free_online/") + UI.sBannerID) + "/?g=") + UI.sZone) + "_") + SConfig.AREA.toLowerCase()); downloadableURL = (("http://redir.absolutist.com/4-2-3/http://itunes.apple.com/" + SConfig.AREA.toLowerCase()) + "/app/mysteriez/id420612349?mt=8"); }; } } }//package
Section 229
//Mysteriez2 (Mysteriez2) package { import ENGINE.DISPLAY.*; import flash.events.*; import flash.display.*; import ENGINE.INTERFACE.*; import flash.geom.*; import flash.system.*; import ENGINE.GAME.*; import MAIN.OBJECTS.OGAME.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; import MAIN.WINDOWS.*; import flash.net.*; import ENGINE.SMARTFOX.*; import flash.ui.*; public class Mysteriez2 extends OApplication { private var iSystem:OSystem; private var iHighScoresTableValue:int; public var iField:OSprite; public var iLayerAPI:MovieClip; public var iPanelSysButtons:SPanelSysButtons; public var iLayerWindow:Sprite; private var iWindow:OWindow; private static var musicStartPlay:Boolean = false; public function Mysteriez2(){ var myContextMenu:ContextMenu; var item:ContextMenuItem; super("Mysteriez2"); UI.iGAME; if (Partner.iMobile_project){ SConfig.language = Capabilities.language; SConfigLoader.ValidLanguage(); }; if (UI.iGAME.prPlayerName == ""){ trace(("Use Language -> " + SConfig.language)); } else { trace(("Restore Language -> " + UI.iGAME.prLang)); if (UI.iGAME.prLang != null){ SConfig.language = UI.iGAME.prLang; }; SConfigLoader.ValidLanguage(); }; UI.ReInit(); if (!Partner.iMobile_project){ OSound.PlayListAdd("music.mp3"); }; if (!Partner.iMobile_project){ var menuSelectHandler:Function = function (_arg1:ContextMenuEvent):void{ }; var menuItemSelectHandler:Function = function (_arg1:ContextMenuEvent):void{ navigateToURL(new URLRequest("http://www.wellgames.com/?ContextMenu")); }; item = new ContextMenuItem("MoreGame: Wellgames.com"); myContextMenu = new ContextMenu(); myContextMenu.hideBuiltInItems(); myContextMenu.builtInItems.quality = true; myContextMenu.customItems.push(item); this.contextMenu = myContextMenu; item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler); myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler); }; } private function InitGame():void{ this.createBook(); if (!Partner.iMobile_project){ if (!musicStartPlay){ OSound.PlayMusic(); musicStartPlay = true; }; }; this.prMenuItem = UI.miIntro; this.OnMenuItem(); } override public function OnPress(_arg1:Event, _arg2):void{ if (_arg1 == null){ this.prMenuItem = _arg2; }; } public function createBook():void{ OGBitmapFactory.CreateBook(); iLayerWindow.addChild(OGBitmapFactory.Back); iLayerWindow.addChild(OGBitmapFactory.Book); iLayerWindow.addChild(OGBitmapFactory.NamePlus); iLayerWindow.addChild(OGBitmapFactory.LoopOnBook); iLayerWindow.addChild(OGBitmapFactory.BookUpSell); iLayerWindow.addChild(OGBitmapFactory.PlayBook); OGBitmapFactory.BookUpSell.SetVisible(false); OGBitmapFactory.PlayBook.SetVisible(false); } override protected function OnActivate(_arg1:Event):void{ super.OnActivate(_arg1); iPanelSysButtons.RefreshButtonSound(); } override protected function OnDeactivate(_arg1:Event):void{ super.OnDeactivate(_arg1); iPanelSysButtons.RefreshButtonSound(); UI.iGAME.SaveCache(); } override public function OnEnterFrame(_arg1:Event):void{ super.OnEnterFrame(_arg1); UI.iMP.OnEnterFrame(); if (UI.sDebug){ OSystem.iUserText1 = (((((((" : " + UI.iMP.State.toString()) + " : ") + UI.iMP.prActiveRoomID.toString()) + " ") + UI.iMP.prPlayerID.toString()) + " : ") + UI.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; }; if (this.iLayerWindow.contains(this.iWindow)){ this.iLayerWindow.removeChild(this.iWindow); }; this.iWindow.Free(); this.iWindow = null; this.OnMenuItem(); } else { if (!this.iWindow.prActive){ this.OnMenuItem(); }; }; }; } public function CloseAllWindows():void{ var _local1:int; var _local2:OWindow; var _local3:Array; OGBitmapFactory.BookUpSell.SetVisible(false); _local3 = new Array(); _local1 = 0; while (_local1 < this.iLayerWindow.numChildren) { if ((this.iLayerWindow.getChildAt(_local1) is OWindow)){ _local3.push(this.iLayerWindow.getChildAt(_local1)); }; _local1++; }; _local1 = 0; while (_local1 < _local3.length) { _local2 = _local3[_local1]; _local2.Free(); if (_local1 != (_local3.length - 1)){ this.iLayerWindow.removeChild(_local2); } else { _local2.prVisible = false; }; _local1++; }; } public function getTopWindow():OWindow{ var _local1:DisplayObject; var _local2:OWindow; if (this.iLayerWindow.numChildren > 0){ _local1 = this.iLayerWindow.getChildAt((this.iLayerWindow.numChildren - 1)); }; _local2 = ((_local1 is OWindow)) ? (_local1 as OWindow) : null; return (_local2); } override public function Init():void{ if (((((!(this.stage)) || ((this.stage.stageHeight == 0)))) || ((this.stage.stageWidth == 0)))){ return; }; this.InitBackground([UI.OBG01], 0); if (UI.sDebug){ this.iSystem = new OSystem(); this.addChild(this.iSystem); }; super.Init(); this.prMenuItem = UI.miIntro; OGlobal.prStage.addEventListener(Event.RESIZE, OnResize1); if (this.iLayerWindow != null){ if (this.iLayerWindow.parent != null){ this.iLayerWindow.parent.removeChild(this.iLayerWindow); }; this.iLayerWindow = null; }; this.iLayerWindow = (this.addChild(new Sprite()) as Sprite); if (this.iPanelSysButtons != null){ this.iPanelSysButtons.Free(); if (this.iPanelSysButtons.parent != null){ this.removeChild(this.iPanelSysButtons); }; this.iPanelSysButtons = null; }; if (this.iLayerAPI == null){ this.iLayerAPI = (this.addChild(new MovieClip()) as MovieClip); } else { this.addChild(this.iLayerAPI); }; if (this.iLayerAPI == null){ this.iLayerAPI = (this.addChild(new MovieClip()) as MovieClip); } else { this.addChild(this.iLayerAPI); }; iLayerAPI.visible = true; this.iPanelSysButtons = new SPanelSysButtons(); this.iPanelSysButtons.x = ((690 + 24) * OGlobal.Scale); this.iPanelSysButtons.y = (0 * OGlobal.Scale); this.iPanelSysButtons.visible = false; this.InitAd(); Partner.iAdRotator.ShowPreGameAd(this.InitGame); this.addChild(this.iPanelSysButtons); } override protected function OnMenuItem():void{ var _local2:DisplayObject; var _local1:int = this.prMenuItem; switch (_local1){ case UI.miNullWindow: return; case UI.miLastWindow: _local2 = this.getChildAt((this.numChildren - 1)); this.iWindow = this.getTopWindow(); if (this.iWindow){ this.iWindow.prActive = true; return; }; this.iWindow = new OWMenu(); this.prMenuItem = UI.miNullWindow; this.iWindow.Pos(455, 127); break; case UI.miIntro: this.iWindow = new OWIntro(); if (UI.iGAME.prPlayerName == ""){ this.prMenuItem = UI.miEnterNameFirst; } else { this.prMenuItem = UI.miMenu; }; break; case UI.miEnterNameFirst: this.iWindow = new OWEnterName(false); this.prMenuItem = UI.miMenu; break; case UI.miEnterNewName: this.iWindow = new OWEnterName(true); (this.iWindow as OWEnterName).prName = ""; this.prMenuItem = UI.miLastWindow; break; case UI.miMenu: if (UI.iGAME.prPlayerName == ""){ this.prMenuItem = UI.miEnterNameFirst; this.OnMenuItem(); return; }; if (this.iPanelSysButtons != null){ this.iPanelSysButtons.visible = true; this.iPanelSysButtons.btn_fullscreen.visible = true; }; switch (UI.iMP.State){ case OMultiplayer.stNone: UI.iMP.Init(UI.sDomain, UI.sServer, UI.sZone, UI.sXTName, UI.iGAME.prPlayerName); break; case OMultiplayer.stConnectionError: if (UI.iMP.prErrorsCount < 5){ UI.iMP.State = OMultiplayer.stNone; UI.iMP.Init(UI.sDomain, UI.sServer, UI.sZone, UI.sXTName, UI.iGAME.prPlayerName); }; break; }; this.iWindow = new OWMenu(); this.prMenuItem = UI.miNullWindow; this.iWindow.Pos(455, 127); break; case UI.miCommingSoon: this.iWindow = new OAlert(UI.OWCommingSoon, null); this.prMenuItem = UI.miLastWindow; break; case UI.miChoosePlayer: this.iWindow = new OWChoosePlayer(); this.prMenuItem = UI.miMenu; this.iWindow.prX = 475; break; case UI.miDeletePlayerConfirm: this.iWindow = new OAlert(UI.OWDeletePlayerConfirm, [UI.miDeletePlayer, UI.miChoosePlayer]); this.prMenuItem = UI.miChoosePlayer; this.iWindow.prX = 495; break; case UI.miDeletePlayer: UI.iGAME.DeletePlayer(UI.iGAME.prPlayerName); if (UI.iGAME.prPlayerName != ""){ this.OnMenuItem(); return; }; if (iPanelSysButtons != null){ iPanelSysButtons.btn_fullscreen.visible = false; }; this.iWindow = new OWEnterName(false); this.prMenuItem = UI.miLastWindow; break; case UI.miOptions: this.iWindow = new OWOptions(); this.prMenuItem = UI.miLastWindow; this.iWindow.Pos(252, 20); break; case UI.miHighScores: this.iWindow = new OWHighScores(); this.prMenuItem = UI.miLastWindow; this.iWindow.prX = 445; this.iWindow.prY = 250; break; case UI.miDeleteScoresConfirm: this.iWindow = new OAlert(UI.OWDeleteScoresConfirm, [UI.miDeleteScores, UI.miHighScores]); this.prMenuItem = UI.miHighScores; this.iWindow.prX = 495; break; case UI.miDeleteScores: if (iHighScoresTableValue == 0){ UI.iGAME.ClearLocalScores(0); } else { UI.iGAME.ClearPersonalScores(0); }; this.OnMenuItem(); return; case UI.miGameMP: iLayerAPI.x = 0; this.iWindow = new OWGame(); this.prMenuItem = UI.miMenu; break; case UI.miResultsMP: this.iWindow = new OWResults(); this.prMenuItem = UI.miLastWindow; break; case UI.miUpSell: this.iWindow = new OWUpSell(); this.prMenuItem = UI.miLastWindow; break; case UI.miInstructions: this.iWindow = new OWInstruction(); this.prMenuItem = UI.miLastWindow; this.iWindow.prY = (300 - (iWindow.prHeight / 2)); break; case UI.miInGameMenu: this.iWindow = new OWInGameMenu(); this.prMenuItem = UI.miLastWindow; break; case UI.miLanguage: this.iWindow = new OWLanguage(); this.prMenuItem = UI.miLastWindow; break; }; this.iLayerWindow.addChild(this.iWindow); } public function InitAd():void{ Partner.iAdRotator.Init(this.iLayerAPI, SConfig.language); } protected function OnResize1(_arg1:Event):void{ var _local2:Stage = Stage(_arg1.target); } public static function Path(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.substring(0, _arg1.lastIndexOf("/"))); } } }//package
Section 230
//OCGame (OCGame) package { import ENGINE.GAME.*; import MAIN.UTIL.*; public class OCGame extends OGame { public function OCGame(){ super(3, 5); } public function set prLang(_arg1:String):void{ this.iPlayer.iLang = _arg1; } 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); } public function get prLang():String{ trace(("this.iPlayer " + this.iPlayer)); if (this.iPlayer != null){ return (this.iPlayer.iLang); }; return (SConfig.language); } } }//package
Section 231
//OMultiplayerProxy (OMultiplayerProxy) package { import ENGINE.SMARTFOX.*; public class OMultiplayerProxy extends OMultiplayer { public var iEnable:Boolean;// = false public function OMultiplayerProxy(_arg1:Boolean=true){ iEnable = _arg1; if (iEnable){ super(); }; } override public function Init(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String=""):void{ if (iEnable){ super.Init(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); }; } override public function OnEnterFrame():void{ if (iEnable){ super.OnEnterFrame(); }; } override public function ClearOpponentTurn(_arg1:Boolean=false):void{ if (iEnable){ super.ClearOpponentTurn(_arg1); }; } override public function get prUsersCount():int{ if (iEnable){ return (super.prUsersCount); }; return (0); } override public function Turn(_arg1:Array=null):void{ if (iEnable){ super.Turn(_arg1); }; } } }//package
Section 232
//Partner (Partner) package { import CPMStar.*; import Mochi.*; import WellgamesAd.*; public class Partner { public static const iMobile_project:Boolean = true; public static const P_SubmitScore:Boolean = true; public static const P_MULT_PL:Boolean = false; public static var iAdRotator:AdRotator = new AdRotator([iMochiAd_pre_game], [iMochiAd_pre_level, iWellAd, iCPMStar], []); private static var iMochiAd_pre_level:OMochiAd = new OMochiAd(0, "d239d2e7449afa49", true, 10); private static var iCPMStar:OCPMStar = new OCPMStar(3024, 10); private static var iMochiAd_pre_game:OMochiAd = new OMochiAd(300, "d239d2e7449afa49", false); private static var LIST_BANER_WELL:Array = [["en", ["top/", "bottom/"]], ["de", ["de/top/", "de/bottom/"]], ["fr", ["fr/top/", "fr/bottom/"]], ["ru", ["ru/top/", "ru/bottom/"]], ["cn", ["cn/top/", "cn/bottom/"]]]; private static var iWellAd:Ad = new OWellgamesAd("mysteriez", LIST_BANER_WELL, 0, 10); } }//package
Section 233
//Preloader (Preloader) package { import flash.events.*; import flash.display.*; import flash.utils.*; import MAIN.UTIL.*; public class Preloader extends MovieClip { private var flag_time:Boolean; private var iLayerLoader:Sprite; private var iViewLoader:Sprite; private var iTimer:int; private var iLayerLogo:Sprite; private var iLayerBackground:Sprite; private var iConfigLoader:Object; private var flag_full_loading:Boolean; private static const TEXT_LOADING_CN:String = "Loading..."; private static const LOGO_X:Number = 50; private static const LOGO_Y:Number = 30; private static const LOADER_HEIGHT:Number = 4; private static const TEXT_LOADING_DE:String = "Laden..."; private static const LOADER_BORDER:Number = 5; private static const WND_HEIGHT:Number = 600; private static const TEXT_LOADING_FR:String = "Chargement..."; private static const TEXT_LOADING_Y:Number = 78; private static const TEXT_LOADING_RU:String = "Загрузка..."; private static const TIME_MIN_VISIBLE:int = 1500; private static const LOADER_X:Number = 50; private static const LOADER_Y:Number = 90; private static const WND_WIDTH:Number = 800; private static const LOADER_WIDTH:Number = 80; private static const TEXT_LOADING_EN:String = "Loading..."; public static var Lib_TextLoading:Class = Preloader_Lib_TextLoading; public static var baseUrl:String = ""; private static var Lib_Logo:Class = Preloader_Lib_Logo; public static var sPath:String = ""; public function Preloader(){ this.flag_full_loading = false; this.flag_time = false; this.iTimer = getTimer(); this.iLayerBackground = (this.addChild(new Sprite()) as Sprite); this.iLayerLogo = (this.addChild(new Sprite()) as Sprite); this.iLayerLoader = (this.addChild(new Sprite()) as Sprite); this.InitView(); this.addEventListener(Event.ENTER_FRAME, this.OnEnterFrame); this.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.OnIOError); sPath = this.loaderInfo.url; if (this.loaderInfo.parameters["baseUrl"] != undefined){ baseUrl = this.loaderInfo.parameters["baseUrl"]; }; } private function MakeLoader():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; _local1 = WND_WIDTH; _local2 = WND_HEIGHT; _local3 = ((_local1 * LOADER_WIDTH) / 100); _local4 = ((_local2 * LOADER_HEIGHT) / 100); _local5 = (((_local1 * LOADER_X) / 100) - (_local3 / 2)); _local6 = (((_local2 * LOADER_Y) / 100) - (_local4 / 2)); _local7 = LOADER_BORDER; this.iLayerLoader.graphics.lineStyle(3, 3561651); this.iLayerLoader.graphics.beginFill(0, 0); this.iLayerLoader.graphics.drawRect((_local5 - _local7), (_local6 - _local7), (_local3 + (_local7 * 2)), (_local4 + (_local7 * 2))); this.iLayerLoader.graphics.endFill(); this.iViewLoader = (this.iLayerLoader.addChild(new Sprite()) as Sprite); this.iViewLoader.x = _local5; this.iViewLoader.y = _local6; this.iViewLoader.graphics.beginFill(3561651); this.iViewLoader.graphics.drawRect(0, 0, _local3, _local4); this.iViewLoader.graphics.endFill(); this.iViewLoader.scaleX = 0; } private function StartLoadingConfig():void{ var _local1:Class; _local1 = (SConfigLoader as Class); this.iConfigLoader = new _local1(StartGame, root); } private function analiseFullLoading():void{ if (this.flag_full_loading == true){ return; }; if (this.currentFrame == this.totalFrames){ stop(); this.flag_full_loading = true; }; } private function StartGame():void{ var _local1:Class; if (this.iConfigLoader != null){ this.iConfigLoader.Free(); }; this.removeChild(this.iLayerBackground); this.removeChild(this.iLayerLoader); this.removeChild(this.iLayerLogo); this.iLayerBackground = null; this.iLayerLoader = null; this.iLayerLogo = null; this.iViewLoader = null; _local1 = (getDefinitionByName("Mysteriez2") as Class); this.addChild((new (_local1) as DisplayObject)); } private function loadingFinished():void{ this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame); this.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, this.OnIOError); this.StartLoadingConfig(); } private function OnEnterFrame(_arg1:Event):void{ this.animateProgress(); this.analiseFullLoading(); if ((((this.flag_full_loading == true)) && ((this.flag_time == true)))){ this.loadingFinished(); }; } private function MakeLogo():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:DisplayObject; _local5 = new Lib_Logo(); this.iLayerLogo.addChild(_local5); _local1 = WND_WIDTH; _local2 = WND_HEIGHT; _local3 = (((_local1 * LOGO_X) / 100) - (_local5.width / 2)); _local4 = (((_local2 * LOGO_Y) / 100) - (_local5.height / 2)); _local5.x = _local3; _local5.y = _local4; } private function MakeBackground():void{ this.iLayerBackground.graphics.beginFill(0xFFFFFF); this.iLayerBackground.graphics.drawRect(0, 0, WND_WIDTH, WND_HEIGHT); this.iLayerBackground.graphics.endFill(); } private function OnIOError(_arg1:IOErrorEvent):void{ trace(("Preloadre Error -> " + _arg1.text)); } private function MakeTextLoading():void{ var _local1:int; var _local2:DisplayObject; var _local3:String; var _local4:String; var _local5:Array; _local5 = [["/de/", TEXT_LOADING_DE], ["/fr/", TEXT_LOADING_FR], ["/ru/", TEXT_LOADING_RU], ["/cn/", TEXT_LOADING_CN]]; _local4 = this.loaderInfo.url; _local3 = TEXT_LOADING_EN; _local1 = 0; while (_local1 < _local5.length) { if (_local4.indexOf(_local5[_local1][0]) > 0){ _local3 = _local5[_local1][1]; break; }; _local1++; }; _local2 = new Lib_TextLoading(); _local2["txt"].text = _local3; _local2.x = 0; _local2.y = ((WND_HEIGHT * TEXT_LOADING_Y) / 100); this.iLayerLoader.addChild(_local2); } private function animateProgress():void{ var _local1:Number; var _local2:Number; _local1 = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal); if (_local1 < 0){ _local1 = 0; }; if (_local1 > 1){ _local1 = 1; }; _local2 = ((getTimer() - this.iTimer) / TIME_MIN_VISIBLE); if (_local2 < 0){ _local2 = 0; }; if (_local2 >= 1){ this.flag_time = true; _local2 = 1; }; this.iViewLoader.scaleX = ((_local1)<_local2) ? _local1 : _local2; } private function InitView():void{ this.MakeBackground(); this.MakeLoader(); this.MakeLogo(); this.MakeTextLoading(); } } }//package
Section 234
//Preloader_Lib_Logo (Preloader_Lib_Logo) package { import mx.core.*; public class Preloader_Lib_Logo extends BitmapAsset { } }//package
Section 235
//Preloader_Lib_TextLoading (Preloader_Lib_TextLoading) package { import flash.display.*; import mx.core.*; public class Preloader_Lib_TextLoading extends SpriteAsset { public var n10:DisplayObject; public var n12:DisplayObject; public var n14:DisplayObject; public var n16:DisplayObject; public var n11:DisplayObject; public var n8a:DisplayObject; public var n15:DisplayObject; public var n17:DisplayObject; public var btn_sound_off:DisplayObject; public var n19:DisplayObject; public var n13:DisplayObject; public var n18: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 n28:DisplayObject; public var n22:DisplayObject; public var n27:DisplayObject; public var n29:DisplayObject; public var n30:DisplayObject; public var n31:DisplayObject; public var n32:DisplayObject; public var n33:DisplayObject; public var n34:DisplayObject; public var n35:DisplayObject; public var n36:DisplayObject; public var n37:DisplayObject; public var n38:DisplayObject; public var n39:DisplayObject; public var btn:DisplayObject; public var MainBorder:DisplayObject; public var Site:DisplayObject; public var n40:DisplayObject; public var txt:DisplayObject; public var btn_fullscreen:DisplayObject; public var n1:DisplayObject; public var n2:DisplayObject; public var n3:DisplayObject; public var n4:DisplayObject; public var n5:DisplayObject; public var n6:DisplayObject; public var n7:DisplayObject; public var n8:DisplayObject; public var n9:DisplayObject; public var btn_sound_on:DisplayObject; public var text2:DisplayObject; public var btn_restore:DisplayObject; public var Name:DisplayObject; public var text1:DisplayObject; public var Name2:DisplayObject; public var iBorder:DisplayObject; } }//package
Section 236
//UI (UI) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import flash.utils.*; import ENGINE.INTERFACE.ANIMATORS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; import ENGINE.SMARTFOX.*; public class UI { public static var OTimerBorder:Class = UI_OTimerBorder; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; public static var OSSmileSInd:int = 12; public static var strNamePlus:String = "daydreaming"; public static var OWGamePause:Array; public static var miDeletePlayer:int = 9; public static var downloadableURL:String = "http://redir.absolutist.com/4-2-3/http://itunes.apple.com/us/app/mysteriez/id420612349?mt=8"; public static var iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; public static var OWGameGoal:Array = [OInterface.OIObjectMake, OWGameGoalArray, OInterface.iDefAnimators, 0, 0, null, 0, false]; public static var miDeleteScoresConfirm:int = 18; public static var cColorsParticles:Array = [0xFF0000, 0xFF00, 0xFF, 0xFFFF00, 0xFF00FF, 0xFFFF]; private static var OGNumberCounterO:Array; private static var OWSelectGameGameModeColor:Array = ["60", "30", "180", "70", "190", "220", "280", "100", "40", "150", "170", "250", "50", "260", "140", "330", "300", "350", "80", "120"]; public static var OGTimer:Array; public static var firstAdLevel:int = 1; public static var OWInfoP:Array; public static var OIRight:Class = UI_OIRight; private static var OWGameSite:Array; public static var OWHighScores:Array; public static var OWDeleteScoresConfirm:Array; public static var OGameBorder:Class = UI_OGameBorder; public static var miCommingSoon:int = 6; private static var TimeColor:int = 0xFFFFFF; public static var strConnect1URL:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static var OWGameConnection:Array; private static var OWHighScoreTabF:Array; public static var OWEnterName:Array; public static var OSBubbleBangSInd:int = 0; public static var OCursor:Class = UI_OCursor; private static var OWGameCompletedLevel:Array; public static var OWUpSell:Array; public static var OResultBorder:Class = UI_OResultBorder; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; private static var 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 var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array; public static var sBBannerPrefix:String = "bottom/"; public static var FindColors2:Array = ["150", "180", "210", "240"]; public static var OGameVersion:Class = UI_OGameVersion; public static var sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static var FindColorsO:Array = ["240", "240", "240", "240"]; public static var OButMC:Class = UI_OButMC; public static var recLevel:String; public static var strConnect2URL:String = "http://www.wellgames.com/?g=mysteriez2"; public static var miLastWindow:int = 1; public static var OStop:Class = UI_OStop; private static var OWGameScoreFOM:Array; public static var OWResultsTimeBonusScore:Array; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, UI.OWGameCounterAnimator, null]; private static var iWOptionsVolume:Array; public static var OWResultsLevelScore:Array; public static var cFontName:String = "Bankir-Retro"; public static var sLang:String = "EN"; public static var OWGameNCL:Array; public static var OLeft:Class = UI_OLeft; public static var OWResults:Array; public static var OILeft:Class = UI_OILeft; public static var ARCADE:int = 2; public static var miLanguage:int = 29; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var strSite:String = "WELLGAMES.COM"; public static var miMenu:int = 5; public static var SQUARE:int = 0; public static var numAdLevels:int = 2; public static var OWGameNewLevelWithNoOpponent:Array = [[GL.ColorHeaderM, 600, 50, UI.cColors, strSite, OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static var OWResultsRaiting:Array; private static var OTimerAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:15}; public static var OFont:Class = UI_OFont; private static var OWGameTimeF:Array; public static var OWResultsBonusScore:Array; public static var OWResultsTotalScore:Array; public static var OWGameNewLevelWithOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevel, OInterface.iDefAnimators, 0, 0, null, 0, false]; public static var miUpSell:int = 27; public static var cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); public static var OStart:Class = UI_OStart; public static var OEnterBorder:Class = UI_OEnterBorder; public static var OBorder:Class = UI_OBorder; public static var miInstructions:int = 24; public static var miOptions:int = 10; public static var sURLSite:String = "http://www.wellgames.com/?g=mysteriez2"; public static var miDeleteScores:int = 19; private static var OWGameLoadLevel:Array; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, UI.OWGameCounterAnimator, null]; public static var miDeletePlayerConfirm:int = 8; 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; public static var ODown:Class = UI_ODown; public static var sServer:String = "www.wellgames.com"; public static var cColorsSite:Array = [8810577, 8810577, 8810577, 8810577, 9599576, 11113584, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603, 11508603]; public static var OIDown:Class = UI_OIDown; public static var OWGameP:Array; public static var ODemoBorder:Class = UI_ODemoBorder; public static var sDebug:Boolean = false; public static var OScoresBorder:Class = UI_OScoresBorder; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; public static var OPlayBook:Class = UI_OPlayBook; 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 sTBannerPrefix:String = "top/"; public static var OWInstrInfo2:Array; public static var OWInstrInfo3:Array; public static var OWInstrInfo1:Array; public static var OWDeletePlayerConfirm:Array; public static var OSmallGraphic:Class = UI_OSmallGraphic; public static var miGameMP:int = 21; public static var OBG01:Class = UI_OBG01; public static var sXTName:String = "m2"; public static var OBack:Class = UI_OBack; public static var OWGameNewLevel:Array; public static var OWChoosePlayer:Array; public static var miResultsMP:int = 22; public static var OFontArial:Class = UI_OFontArial; public static var OSBubbleBang01:Class = UI_OSBubbleBang01; public static var OWSSaver:Array; public static var OSBubbleBang03:Class = UI_OSBubbleBang03; public static var Lib_fullscreen:Class = UI_Lib_fullscreen; public static var OSBubbleBang06:Class = UI_OSBubbleBang06; public static var OSBubbleBang07:Class = UI_OSBubbleBang07; public static var OSBubbleBang02:Class = UI_OSBubbleBang02; public static var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; public static var OSBubbleBang04:Class = UI_OSBubbleBang04; private static var iGameType:int = 0; public static var OWInstructionsInfo:Array; public static var OSBubbleBang05:Class = UI_OSBubbleBang05; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var HEXAGON:int = 1; public static var OWGame:Array; public static var DEMO:int = 3; public static var TRIANGLE:int = 2; public static var OUnLoop:Class = UI_OUnLoop; public static var sURLGame:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static var miEnterNewName:int = 4; public static var OIUp:Class = UI_OIUp; private static var OWGameCompletedLevelM:Array; public static var OWGameGoalArray:Array; public static var miIntro:int = 2; private static var OWHighScoresType:Array; public static var OSelectBorder:Class = UI_OSelectBorder; public static var ButUpSell:Class = UI_ButUpSell; public static var OBorderM:Class = UI_OBorderM; public static var OWResultsRaitingS:Array; private static var 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 var OWInGameMenuParam:Array; public static var cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static var ButtonUpSell:Class = UI_ButtonUpSell; public static var OWInstructionsText:Array; public static var OBookUpSell:Class = UI_OBookUpSell; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array; private static var OWGameScoreF:Array; public static var OChoosePBorder:Class = UI_OChoosePBorder; public static var miResultsSP:int = 15; public static var OWBorderM:Class = UI_OWBorderM; 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 miSSaver:int = 25; public static var OGInfo:Array; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, UI.OTimerAnimator, null]; public static var Lib_sound:Class = UI_Lib_sound; 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"]; public static var sZone:String = "Mysteriez2"; public static var OGameNameM:Class = UI_OGameNameM; public static var OGFindO:Array; private static var OWGameNotCompletedLevel:Array; public static var miLevelEditor:int = 26; public static var OSiteM:Class = UI_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 sBannerID:String = "mysteriez2"; public static var OLoopOnBook:Class = UI_OLoopOnBook; public static var OSSmileEInd:int = 14; public static var OWInfoPUserNotFound:Array; public static var OWInputParam:Array; public static var strGameName:String = "MYSTERIEZ2!"; private static var OWHighScoreTabFM:Array; public static var OConfirmBorder:Class = UI_OConfirmBorder; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, UI.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array; public static var ORight:Class = UI_ORight; public static var miNullWindow:int = 0; public static var OWLanguageParam:Array; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var sDomain:String = "wellgames.com"; public static var OWMenuReiting:Array = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var miHighScores:int = 17; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI.OWGameCounterAnimator, null]; public static var OGameLoop:Class = UI_OGameLoop; public static var OWInfoPConnect:Array; public static var FallParticle:Class = UI_FallParticle; public static var OWLoadProgress:Array; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; private static var iWOptionsOnOff:Array; public static var OSBubbleBangEInd:int = 10; public static var OUp:Class = UI_OUp; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; public static var OWMenu:Array; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; public static var miInGameMenu:int = 28; public static var STRATEGY:int = 1; private static var OGNumberCounter:Array; private static var OWGameScoreFM:Array; public static var OLoop:Class = UI_OLoop; public static var miChoosePlayer:int = 7; public static var OWOptions:Array; private static var OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static var miEnterNameFirst:int = 3; public static var OWInstructions:Array; public static var cColors:Array = [8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; private static var OWGameNotCompletedLevelM:Array; public static var OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; public static var OGFind:Array; public static var iMP:OMultiplayer = new OMultiplayerProxy(Partner.P_MULT_PL); public static var OBook:Class = UI_OBook; private static var OWGameLevelF:Array; public static var showAD:Boolean = true; public static var OWInfoPPlayer:Array; public static var OWGameCL:Array; public static var OSOops:int = 15; public static var iGAME:OCGame = new OCGame(); public static var OWDemo:Array; private static var OWGameLevelFM:Array; public static var Lib_language:Class = UI_Lib_language; private static function list_class_language():void{ } public static function set GameType(_arg1:int):void{ iGameType = _arg1; iGAME.prMode = iGameType; } public static function ReInit():void{ var _local1:int; var _local2:XML; var _local3:Class; var _local4:int; _local4 = 0; _local1 = 0; while (_local1 < SConfig.list_language.length) { if (SConfig.list_language[_local1][0] == SConfig.language){ _local4 = _local1; break; }; _local1++; }; if (UI.iGAME.prPlayerName == ""){ trace("User Not Found"); } else { UI.iGAME.prLang = SConfig.language; }; trace(("Apply Language -> " + SConfig.language)); _local2 = SConfigLoader.getXMLFile(SConfig.list_language[_local4][1]); SStrings.AddStrings(_local2); _local3 = (getDefinitionByName(SConfig.list_language[_local4][3]) as Class); if (SConfig.list_language[_local4][3] == "LibraryDefault"){ LibraryDefault.ReInit(); }; sTBannerPrefix = _local3.sTBannerPrefix; sBBannerPrefix = _local3.sBBannerPrefix; sBannerID = _local3.sBannerID; sURLSite = _local3.sURLSite; sURLGame = _local3.sURLGame; OWIntroParam = _local3.OWIntroParam; OWUpSell = _local3.OWUpSell; OWChoosePlayer = _local3.OWChoosePlayer; OWEnterName = _local3.OWEnterName; OWMenuReiting = _local3.OWMenuReiting; OWMenu = _local3.OWMenu; OWCommingSoon = _local3.OWCommingSoon; OWDeletePlayerConfirm = _local3.OWDeletePlayerConfirm; OWOptions = _local3.OWOptions; OWResultsScoreT = _local3.OWResultsScoreT; OWResultsRaitingS = _local3.OWResultsRaitingS; OWResultsLevelScore = _local3.OWResultsLevelScore; OWResultsBonusScore = _local3.OWResultsBonusScore; OWResultsTotalScore = _local3.OWResultsTotalScore; OWResultsTimeBonusScore = _local3.OWResultsTimeBonusScore; OWResultsRaiting = _local3.OWResultsRaiting; OWResults = _local3.OWResults; OWHighScoreLocalM = _local3.OWHighScoreLocalM; OWHighScorePersonalM = _local3.OWHighScorePersonalM; OWHighScoreLocal = _local3.OWHighScoreLocal; OWHighScorePersonal = _local3.OWHighScorePersonal; OWHighScores = _local3.OWHighScores; OWDeleteScoresConfirm = _local3.OWDeleteScoresConfirm; OWInstructionsText = _local3.OWInstructionsText; OWInstrInfo1 = _local3.OWInstrInfo1; OWInstrInfo2 = _local3.OWInstrInfo2; OWInstrInfo3 = _local3.OWInstrInfo3; OWInstructionsInfo = _local3.OWInstructionsInfo; OWInstructions = _local3.OWInstructions; OWInfoPConnect = _local3.OWInfoPConnect; OWInfoPUserNotFound = _local3.OWInfoPUserNotFound; OWInfoP = _local3.OWInfoP; OWInfoPPlayer = _local3.OWInfoPPlayer; OWGameConnection = _local3.OWGameConnection; OWGameNewLevel = _local3.OWGameNewLevel; OWGameNewLevelWithOpponent = _local3.OWGameNewLevelWithOpponent; OWGameNewLevelWithNoOpponent = _local3.OWGameNewLevelWithNoOpponent; OWGameNewLevelWithHoutOpponent = _local3.OWGameNewLevelWithHoutOpponent; OWGameGoal = _local3.OWGameGoal; OWGameGoal = _local3.OWGameGoal; OWGameScoreElement = _local3.OWGameScoreElement; OWGameScoreElementO = _local3.OWGameScoreElementO; OGNumberCounterElement = _local3.OGNumberCounterElement; OGFind = _local3.OGFind; OGNumberCounterElementO = _local3.OGNumberCounterElementO; OGFindO = _local3.OGFindO; OWGameTimeElement = _local3.OWGameTimeElement; OGTimer = _local3.OGTimer; OWGameLevelElement = _local3.OWGameLevelElement; OGInfo = _local3.OGInfo; OWGamePause = _local3.OWGamePause; OWGameP = _local3.OWGameP; OWDemo = _local3.OWDemo; OWGame = _local3.OWGame; OWGameCL = _local3.OWGameCL; OWGameNCL = _local3.OWGameNCL; OWGameLoadLevelElement = _local3.OWGameLoadLevelElement; OWLoadProgress = _local3.OWLoadProgress; OWInGameMenuParam = _local3.OWInGameMenuParam; OWLanguageParam = _local3.OWLanguageParam; strConnect1URL = _local3.strConnect1URL; strConnect2URL = _local3.strConnect2URL; strConnect3URL = _local3.strConnect3URL; sURLGame = _local3.sURLGame; sURLSite = _local3.sURLSite; downloadableURL = _local3.downloadableURL; sURLRating = _local3.sURLRating; sLang = _local3.sLang; } public static function get GameType():int{ return (iGameType); } } }//package
Section 237
//UI_ButtonUpSell (UI_ButtonUpSell) package { import flash.display.*; import mx.core.*; public class UI_ButtonUpSell extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 238
//UI_ButUpSell (UI_ButUpSell) package { import mx.core.*; public class UI_ButUpSell extends ButtonAsset { } }//package
Section 239
//UI_DE (UI_DE) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class UI_DE { public static const HEXAGON:int = 1; public static const DEMO:int = 3; public static const TRIANGLE:int = 2; public static const sURLGame:String = "http://www.wellgames.com/de/free_online/mysteriez2/?g=mysteriez2_de"; public static const miEnterNewName:int = 4; public static const OSSmileSInd:int = 12; public static const miDeletePlayer:int = 9; public static const downloadableURL:String = "http://redir.absolutist.com/4-2-3/http://itunes.apple.com/de/app/mysteriez/id420612349?mt=8"; public static const miIntro:int = 2; 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 iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; private static const OWHighScoresType:Array = [SStrings.getString("strLocal"), SStrings.getString("strPersonal")]; public static const firstAdLevel:int = 1; 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 cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static const miCommingSoon:int = 6; public static const strConnect1URL:String = "http://www.wellgames.com/de/free_online/mysteriez2/?g=mysteriez2_de"; public static const OWInstructionsText:Array = [SStrings.getString("strInstructionsText1"), SStrings.getString("strInstructionsText2"), SStrings.getString("strInstructionsText3")]; public static const OSBubbleBangSInd:int = 0; public static const miResultsSP:int = 15; public static const miSSaver:int = 25; 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 sBBannerPrefix:String = "de/bottom/"; public static const sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static const sZone:String = "Mysteriez2"; public static const miLevelEditor:int = 26; public static const sBannerID:String = "mysteriez2"; public static const miLastWindow:int = 1; public static const strConnect2URL:String = "http://www.wellgames.com/de/?g=mysteriez2_de"; public static const OSSmileEInd:int = 14; private static const iWOptionsVolume:Array = [SStrings.getString("strOff"), "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; public static const sLang:String = "DE"; public static const cFontName:String = "Bankir-Retro"; public static const ARCADE:int = 2; public static const miNullWindow:int = 0; public static const sDomain:String = "wellgames.com"; public static const numAdLevels:int = 2; public static const miMenu:int = 5; public static const miHighScores:int = 17; public static const strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/de/free_online/mysteriez2/?g=mysteriez2_de"; private static const iWOptionsOnOff:Array = [SStrings.getString("strOff"), SStrings.getString("strOn")]; public static const miUpSell:int = 27; public static const cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static const OSBubbleBangEInd:int = 10; public static const miInstructions:int = 24; public static const miOptions:int = 10; public static const sURLSite:String = "http://www.wellgames.com/de/?g=mysteriez2_de"; public static const miDeleteScores:int = 19; public static const STRATEGY:int = 1; public static const miDeletePlayerConfirm:int = 8; public static const SQUARE:int = 0; public static const miChoosePlayer:int = 7; 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 sDebug:Boolean = false; private static const OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static const miEnterNameFirst:int = 3; public static const cColors:Array = [8810577]; public static const OWInstrInfo1:Array = [[GL.HeaderM, 550, 25, cMainColors[0], SStrings.getString("strInstructionsText1"), 0, 0, null, 0, true]]; public static const OWInstrInfo3:Array = [[GL.MakeCheckBoxM, 80, 60, "yellow", UI.OLoop, UI.OUnLoop, 40, -15, null, 0, true], [GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText3"), 0, -30, null, 0, true]]; public static const sTBannerPrefix:String = "de/top/"; public static const OWInstrInfo2:Array = [[GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText2"), 0, -30, null, 0, true]]; public static const miGameMP:int = 21; public static const sXTName:String = "m2"; public static const miResultsMP:int = 22; public static const showAD:Boolean = true; public static const OWInstructionsInfo:Array = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; public static const OSOops:int = 15; public static var OWGame:Array = [[GL.MakeBitmapFromLib, 165, 61, UI.OGameNameM, 635, 12, "iGameName", 0, false], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMenu"), 635, 520, "iMenu", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [GL.MakeCheckBoxM, 64, 53, "yellow", UI.OLoop, UI.OUnLoop, 655, 470, "iLoop", 0, false], [GL.MakeCheckBoxM, 64, 53, "green", UI.OStop, UI.OStart, 725, 470, "iPause", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strLevel1").toLowerCase(), OInterface.iDefAnimators, 650, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 730, 435, "iLevelCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 730, 144, "iScoreCounterO", 0, false], [GL.BorderM, 160, 220, cMainColors[3], UI.OGameBorder, 631, 293, "iBorder", 0, false]]; public static var OWDemo:Array = [GL.MakeTextButton, 130, 35, "magenta", "magenta", 20, SStrings.getString("strMissed"), 305, 140, null, 0, false]; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; private static var OWGameCompletedLevelM:Array = [[GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strComplete"), 0, 67, null, 0, true], [GL.HeaderM, 600, 35, cMainColors[0], SStrings.getString("strPrToCont"), 0, 140, null, 0, true]]; public static var OWGamePause:Array = [[GL.ColorHeaderM, 600, 60, cColors, SStrings.getString("strPause"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 30, cColors, SStrings.getString("strPrToCont"), OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; public static var OWGameGoalArray:Array = [[GL.ColorHeaderM, 600, 50, UI_DE.cColors, SStrings.getString("strCountNumbers1"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 50, UI_DE.cColors, SStrings.getString("strCountNumbers2"), OInterface.iDefAnimators, 0, 60, null, 0, true], [GL.ColorHeaderM, 600, 30, UI_DE.cColors, (" " + SStrings.getString("strClick").toLowerCase()), OInterface.iDefAnimators, 0, 140, 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 = [[GL.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [GL.BorderM, 162, 37, TimeColor, UI.OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [GL.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 OWResultsRaitingS:Array = [[GL.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; public static var OWInfoP:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 120, null, 0, true]]; private static var OWGameSite:Array = [[GL.MakeBitmapFromLib, 130, 15, UI.OSiteM, 0, 0, null, 0, true]]; public static var OWDeleteScoresConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeleteScoresConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 12, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInGameMenuParam:Array = [[GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMainMenu"), 200, 180, "btnMainMenu", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strOptions"), 200, 235, "btnOptions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strInstructions"), 200, 290, "btnInstructions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMoreGames"), 200, 345, "btnMoreGames", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strResume"), 200, 400, "btnResume", 0, true]]; public static var OWHighScores:Array = [[GL.HeaderM, 300, 25, cMainColors[0], SStrings.getString("strHighScores"), 0, -130, null, 0, true], [GL.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", UI_DE.OWHighScoresType, 45, -90, "iType", 0, true], [GL.BorderM, 288, 206, cMainColors[3], UI.OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, UI_DE.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strClear"), 50, 170, "iClear", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strClose"), 165, 170, "iClose", 0, true]]; private static var TimeColor:int = 0xFFFFFF; private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_DE.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_DE.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, UI_DE.OTimerAnimator, null]; public static var OWEnterName:Array = [[GL.HeaderM, 230, 25, cMainColors[0], SStrings.getString("strNewPlayer"), 0, 20, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterName"), 0, 90, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterNameLat"), 0, 170, null, 0, true], [GL.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strAccept"), 22, 210, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strCancel"), 122, 210, "iCancel", 0, true]]; public static var OWGameConnection:Array = [GL.ColorHeaderM, 600, 50, UI_DE.cColors, SStrings.getString("strConnectionToServer"), OInterface.iDefSlowAnimators]; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array = [[GL.Header, 800, 60, "yellow1", ((SStrings.getString("strLevel") + " ") + SStrings.getString("strScore")), 0, 0, null, 0, true]]; private static var OWGameCompletedLevel:Array = [[GL.Header, 600, 60, "yellow", SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.Header, 600, 60, "yellow", SStrings.getString("strComplete"), 0, 60, null, 0, true], [GL.Header, 600, 35, "yellow", SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; 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 OWUpSell:Array = [[GL.HeaderM, 240, 35, cColorsGameName[0], SStrings.getString("strUpSellName"), 80, 60, null, 0, true], [GL.HeaderM, 240, 18, cColorsGameName[0], SStrings.getString("strUpSellText"), 80, 100, null, 0, true], [GL.InvisibleButton, 250, 86, 1000, 400, "iContinue", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strContinue"), 540, 335, "iOptions", 0, true]]; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; 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 OGInfo:Array = [[GL.HeaderM, 200, 50, 0xFF0000, (SStrings.getString("strTimeDecrease") + OGGame.iDecreaseTime.toString()), 0, 0, null, 0, false]]; public static var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array = [[GL.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 530, 50, "red", SStrings.getString("strCommingSoon"), 0, 20, null, 0, true], [GL.Header, 530, 30, "magenta", SStrings.getString("strCommingSoonI"), 0, 125, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 190, 210, null, 0, true]]; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, UI_DE.OTimerAnimator, null]; public static var FindColors2:Array = ["150", "180", "210", "240"]; 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"]; public static var OGFindO:Array = [[GL.ColorHeader, 60, 20, FindColorsO, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [GL.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; private static var OWGameNotCompletedLevel:Array = [[GL.Header, 600, 60, "red", SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.Header, 600, 35, "red", SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWInfoPUserNotFound:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 100, null, 0, true], [GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 125, null, 0, true]]; 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 recLevel:String; public static var OWInputParam:Array = [[GL.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 600, 40, "aqua1", SStrings.getString("strInputText"), 0, 30, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 225, 310, "iClose", 0, true]]; public static var OWResults:Array = [[GL.ColorHeaderM, 800, 40, cColorsSite, SStrings.getString("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], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strNextLevel").toLowerCase(), (545 - 75), 300, "iButtons", 0, false], [GL.BorderM, 290, 240, cMainColors[3], UI.OResultBorder, 450, 45, null, 0, false], [GL.MakeNewButton, 100, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strSubmitScore").toLowerCase(), (610 + 15), 300, "iSubmit", 0, false]]; 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]], 14, 20]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_DE.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_DE.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, UI_DE.OTimerAnimator, null]; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, UI_DE.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strGainedScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWResultsTimeBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strTimeBonus").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, UI_DE.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array = [[GL.MakeTextButton, 200, 50, "white", "white", 25, SStrings.getString("strMenu"), 558, 490, "iMenu", 0, false]]; public static var OWGameNCL:Array = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWLanguageParam:Array = [[GL.HeaderM, 350, 40, cMainColors[0], SStrings.getString("strLanguage"), (225 + 200), (130 - 20), null, 0, true], [GL.ListBoxTextM, 200, 40, cMainColors[5], cMainColors[2], 5, null, ((200 + 200) + 65), (195 - 20), "iListBox", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strChange"), (((200 + 200) + 75) - 5), (439 - 20), "btnChange", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), ((410 + 200) - 5), (439 - 20), "btnCancel", 0, true]]; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var OWMenuReiting:Array = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; public static var OWGameNewLevelWithNoOpponent:Array = [[GL.ColorHeaderM, 600, 50, UI_DE.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWInfoPConnect:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 70, null, 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strPlayOnline"), 35, 175, null, 0, true]]; public static var OWResultsRaiting:Array = [[GL.ColorHeaderM, 800, 25, cColorsSite, SStrings.getString("strYourRaiting"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.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}; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strBonusScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWLoadProgress:Array = [[GL.ColorHeaderM, 800, 50, cColorsSite, SStrings.getString("strLoadingLevel"), OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; public static var OWResultsTotalScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strLevelScoreR").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.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]; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); 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 OWMenu:Array = [[GL.HeaderM, 300, 20, cMainColors[4], SStrings.getString("strWelcome"), 0, 0, null, 0, true], [GL.HeaderM, 300, 18, cMainColors[5], SStrings.getString("strChangePlayer"), 0, 30, "iTextChange", 0, true], [GL.BorderM, 330, 63, cMainColors[3], UI.OWBorderM, -10, 0, null, 0, true], [GL.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [GL.ColorTextM, 15, cMainColors[4], SStrings.getString("strPlayersOnline").toLowerCase(), null, -5, 35, "iPlayers", 0, true], [GL.MakeNewButton, 155, 40, cMainColors[5], cMainColors[2], 25, SStrings.getString("strPlayOnline"), 70, 100, "iPlayOnlineStrategy", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strOptions"), 87, 180, "iOptions", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strHighScores"), 87, 215, "iHighScores", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strInstructions"), 87, 250, "iInstructions", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMoreGames"), 87, 285, "iMoreGames", 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, UI_DE.OWGameCounterAnimator, null]; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, 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 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"]; 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 OWIntroParam:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [GL.MakeBitmapFromLib, 0, 25, UI.OSiteM, 240, 275, "iHeader", 0, true], [GL.MakeBitmapFromLib, 0, 83, UI.OGameNameM, 100, 200, "iName", 0, true], [GL.MakeBitmapFromLib, 0, 60, UI.OGameVersion, 200, 360, "iVersion", 0, true], [GL.HeaderM, 400, 20, cMainColors[0], SStrings.getString("strPresents"), 0, 420, "iFooter", 0, true]]; public static var OWOptions:Array = [[GL.HeaderM, 200, 40, cMainColors[0], SStrings.getString("strOptions"), 240, 90, null, 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strSound"), UI_DE.iWOptionsVolume, 187, 200, "iSound", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strMusic"), UI_DE.iWOptionsVolume, 187, 250, "iMusic", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strFullScreen"), UI_DE.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strAccept"), 250, 405, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strCancel"), 350, 405, "iCancel", 0, true], [GL.BorderM, 290, 150, cMainColors[3], UI.OBorderM, 197, 160, null, 0, true], [GL.BorderM, 290, 80, cMainColors[3], UI.OBorderM, 197, 320, null, 0, true]]; public static var OWGameP:Array = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; public static var OWInstructions:Array = [[GL.HeaderM, 600, 50, cMainColors[0], SStrings.getString("strHowToPlay"), 0, 0, null, 0, true], [GL.BorderM, 318, 318, cMainColors[3], UI.ODemoBorder, 125, 125, "iBorder", 0, true], [GL.MakeBitmapFromLib, 28, 90, UI.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [GL.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 30, SStrings.getString("strClose"), 645, 460, "iClose", 0, true]]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; public static var OGFind:Array = [[GL.ColorHeader, 190, 28, FindColors1, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [GL.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; 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 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 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 OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; public static var OWDeletePlayerConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeletePlayerConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 18, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; private static var OWGameNotCompletedLevelM:Array = [[GL.HeaderM, 600, 60, 10040115, SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.HeaderM, 600, 35, 10040115, SStrings.getString("strPrToCont"), 0, 80, null, 0, true]]; public static var OWInfoPPlayer:Array = [[GL.ColorHeaderM, 190, 20, UI_DE.OWInfoColors, SStrings.getString("strLevel").toLowerCase(), null, 10, 37, null, 0, true]]; public static var OWGameNewLevel:Array = [[GL.ColorHeaderM, 600, 50, UI_DE.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_DE.cColors, SStrings.getString("strOpponent1"), OInterface.iDefAnimators, 0, 80, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_DE.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 150, null, 0, true]]; public static var OWChoosePlayer:Array = [[GL.HeaderM, 250, 25, cMainColors[0], SStrings.getString("strChoosePlayer"), -10, -60, null, 0, true], [GL.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strNew"), 15, 194, "iNew", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strDelete"), 145, 194, "iDelete", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strAccept"), 30, 230, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 18, SStrings.getString("strCancel"), 130, 230, "iCancel", 0, true]]; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, 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]; private static var iGameType:int = 0; 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 var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, UI_DE.OWGameCounterAnimator, null]; public static var OWSSaver:Array = [[GL.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, SStrings.getString("strMenu"), 0, 0, "iMenu", 0, true], [GL.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, SStrings.getString("strSite"), 0, 0, "iSite", 0, true]]; public static function get GameType():int{ return (iGameType); } public static function set GameType(_arg1:int):void{ iGameType = _arg1; UI.iGAME.prMode = iGameType; } } }//package
Section 240
//UI_EN (UI_EN) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class UI_EN { public static const HEXAGON:int = 1; public static const DEMO:int = 3; public static const TRIANGLE:int = 2; public static const sURLGame:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static const miEnterNewName:int = 4; public static const OSSmileSInd:int = 12; public static const miDeletePlayer:int = 9; public static const downloadableURL:String = "http://redir.absolutist.com/4-2-3/http://itunes.apple.com/us/app/mysteriez/id420612349?mt=8"; public static const miIntro:int = 2; 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 iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; private static const OWHighScoresType:Array = [SStrings.getString("strLocal"), SStrings.getString("strPersonal")]; public static const firstAdLevel:int = 1; 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 cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static const miCommingSoon:int = 6; public static const strConnect1URL:String = "http://www.wellgames.com/free_online/mysteriez2/?g=mysteriez2"; public static const OWInstructionsText:Array = [SStrings.getString("strInstructionsText1"), SStrings.getString("strInstructionsText2"), SStrings.getString("strInstructionsText3")]; public static const OSBubbleBangSInd:int = 0; public static const miResultsSP:int = 15; public static const miSSaver:int = 25; 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 sBBannerPrefix:String = "bottom/"; public static const sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static const sZone:String = "Mysteriez2"; public static const miLevelEditor:int = 26; public static const sBannerID:String = "mysteriez2"; public static const miLastWindow:int = 1; public static const strConnect2URL:String = "http://www.wellgames.com/?g=mysteriez2"; public static const OSSmileEInd:int = 14; private static const iWOptionsVolume:Array = [SStrings.getString("strOff"), "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; public static const sLang:String = "EN"; public static const cFontName:String = "Bankir-Retro"; public static const ARCADE:int = 2; public static const miNullWindow:int = 0; public static const sDomain:String = "wellgames.com"; public static const numAdLevels:int = 2; public static const miMenu:int = 5; public static const miHighScores:int = 17; public static const strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/mysteriez2/?g=mysteriez2"; private static const iWOptionsOnOff:Array = [SStrings.getString("strOff"), SStrings.getString("strOn")]; public static const miUpSell:int = 27; public static const cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static const OSBubbleBangEInd:int = 10; public static const miInstructions:int = 24; public static const miOptions:int = 10; public static const sURLSite:String = "http://www.wellgames.com/?g=mysteriez2"; public static const miDeleteScores:int = 19; public static const STRATEGY:int = 1; public static const miDeletePlayerConfirm:int = 8; public static const SQUARE:int = 0; public static const miChoosePlayer:int = 7; 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 sDebug:Boolean = false; private static const OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static const miEnterNameFirst:int = 3; public static const cColors:Array = [8810577]; public static const OWInstrInfo1:Array = [[GL.HeaderM, 550, 25, cMainColors[0], SStrings.getString("strInstructionsText1"), 0, 0, null, 0, true]]; public static const OWInstrInfo3:Array = [[GL.MakeCheckBoxM, 80, 60, "yellow", UI.OLoop, UI.OUnLoop, 40, -15, null, 0, true], [GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText3"), 0, -30, null, 0, true]]; public static const sTBannerPrefix:String = "top/"; public static const OWInstrInfo2:Array = [[GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText2"), 0, -30, null, 0, true]]; public static const miGameMP:int = 21; public static const sXTName:String = "m2"; public static const miResultsMP:int = 22; public static const showAD:Boolean = true; public static const OWInstructionsInfo:Array = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; public static const OSOops:int = 15; public static var OWGame:Array = [[GL.MakeBitmapFromLib, 165, 61, UI.OGameNameM, 635, 12, "iGameName", 0, false], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMenu"), 635, 520, "iMenu", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [GL.MakeCheckBoxM, 64, 53, "yellow", UI.OLoop, UI.OUnLoop, 655, 470, "iLoop", 0, false], [GL.MakeCheckBoxM, 64, 53, "green", UI.OStop, UI.OStart, 725, 470, "iPause", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strLevel1").toLowerCase(), OInterface.iDefAnimators, 650, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 730, 435, "iLevelCounter", 0, false], [GL.ColorHeaderM, 150, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 600, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 698, 144, "iScoreCounterO", 0, false], [GL.BorderM, 160, 220, cMainColors[3], UI.OGameBorder, 631, 293, "iBorder", 0, false]]; public static var OWDemo:Array = [GL.MakeTextButton, 130, 35, "magenta", "magenta", 20, SStrings.getString("strMissed"), 305, 140, null, 0, false]; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; private static var OWGameCompletedLevelM:Array = [[GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strComplete"), 0, 67, null, 0, true], [GL.HeaderM, 600, 35, cMainColors[0], SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; public static var OWGamePause:Array = [[GL.ColorHeaderM, 600, 60, cColors, SStrings.getString("strPause"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 30, cColors, SStrings.getString("strPrToCont"), OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; public static var OWGameGoalArray:Array = [[GL.ColorHeaderM, 600, 50, UI_EN.cColors, SStrings.getString("strCountNumbers1"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 50, UI_EN.cColors, SStrings.getString("strCountNumbers2"), OInterface.iDefAnimators, 0, 60, null, 0, true], [GL.ColorHeaderM, 600, 30, UI_EN.cColors, (" " + SStrings.getString("strClick").toLowerCase()), OInterface.iDefAnimators, 0, 140, 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 = [[GL.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [GL.BorderM, 162, 37, TimeColor, UI.OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [GL.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 OWResultsRaitingS:Array = [[GL.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; public static var OWInfoP:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 120, null, 0, true]]; private static var OWGameSite:Array = [[GL.MakeBitmapFromLib, 130, 15, UI.OSiteM, 0, 0, null, 0, true]]; public static var OWDeleteScoresConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeleteScoresConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 12, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInGameMenuParam:Array = [[GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMainMenu"), 200, 180, "btnMainMenu", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strOptions"), 200, 235, "btnOptions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strInstructions"), 200, 290, "btnInstructions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMoreGames"), 200, 345, "btnMoreGames", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strResume"), 200, 400, "btnResume", 0, true]]; public static var OWHighScores:Array = [[GL.HeaderM, 300, 25, cMainColors[0], SStrings.getString("strHighScores"), 0, -130, null, 0, true], [GL.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", UI_EN.OWHighScoresType, 45, -90, "iType", 0, true], [GL.BorderM, 288, 206, cMainColors[3], UI.OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, UI_EN.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strClear"), 55, 170, "iClear", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strClose"), 170, 170, "iClose", 0, true]]; private static var TimeColor:int = 0xFFFFFF; private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_EN.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_EN.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, UI_EN.OTimerAnimator, null]; public static var OWEnterName:Array = [[GL.HeaderM, 230, 25, cMainColors[0], SStrings.getString("strNewPlayer"), 0, 20, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterName"), 0, 90, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterNameLat"), 0, 170, null, 0, true], [GL.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), 35, 210, "iAccept", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 120, 210, "iCancel", 0, true]]; public static var OWGameConnection:Array = [GL.ColorHeaderM, 600, 50, UI.cColorsSite, SStrings.getString("strConnectionToServer"), OInterface.iDefSlowAnimators]; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array = [[GL.Header, 800, 60, "yellow1", ((SStrings.getString("strLevel") + " ") + SStrings.getString("strScore")), 0, 0, null, 0, true]]; private static var OWGameCompletedLevel:Array = [[GL.Header, 600, 60, "yellow", SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.Header, 600, 60, "yellow", SStrings.getString("strComplete"), 0, 60, null, 0, true], [GL.Header, 600, 35, "yellow", SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; 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 OWUpSell:Array = [[GL.HeaderM, 240, 35, cColorsGameName[0], SStrings.getString("strUpSellName"), 80, 60, null, 0, true], [GL.HeaderM, 240, 21, cColorsGameName[0], SStrings.getString("strUpSellText"), 80, 150, null, 0, true], [GL.InvisibleButton, 250, 86, 1000, 400, "iContinue", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strContinue"), 540, 335, "iOptions", 0, true]]; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; 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 OGInfo:Array = [[GL.HeaderM, 200, 50, 0xFF0000, (SStrings.getString("strTimeDecrease") + OGGame.iDecreaseTime.toString()), 0, 0, null, 0, false]]; public static var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array = [[GL.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 530, 50, "red", SStrings.getString("strCommingSoon"), 0, 20, null, 0, true], [GL.Header, 530, 30, "magenta", SStrings.getString("strCommingSoonI"), 0, 125, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 190, 210, null, 0, true]]; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, UI_EN.OTimerAnimator, null]; public static var FindColors2:Array = ["150", "180", "210", "240"]; 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"]; public static var OGFindO:Array = [[GL.ColorHeader, 60, 20, FindColorsO, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [GL.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; private static var OWGameNotCompletedLevel:Array = [[GL.Header, 600, 60, "red", SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.Header, 600, 35, "red", SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWInfoPUserNotFound:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 100, null, 0, true], [GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 125, null, 0, true]]; 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 recLevel:String; public static var OWInputParam:Array = [[GL.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 600, 40, "aqua1", SStrings.getString("strInputText"), 0, 30, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 225, 310, "iClose", 0, true]]; public static var OWResults:Array = [[GL.ColorHeaderM, 800, 40, cColorsSite, SStrings.getString("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], [GL.MakeNewButton, 100, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNextLevel").toLowerCase(), (545 - 75), 300, "iButtons", 0, false], [GL.BorderM, 290, 240, cMainColors[3], UI.OResultBorder, 450, 45, null, 0, false], [GL.MakeNewButton, 100, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strSubmitScore").toLowerCase(), (610 + 15), 300, "iSubmit", 0, false]]; 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]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_EN.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_EN.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, UI_EN.OTimerAnimator, null]; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, UI_EN.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strGainedScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWResultsTimeBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strTimeBonus").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, UI_EN.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array = [[GL.MakeTextButton, 200, 50, "white", "white", 25, SStrings.getString("strMenu"), 558, 490, "iMenu", 0, false]]; public static var OWGameNCL:Array = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWLanguageParam:Array = [[GL.HeaderM, 350, 40, cMainColors[0], SStrings.getString("strLanguage"), (225 + 200), (130 - 20), null, 0, true], [GL.ListBoxTextM, 200, 40, cMainColors[5], cMainColors[2], 5, null, ((200 + 200) + 65), (195 - 20), "iListBox", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strChange"), (((200 + 200) + 75) - 5), (439 - 20), "btnChange", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), ((410 + 200) - 5), (439 - 20), "btnCancel", 0, true]]; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var OWMenuReiting:Array = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; public static var OWGameNewLevelWithNoOpponent:Array = [[GL.ColorHeaderM, 600, 50, UI_EN.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWInfoPConnect:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 70, null, 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 25, SStrings.getString("strPlayOnline"), 35, 175, null, 0, true]]; public static var OWResultsRaiting:Array = [[GL.ColorHeaderM, 800, 25, cColorsSite, SStrings.getString("strYourRaiting"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.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}; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strBonusScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWLoadProgress:Array = [[GL.ColorHeaderM, 800, 50, cColorsSite, SStrings.getString("strLoadingLevel"), OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; public static var OWResultsTotalScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strLevelScoreR").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.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]; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); 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 OWMenu:Array = [[GL.HeaderM, 300, 20, cMainColors[4], SStrings.getString("strWelcome"), 0, 0, null, 0, true], [GL.HeaderM, 300, 18, cMainColors[5], SStrings.getString("strChangePlayer"), 0, 30, "iTextChange", 0, true], [GL.BorderM, 330, 63, cMainColors[3], UI.OWBorderM, -10, 0, null, 0, true], [GL.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [GL.ColorTextM, 15, cMainColors[4], SStrings.getString("strPlayersOnline").toLowerCase(), null, -5, 35, "iPlayers", 0, true], [GL.MakeNewButton, 155, 40, cMainColors[5], cMainColors[2], 30, SStrings.getString("strPlayOnline"), 70, 100, "iPlayOnlineStrategy", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strOptions"), 87, 180, "iOptions", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strHighScores"), 87, 215, "iHighScores", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strInstructions"), 87, 250, "iInstructions", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMoreGames"), 87, 285, "iMoreGames", 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, UI_EN.OWGameCounterAnimator, null]; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, 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 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"]; 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 OWIntroParam:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [GL.MakeBitmapFromLib, 0, 25, UI.OSiteM, 240, 275, "iHeader", 0, true], [GL.MakeBitmapFromLib, 0, 83, UI.OGameNameM, 100, 200, "iName", 0, true], [GL.MakeBitmapFromLib, 0, 60, UI.OGameVersion, 200, 360, "iVersion", 0, true], [GL.HeaderM, 400, 20, cMainColors[0], SStrings.getString("strPresents"), 0, 420, "iFooter", 0, true]]; public static var OWOptions:Array = [[GL.HeaderM, 200, 40, cMainColors[0], SStrings.getString("strOptions"), 240, 90, null, 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strSound"), UI_EN.iWOptionsVolume, 187, 200, "iSound", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strMusic"), UI_EN.iWOptionsVolume, 187, 250, "iMusic", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strFullScreen"), UI_EN.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [GL.MakeNewButton, 70, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), 260, 405, "iAccept", 0, true], [GL.MakeNewButton, 70, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 360, 405, "iCancel", 0, true], [GL.BorderM, 290, 150, cMainColors[3], UI.OBorderM, 197, 160, null, 0, true], [GL.BorderM, 290, 80, cMainColors[3], UI.OBorderM, 197, 320, null, 0, true]]; public static var OWGameP:Array = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; public static var OWInstructions:Array = [[GL.HeaderM, 600, 50, cMainColors[0], SStrings.getString("strHowToPlay"), 0, 0, null, 0, true], [GL.BorderM, 318, 318, cMainColors[3], UI.ODemoBorder, 125, 125, "iBorder", 0, true], [GL.MakeBitmapFromLib, 28, 90, UI.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [GL.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 35, SStrings.getString("strClose"), 645, 460, "iClose", 0, true]]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; public static var OGFind:Array = [[GL.ColorHeader, 190, 28, FindColors1, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [GL.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; 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 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 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 OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; public static var OWDeletePlayerConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeletePlayerConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 18, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; private static var OWGameNotCompletedLevelM:Array = [[GL.HeaderM, 600, 60, 10040115, SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.HeaderM, 600, 35, 10040115, SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWInfoPPlayer:Array = [[GL.ColorHeaderM, 190, 20, UI_EN.OWInfoColors, SStrings.getString("strLevel").toLowerCase(), null, 10, 37, null, 0, true]]; public static var OWGameNewLevel:Array = [[GL.ColorHeaderM, 600, 50, UI_EN.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_EN.cColors, SStrings.getString("strOpponent1"), OInterface.iDefAnimators, 0, 80, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_EN.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 150, null, 0, true]]; public static var OWChoosePlayer:Array = [[GL.HeaderM, 250, 25, cMainColors[0], SStrings.getString("strChoosePlayer"), -10, -60, null, 0, true], [GL.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNew"), 15, 194, "iNew", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strDelete"), 160, 194, "iDelete", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), 45, 230, "iAccept", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 130, 230, "iCancel", 0, true]]; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, 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]; private static var iGameType:int = 0; 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 var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, UI_EN.OWGameCounterAnimator, null]; public static var OWSSaver:Array = [[GL.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, SStrings.getString("strMenu"), 0, 0, "iMenu", 0, true], [GL.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, SStrings.getString("strSite"), 0, 0, "iSite", 0, true]]; public static function get GameType():int{ return (iGameType); } public static function set GameType(_arg1:int):void{ iGameType = _arg1; UI.iGAME.prMode = iGameType; } } }//package
Section 241
//UI_FallParticle (UI_FallParticle) package { import mx.core.*; public class UI_FallParticle extends SpriteAsset { } }//package
Section 242
//UI_FR (UI_FR) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class UI_FR { public static const HEXAGON:int = 1; public static const DEMO:int = 3; public static const TRIANGLE:int = 2; public static const sURLGame:String = "http://www.wellgames.com/fr/free_online/mysteriez2/?g=mysteriez2_fr"; public static const miEnterNewName:int = 4; public static const OSSmileSInd:int = 12; public static const miDeletePlayer:int = 9; public static const downloadableURL:String = " http://itunes.apple.com/us/app/mysteriez/id420612349?mt=8"; public static const miIntro:int = 2; 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 iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; private static const OWHighScoresType:Array = [SStrings.getString("strLocal"), SStrings.getString("strPersonal")]; public static const firstAdLevel:int = 1; 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 cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static const miCommingSoon:int = 6; public static const strConnect1URL:String = "http://www.wellgames.com/fr/free_online/mysteriez2/?g=mysteriez2_fr"; public static const OWInstructionsText:Array = [SStrings.getString("strInstructionsText1"), SStrings.getString("strInstructionsText2"), SStrings.getString("strInstructionsText3")]; public static const OSBubbleBangSInd:int = 0; public static const miResultsSP:int = 15; public static const miSSaver:int = 25; 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 sBBannerPrefix:String = "fr/bottom/"; public static const sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static const sZone:String = "Mysteriez2"; public static const miLevelEditor:int = 26; public static const sBannerID:String = "mysteriez2"; public static const miLastWindow:int = 1; public static const strConnect2URL:String = "http://www.wellgames.com/fr/?g=mysteriez2_fr"; public static const OSSmileEInd:int = 14; private static const iWOptionsVolume:Array = [SStrings.getString("strOff"), "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; public static const sLang:String = "FR"; public static const cFontName:String = "Bankir-Retro"; public static const ARCADE:int = 2; public static const miNullWindow:int = 0; public static const sDomain:String = "wellgames.com"; public static const numAdLevels:int = 3; public static const miMenu:int = 5; public static const miHighScores:int = 17; public static const strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/fr/free_online/mysteriez2/?g=mysteriez2_fr"; private static const iWOptionsOnOff:Array = [SStrings.getString("strOff"), SStrings.getString("strOn")]; public static const miUpSell:int = 27; public static const cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static const OSBubbleBangEInd:int = 10; public static const miInstructions:int = 24; public static const miOptions:int = 10; public static const sURLSite:String = "http://www.wellgames.com/fr/?g=mysteriez2_fr"; public static const miDeleteScores:int = 19; public static const STRATEGY:int = 1; public static const miDeletePlayerConfirm:int = 8; public static const SQUARE:int = 0; public static const miChoosePlayer:int = 7; 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 sDebug:Boolean = false; private static const OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static const miEnterNameFirst:int = 3; public static const cColors:Array = [8810577]; public static const OWInstrInfo1:Array = [[GL.HeaderM, 550, 25, cMainColors[0], SStrings.getString("strInstructionsText1"), 0, 0, null, 0, true]]; public static const OWInstrInfo3:Array = [[GL.MakeCheckBoxM, 80, 60, "yellow", UI.OLoop, UI.OUnLoop, 40, -15, null, 0, true], [GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText3"), 0, -30, null, 0, true]]; public static const sTBannerPrefix:String = "fr/top/"; public static const OWInstrInfo2:Array = [[GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText2"), 0, -30, null, 0, true]]; public static const miGameMP:int = 21; public static const sXTName:String = "m2"; public static const miResultsMP:int = 22; public static const showAD:Boolean = true; public static const OWInstructionsInfo:Array = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; public static const OSOops:int = 15; public static var OWGame:Array = [[GL.MakeBitmapFromLib, 165, 61, UI.OGameNameM, 635, 12, "iGameName", 0, false], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMenu"), 635, 520, "iMenu", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [GL.MakeCheckBoxM, 64, 53, "yellow", UI.OLoop, UI.OUnLoop, 655, 470, "iLoop", 0, false], [GL.MakeCheckBoxM, 64, 53, "green", UI.OStop, UI.OStart, 725, 470, "iPause", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strLevel1").toLowerCase(), OInterface.iDefAnimators, 650, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 730, 435, "iLevelCounter", 0, false], [GL.ColorHeaderM, 150, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 600, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 698, 144, "iScoreCounterO", 0, false], [GL.BorderM, 160, 220, cMainColors[3], UI.OGameBorder, 631, 293, "iBorder", 0, false]]; public static var OWDemo:Array = [GL.MakeTextButton, 130, 35, "magenta", "magenta", 20, SStrings.getString("strMissed"), 305, 140, null, 0, false]; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; private static var OWGameCompletedLevelM:Array = [[GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strComplete"), 0, 67, null, 0, true], [GL.HeaderM, 600, 35, cMainColors[0], SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; public static var OWGamePause:Array = [[GL.ColorHeaderM, 600, 60, cColors, SStrings.getString("strPause"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 30, cColors, SStrings.getString("strContinue"), OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; public static var OWGameGoalArray:Array = [[GL.ColorHeaderM, 600, 50, UI_FR.cColors, SStrings.getString("strCountNumbers1"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 50, UI_FR.cColors, SStrings.getString("strCountNumbers2"), OInterface.iDefAnimators, 0, 60, null, 0, true], [GL.ColorHeaderM, 600, 30, UI_FR.cColors, (" " + SStrings.getString("strClick").toLowerCase()), OInterface.iDefAnimators, 0, 140, 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 = [[GL.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [GL.BorderM, 162, 37, TimeColor, UI.OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [GL.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 OWResultsRaitingS:Array = [[GL.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; public static var OWInfoP:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 120, null, 0, true]]; private static var OWGameSite:Array = [[GL.MakeBitmapFromLib, 130, 15, UI.OSiteM, 0, 0, null, 0, true]]; public static var OWDeleteScoresConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeleteScoresConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 12, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInGameMenuParam:Array = [[GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMainMenu"), 200, 180, "btnMainMenu", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strOptions"), 200, 235, "btnOptions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strInstructions"), 200, 290, "btnInstructions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMoreGames"), 200, 345, "btnMoreGames", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strResume"), 200, 400, "btnResume", 0, true]]; public static var OWHighScores:Array = [[GL.HeaderM, 300, 25, cMainColors[0], SStrings.getString("strHighScores"), 0, -130, null, 0, true], [GL.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", UI_FR.OWHighScoresType, 45, -90, "iType", 0, true], [GL.BorderM, 288, 206, cMainColors[3], UI.OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, UI_FR.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strClear"), 55, 170, "iClear", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strClose"), 170, 170, "iClose", 0, true]]; private static var TimeColor:int = 0xFFFFFF; private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_FR.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_FR.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, UI_FR.OTimerAnimator, null]; public static var OWEnterName:Array = [[GL.HeaderM, 230, 25, cMainColors[0], SStrings.getString("strNewPlayer"), 0, 20, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterName"), 0, 90, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterNameLat"), 0, 170, null, 0, true], [GL.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), 35, 210, "iAccept", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 120, 210, "iCancel", 0, true]]; public static var OWGameConnection:Array = [GL.ColorHeaderM, 600, 50, UI_FR.cColors, SStrings.getString("strConnectionToServer"), OInterface.iDefSlowAnimators]; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array = [[GL.Header, 800, 60, "yellow1", ((SStrings.getString("strLevel") + " ") + SStrings.getString("strScore")), 0, 0, null, 0, true]]; private static var OWGameCompletedLevel:Array = [[GL.Header, 600, 60, "yellow", SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.Header, 600, 60, "yellow", SStrings.getString("strComplete"), 0, 60, null, 0, true], [GL.Header, 600, 35, "yellow", SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; 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 OWUpSell:Array = [[GL.HeaderM, 240, 35, cColorsGameName[0], SStrings.getString("strUpSellName"), 80, 60, null, 0, true], [GL.HeaderM, 240, 21, cColorsGameName[0], SStrings.getString("strUpSellText"), 80, 150, null, 0, true], [GL.InvisibleButton, 250, 86, 1000, 400, "iContinue", 0, true], [GL.MakeNewButton, 240, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strContinue"), (540 - 60), 335, "iOptions", 0, true]]; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; 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 OGInfo:Array = [[GL.HeaderM, 200, 50, 0xFF0000, (SStrings.getString("strTimeDecrease") + OGGame.iDecreaseTime.toString()), 0, 0, null, 0, false]]; public static var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array = [[GL.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 530, 50, "red", SStrings.getString("strCommingSoon"), 0, 20, null, 0, true], [GL.Header, 530, 30, "magenta", SStrings.getString("strCommingSoonI"), 0, 125, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 190, 210, null, 0, true]]; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, UI_FR.OTimerAnimator, null]; public static var FindColors2:Array = ["150", "180", "210", "240"]; 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"]; public static var OGFindO:Array = [[GL.ColorHeader, 60, 20, FindColorsO, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [GL.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; private static var OWGameNotCompletedLevel:Array = [[GL.Header, 600, 60, "red", SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.Header, 600, 35, "red", SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWInfoPUserNotFound:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 100, null, 0, true], [GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 125, null, 0, true]]; 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 recLevel:String; public static var OWInputParam:Array = [[GL.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 600, 40, "aqua1", SStrings.getString("strInputText"), 0, 30, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 225, 310, "iClose", 0, true]]; public static var OWResults:Array = [[GL.ColorHeaderM, 800, 40, cColorsSite, SStrings.getString("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], [GL.MakeNewButton, 140, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNextLevel").toLowerCase(), (525 - 80), 300, "iButtons", 0, false], [GL.BorderM, 290, 240, cMainColors[3], UI.OResultBorder, 450, 45, null, 0, false], [GL.MakeNewButton, 140, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strSubmitScore").toLowerCase(), (525 + 80), 300, "iSubmit", 0, false]]; 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]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_FR.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_FR.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, UI_FR.OTimerAnimator, null]; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, UI_FR.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strGainedScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWResultsTimeBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strTimeBonus").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, UI_FR.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array = [[GL.MakeTextButton, 200, 50, "white", "white", 25, SStrings.getString("strMenu"), 558, 490, "iMenu", 0, false]]; public static var OWGameNCL:Array = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWLanguageParam:Array = [[GL.HeaderM, 350, 40, cMainColors[0], SStrings.getString("strLanguage"), (225 + 200), (130 - 20), null, 0, true], [GL.ListBoxTextM, 200, 40, cMainColors[5], cMainColors[2], 5, null, ((200 + 200) + 65), (195 - 20), "iListBox", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strChange"), (((200 + 200) + 75) - 5), (439 - 20), "btnChange", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), ((410 + 200) - 5), (439 - 20), "btnCancel", 0, true]]; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var OWMenuReiting:Array = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; public static var OWGameNewLevelWithNoOpponent:Array = [[GL.ColorHeaderM, 600, 50, UI_FR.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWInfoPConnect:Array = [[GL.HeaderM, 190, 20, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 70, null, 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 23, SStrings.getString("strPlayOnline"), 35, 175, null, 0, true]]; public static var OWResultsRaiting:Array = [[GL.ColorHeaderM, 800, 25, cColorsSite, SStrings.getString("strYourRaiting"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.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}; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strBonusScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWLoadProgress:Array = [[GL.ColorHeaderM, 800, 50, cColorsSite, SStrings.getString("strLoadingLevel"), OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; public static var OWResultsTotalScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strLevelScoreR").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.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]; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); 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 OWMenu:Array = [[GL.HeaderM, 300, 20, cMainColors[4], SStrings.getString("strWelcome"), 0, 0, null, 0, true], [GL.HeaderM, 300, 18, cMainColors[5], SStrings.getString("strChangePlayer"), 0, 30, "iTextChange", 0, true], [GL.BorderM, 330, 63, cMainColors[3], UI.OWBorderM, -10, 0, null, 0, true], [GL.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [GL.ColorTextM, 15, cMainColors[4], SStrings.getString("strPlayersOnline").toLowerCase(), null, -5, 35, "iPlayers", 0, true], [GL.MakeNewButton, 195, 40, cMainColors[5], cMainColors[2], 30, SStrings.getString("strPlayOnline"), 50, 100, "iPlayOnlineStrategy", 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strOptions"), (87 - 20), 180, "iOptions", 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strHighScores"), (87 - 20), 215, "iHighScores", 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strInstructions"), (87 - 20), 250, "iInstructions", 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMoreGames"), (87 - 20), 285, "iMoreGames", 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, UI_FR.OWGameCounterAnimator, null]; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, 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 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"]; 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 OWIntroParam:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [GL.MakeBitmapFromLib, 0, 25, UI.OSiteM, 240, 275, "iHeader", 0, true], [GL.MakeBitmapFromLib, 0, 83, UI.OGameNameM, 100, 200, "iName", 0, true], [GL.MakeBitmapFromLib, 0, 60, UI.OGameVersion, 200, 360, "iVersion", 0, true], [GL.HeaderM, 400, 20, cMainColors[0], SStrings.getString("strPresents"), 0, 420, "iFooter", 0, true]]; public static var OWOptions:Array = [[GL.HeaderM, 200, 40, cMainColors[0], SStrings.getString("strOptions"), 240, 90, null, 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strSound"), UI_FR.iWOptionsVolume, 187, 200, "iSound", 0, true], [GL.ListBoxTextHSliderM, 320, 22, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strMusic"), UI_FR.iWOptionsVolume, 187, 260, "iMusic", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strFullScreen"), UI_FR.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), (250 - 20), 405, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 370, 405, "iCancel", 0, true], [GL.BorderM, 290, 150, cMainColors[3], UI.OBorderM, 197, 160, null, 0, true], [GL.BorderM, 290, 80, cMainColors[3], UI.OBorderM, 197, 320, null, 0, true]]; public static var OWGameP:Array = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, 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 OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; public static var OWInstructions:Array = [[GL.HeaderM, 600, 50, cMainColors[0], SStrings.getString("strHowToPlay"), 0, 0, null, 0, true], [GL.BorderM, 318, 318, cMainColors[3], UI.ODemoBorder, 125, 125, "iBorder", 0, true], [GL.MakeBitmapFromLib, 28, 90, UI.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [GL.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 35, SStrings.getString("strClose"), 645, 460, "iClose", 0, true]]; public static var OGFind:Array = [[GL.ColorHeader, 190, 28, FindColors1, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [GL.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; 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 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 OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; 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"]; private static var OWGameNotCompletedLevelM:Array = [[GL.HeaderM, 600, 60, 10040115, SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.HeaderM, 600, 35, 10040115, SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWDeletePlayerConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeletePlayerConfirm"), -7, (85 - 30), null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 18, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInfoPPlayer:Array = [[GL.ColorHeaderM, 190, 20, UI_FR.OWInfoColors, SStrings.getString("strLevel").toLowerCase(), null, 10, 37, null, 0, true]]; public static var OWGameNewLevel:Array = [[GL.ColorHeaderM, 600, 50, UI_FR.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_FR.cColors, SStrings.getString("strOpponent1"), OInterface.iDefAnimators, 0, 80, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_FR.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 150, null, 0, true]]; public static var OWChoosePlayer:Array = [[GL.HeaderM, 250, 25, cMainColors[0], SStrings.getString("strChoosePlayer"), -10, -60, null, 0, true], [GL.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNew"), 15, 194, "iNew", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strDelete"), 160, 194, "iDelete", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strAccept"), 45, 230, "iAccept", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), 130, 230, "iCancel", 0, true]]; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, 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]; private static var iGameType:int = 0; 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 var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, UI_FR.OWGameCounterAnimator, null]; public static var OWSSaver:Array = [[GL.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, SStrings.getString("strMenu"), 0, 0, "iMenu", 0, true], [GL.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, SStrings.getString("strSite"), 0, 0, "iSite", 0, true]]; public static function get GameType():int{ return (iGameType); } public static function set GameType(_arg1:int):void{ iGameType = _arg1; UI.iGAME.prMode = iGameType; } } }//package
Section 243
//UI_Lib_fullscreen (UI_Lib_fullscreen) package { import flash.display.*; import mx.core.*; public class UI_Lib_fullscreen extends SpriteAsset { public var btn_restore:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 244
//UI_Lib_language (UI_Lib_language) package { import flash.display.*; import mx.core.*; public class UI_Lib_language extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 245
//UI_Lib_sound (UI_Lib_sound) package { import flash.display.*; import mx.core.*; public class UI_Lib_sound extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 246
//UI_OBack (UI_OBack) package { import mx.core.*; public class UI_OBack extends SpriteAsset { } }//package
Section 247
//UI_OBG01 (UI_OBG01) package { import flash.display.*; import mx.core.*; public class UI_OBG01 extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 248
//UI_OBook (UI_OBook) package { import flash.display.*; import mx.core.*; public class UI_OBook extends SpriteAsset { public var text1:DisplayObject; public var MainBorder:DisplayObject; public var Site:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_restore:DisplayObject; public var iBorder:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; public var Name2:DisplayObject; } }//package
Section 249
//UI_OBookUpSell (UI_OBookUpSell) package { import flash.display.*; import mx.core.*; public class UI_OBookUpSell extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 250
//UI_OBorder (UI_OBorder) package { import flash.display.*; import mx.core.*; public class UI_OBorder extends SpriteAsset { public var btn_restore:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 251
//UI_OBorderM (UI_OBorderM) package { import mx.core.*; public class UI_OBorderM extends SpriteAsset { } }//package
Section 252
//UI_OButMC (UI_OButMC) package { import flash.display.*; import mx.core.*; public class UI_OButMC extends MovieClipAsset { public var btn:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn_restore:DisplayObject; public var iBorder:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 253
//UI_OChoosePBorder (UI_OChoosePBorder) package { import flash.display.*; import mx.core.*; public class UI_OChoosePBorder extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 254
//UI_OConfirmBorder (UI_OConfirmBorder) package { import flash.display.*; import mx.core.*; public class UI_OConfirmBorder extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 255
//UI_OCursor (UI_OCursor) package { import mx.core.*; public class UI_OCursor extends SpriteAsset { } }//package
Section 256
//UI_ODemoBorder (UI_ODemoBorder) package { import mx.core.*; public class UI_ODemoBorder extends SpriteAsset { } }//package
Section 257
//UI_ODown (UI_ODown) package { import flash.display.*; import mx.core.*; public class UI_ODown extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 258
//UI_OEnterBorder (UI_OEnterBorder) package { import flash.display.*; import mx.core.*; public class UI_OEnterBorder extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 259
//UI_OFont (UI_OFont) package { import flash.display.*; import mx.core.*; public class UI_OFont extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 260
//UI_OFontArial (UI_OFontArial) package { import flash.display.*; import mx.core.*; public class UI_OFontArial extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 261
//UI_OGameBorder (UI_OGameBorder) package { import flash.display.*; import mx.core.*; public class UI_OGameBorder extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 262
//UI_OGameLoop (UI_OGameLoop) package { import flash.display.*; import mx.core.*; public class UI_OGameLoop extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 263
//UI_OGameNameM (UI_OGameNameM) package { import mx.core.*; public class UI_OGameNameM extends SpriteAsset { } }//package
Section 264
//UI_OGameVersion (UI_OGameVersion) package { import flash.display.*; import mx.core.*; public class UI_OGameVersion extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 265
//UI_OIDown (UI_OIDown) package { import flash.display.*; import mx.core.*; public class UI_OIDown extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 266
//UI_OILeft (UI_OILeft) package { import flash.display.*; import mx.core.*; public class UI_OILeft extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 267
//UI_OIRight (UI_OIRight) package { import flash.display.*; import mx.core.*; public class UI_OIRight extends SpriteAsset { public var btn_restore:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 268
//UI_OIUp (UI_OIUp) package { import mx.core.*; public class UI_OIUp extends SpriteAsset { } }//package
Section 269
//UI_OLeft (UI_OLeft) package { import mx.core.*; public class UI_OLeft extends SpriteAsset { } }//package
Section 270
//UI_OLoop (UI_OLoop) package { import flash.display.*; import mx.core.*; public class UI_OLoop extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 271
//UI_OLoopOnBook (UI_OLoopOnBook) package { import mx.core.*; public class UI_OLoopOnBook extends SpriteAsset { } }//package
Section 272
//UI_OPlayBook (UI_OPlayBook) package { import flash.display.*; import mx.core.*; public class UI_OPlayBook extends SpriteAsset { public var btn_restore:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 273
//UI_OResultBorder (UI_OResultBorder) package { import flash.display.*; import mx.core.*; public class UI_OResultBorder extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 274
//UI_ORight (UI_ORight) package { import mx.core.*; public class UI_ORight extends SpriteAsset { } }//package
Section 275
//UI_OSBubbleBang01 (UI_OSBubbleBang01) package { import mx.core.*; public class UI_OSBubbleBang01 extends SoundAsset { } }//package
Section 276
//UI_OSBubbleBang02 (UI_OSBubbleBang02) package { import mx.core.*; public class UI_OSBubbleBang02 extends SoundAsset { } }//package
Section 277
//UI_OSBubbleBang03 (UI_OSBubbleBang03) package { import mx.core.*; public class UI_OSBubbleBang03 extends SoundAsset { } }//package
Section 278
//UI_OSBubbleBang04 (UI_OSBubbleBang04) package { import mx.core.*; public class UI_OSBubbleBang04 extends SoundAsset { } }//package
Section 279
//UI_OSBubbleBang05 (UI_OSBubbleBang05) package { import mx.core.*; public class UI_OSBubbleBang05 extends SoundAsset { } }//package
Section 280
//UI_OSBubbleBang06 (UI_OSBubbleBang06) package { import mx.core.*; public class UI_OSBubbleBang06 extends SoundAsset { } }//package
Section 281
//UI_OSBubbleBang07 (UI_OSBubbleBang07) package { import mx.core.*; public class UI_OSBubbleBang07 extends SoundAsset { } }//package
Section 282
//UI_OScoresBorder (UI_OScoresBorder) package { import flash.display.*; import mx.core.*; public class UI_OScoresBorder extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 283
//UI_OSelectBorder (UI_OSelectBorder) package { import flash.display.*; import mx.core.*; public class UI_OSelectBorder extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 284
//UI_OSiteM (UI_OSiteM) package { import flash.display.*; import mx.core.*; public class UI_OSiteM extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 285
//UI_OSmallGraphic (UI_OSmallGraphic) package { import flash.display.*; import mx.core.*; public class UI_OSmallGraphic extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 286
//UI_OStart (UI_OStart) package { import flash.display.*; import mx.core.*; public class UI_OStart extends SpriteAsset { public var btn_sound_off:DisplayObject; public var MainBorder:DisplayObject; public var text1:DisplayObject; public var Site:DisplayObject; public var Name2:DisplayObject; public var Name:DisplayObject; public var text2:DisplayObject; public var btn_sound_on:DisplayObject; public var iBorder:DisplayObject; public var btn_restore:DisplayObject; public var btn:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 287
//UI_OStop (UI_OStop) package { import flash.display.*; import mx.core.*; public class UI_OStop extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 288
//UI_OTimerBorder (UI_OTimerBorder) package { import flash.display.*; import mx.core.*; public class UI_OTimerBorder extends SpriteAsset { public var btn:DisplayObject; public var text1:DisplayObject; public var text2:DisplayObject; public var btn_restore:DisplayObject; public var iBorder:DisplayObject; public var btn_fullscreen:DisplayObject; } }//package
Section 289
//UI_OUnLoop (UI_OUnLoop) package { import mx.core.*; public class UI_OUnLoop extends SpriteAsset { } }//package
Section 290
//UI_OUp (UI_OUp) package { import flash.display.*; import mx.core.*; public class UI_OUp extends SpriteAsset { public var text1:DisplayObject; public var text2:DisplayObject; public var btn:DisplayObject; } }//package
Section 291
//UI_OWBorderM (UI_OWBorderM) package { import mx.core.*; public class UI_OWBorderM extends SpriteAsset { } }//package
Section 292
//UI_RU (UI_RU) package { import ENGINE.DISPLAY.*; import ENGINE.INTERFACE.*; import ENGINE.INTERFACE.ANIMATORS.*; import MAIN.OBJECTS.*; import ENGINE.CORE.*; import MAIN.UTIL.*; public class UI_RU { public static const HEXAGON:int = 1; public static const DEMO:int = 3; public static const TRIANGLE:int = 2; public static const sURLGame:String = "http://www.wellgames.com/ru/free_online/mysteriez2/?g=mysteriez2_ru"; public static const miEnterNewName:int = 4; public static const OSSmileSInd:int = 12; public static const miDeletePlayer:int = 9; public static const downloadableURL:String = "http://redir.absolutist.com/4-2-3/http://itunes.apple.com/ru/app/mysteriez/id420612349?mt=8"; public static const miIntro:int = 2; 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 iGameColor:Array = ["white", "red", "yellow", "green", "aqua", "blue", "magenta"]; private static const OWHighScoresType:Array = [SStrings.getString("strLocal"), SStrings.getString("strPersonal")]; public static const firstAdLevel:int = 1; 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 miCommingSoon:int = 6; public static const cColorsGameName:Array = [7430214, 7430214, 7430214, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577, 8810577]; public static const OWInstructionsText:Array = [SStrings.getString("strInstructionsText1"), SStrings.getString("strInstructionsText2"), SStrings.getString("strInstructionsText3")]; public static const OSBubbleBangSInd:int = 0; public static const miResultsSP:int = 15; public static const miSSaver:int = 25; 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 sBBannerPrefix:String = "ru/bottom/"; public static const sURLRating:String = "http://wellgames.com/rating/wellratings.php"; public static const sZone:String = "Mysteriez2"; public static const miLevelEditor:int = 26; public static const sBannerID:String = "mysteriez2"; public static const OSSmileEInd:int = 14; public static const miLastWindow:int = 1; private static const iWOptionsVolume:Array = [SStrings.getString("strOff"), "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"]; public static const cFontName:String = "Bankir-Retro"; public static const sLang:String = "RU"; public static const ARCADE:int = 2; public static const miNullWindow:int = 0; public static const sDomain:String = "wellgames.com"; public static const numAdLevels:int = 2; public static const miMenu:int = 5; public static const miHighScores:int = 17; public static const SQUARE:int = 0; private static const iWOptionsOnOff:Array = [SStrings.getString("strOff"), SStrings.getString("strOn")]; public static const miUpSell:int = 27; public static const cMainColors:Array = [8810577, 12431251, 0xB0B0B0, 11312258, 11244918, 0x8C8C8C]; public static const OSBubbleBangEInd:int = 10; public static const miInstructions:int = 24; public static const miOptions:int = 10; public static const sURLSite:String = "http://www.wellgames.com/ru/?g=mysteriez2_ru"; public static const miDeleteScores:int = 19; public static const STRATEGY:int = 1; public static const miDeletePlayerConfirm:int = 8; public static const miChoosePlayer:int = 7; 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 sDebug:Boolean = false; private static const OSoundParams:Array = [UI.OSBubbleBang01, UI.OSBubbleBang02, UI.OSBubbleBang03, UI.OSBubbleBang04, UI.OSBubbleBang05, UI.OSBubbleBang06, UI.OSBubbleBang07]; public static const miEnterNameFirst:int = 3; public static const cColors:Array = [8810577]; public static const OWInstrInfo1:Array = [[GL.HeaderM, 550, 25, cMainColors[0], SStrings.getString("strInstructionsText1"), 0, 0, null, 0, true]]; public static const OWInstrInfo3:Array = [[GL.MakeCheckBoxM, 80, 60, "yellow", UI.OLoop, UI.OUnLoop, 40, -15, null, 0, true], [GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText3"), 0, -30, null, 0, true]]; public static const sTBannerPrefix:String = "ru/top/"; public static const OWInstrInfo2:Array = [[GL.HeaderM, 550, 23, cMainColors[0], SStrings.getString("strInstructionsText2"), 0, -30, null, 0, true]]; public static const miGameMP:int = 21; public static const sXTName:String = "m2"; public static const miResultsMP:int = 22; public static const showAD:Boolean = true; public static const OWInstructionsInfo:Array = [OWInstrInfo1, OWInstrInfo2, OWInstrInfo3]; public static const OSOops:int = 15; public static var OWGame:Array = [[GL.MakeBitmapFromLib, 165, 61, UI.OGameNameM, 635, 12, "iGameName", 0, false], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strMenu"), 635, 520, "iMenu", 0, false], [OInterface.OIObjectMake, OWGameSite, OInterface.iDefAnimators, 735, 565, "iSite", 0, false], [GL.MakeCheckBoxM, 64, 53, "yellow", UI.OLoop, UI.OUnLoop, 655, 470, "iLoop", 0, false], [GL.MakeCheckBoxM, 64, 53, "green", UI.OStop, UI.OStart, 725, 470, "iPause", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 298, "iScore", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFM, 730, 293, "iScoreCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strLevel1").toLowerCase(), OInterface.iDefAnimators, 640, 435, "iLevel", 0, false], [ODisplay.IDisplayObjectMake, OWGameLevelFM, 740, 435, "iLevelCounter", 0, false], [GL.ColorHeaderM, 80, 20, cColors, SStrings.getString("strScore"), OInterface.iDefAnimators, 630, 144, "iScoreO", 0, false], [ODisplay.IDisplayObjectMake, OWGameScoreFOM, 730, 144, "iScoreCounterO", 0, false], [GL.BorderM, 160, 220, cMainColors[3], UI.OGameBorder, 631, 293, "iBorder", 0, false]]; public static var OWDemo:Array = [GL.MakeTextButton, 130, 35, "magenta", "magenta", 20, SStrings.getString("strMissed"), 305, 140, null, 0, false]; public static var OWGameScoreElementOM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; private static var OWGameCompletedLevelM:Array = [[GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.HeaderM, 600, 60, cMainColors[0], SStrings.getString("strComplete"), 0, 67, null, 0, true], [GL.HeaderM, 600, 35, cMainColors[0], SStrings.getString("strPrToCont"), 0, 140, null, 0, true]]; public static var OWGamePause:Array = [[GL.ColorHeaderM, 600, 60, cColors, SStrings.getString("strPause"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 30, cColors, SStrings.getString("strPrToCont"), OInterface.iDefSlowAnimators, 0, 80, null, 0, true]]; public static var OWGameGoalArray:Array = [[GL.ColorHeaderM, 600, 50, UI_RU.cColors, SStrings.getString("strCountNumbers1"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 50, UI_RU.cColors, SStrings.getString("strCountNumbers2"), OInterface.iDefAnimators, 0, 60, null, 0, true], [GL.ColorHeaderM, 600, 30, UI_RU.cColors, (" " + SStrings.getString("strClick").toLowerCase()), OInterface.iDefAnimators, 0, 140, 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 = [[GL.SmallFrameM, 160, 35, 10, 16755370, 10, 10, "iTimeFon", 0, false], [GL.BorderM, 162, 37, TimeColor, UI.OTimerBorder, 8, 8, "iTimeBorder", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 40, 0, "iMinuteCounter1", 0, false], [ODisplay.IDisplayObjectMake, OWGameTimeF, 57, 0, "iMinuteCounter2", 0, false], [GL.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 OWResultsRaitingS:Array = [[GL.Header, 800, 80, "aqua1", "9", 0, 0, null, 0, true]]; private static var OWGameSite:Array = [[GL.MakeBitmapFromLib, 130, 15, UI.OSiteM, 0, 0, null, 0, true]]; public static var OWInfoP:Array = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 120, null, 0, true]]; public static var OWHighScores:Array = [[GL.HeaderM, 300, 25, cMainColors[0], SStrings.getString("strHighScores"), 0, -130, null, 0, true], [GL.ListBoxTextHSliderM, 210, 50, cMainColors[0], false, 120, 30, cMainColors[0], "", UI_RU.OWHighScoresType, 45, -90, "iType", 0, true], [GL.BorderM, 288, 206, cMainColors[3], UI.OScoresBorder, 6, -45, null, 0, true], [ODisplay.IDisplayObjectMake, UI_RU.OWHighScoreTabFM, 22, -20, "iTable", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strClear"), 50, 170, "iClear", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strClose"), 165, 170, "iClose", 0, true]]; public static var OWDeleteScoresConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeleteScoresConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 12, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInGameMenuParam:Array = [[GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMainMenu"), 200, 180, "btnMainMenu", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strOptions"), 200, 235, "btnOptions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strInstructions"), 200, 290, "btnInstructions", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strMoreGames"), 200, 345, "btnMoreGames", 0, true], [GL.MakeNewButton, 250, 46, cMainColors[5], cMainColors[2], 25, SStrings.getString("strResume"), 200, 400, "btnResume", 0, true]]; private static var TimeColor:int = 0xFFFFFF; private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_RU.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_RU.OWHighScorePersonal, null, 0, 0, null, 0, false]], 410, 270, UI_RU.OTimerAnimator, null]; public static var OWEnterName:Array = [[GL.HeaderM, 230, 25, cMainColors[0], SStrings.getString("strNewPlayer"), 0, 20, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterName"), 0, 90, null, 0, true], [GL.HeaderM, 230, 20, cMainColors[0], SStrings.getString("strEnterNameLat"), 0, 170, null, 0, true], [GL.InputText, 200, 40, cMainColors[3], "well", [45, 0.9, 0.6], 11, 15, 130, "iName", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 22, 210, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 122, 210, "iCancel", 0, true]]; public static var OWGameConnection:Array = [GL.ColorHeaderM, 600, 48, UI_RU.cColors, SStrings.getString("strConnectionToServer"), null, 10, 37, null, 0, true]; public static var OWRecordColor:Array = ["0", "60", "90", "150", "180", "240", "300", "360", "0", "60", "90", "150", "180", "240", "300", "360"]; public static var OWResultsScoreT:Array = [[GL.Header, 800, 60, "yellow1", ((SStrings.getString("strLevel") + " ") + SStrings.getString("strScore")), 0, 0, null, 0, true]]; private static var OWGameCompletedLevel:Array = [[GL.Header, 600, 60, "yellow", SStrings.getString("strLevel"), 0, 0, null, 0, true], [GL.Header, 600, 60, "yellow", SStrings.getString("strComplete"), 0, 60, null, 0, true], [GL.Header, 600, 35, "yellow", SStrings.getString("strPrToCont"), 0, 130, null, 0, true]]; 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 OWUpSell:Array = [[GL.HeaderM, 240, 35, cColorsGameName[0], SStrings.getString("strUpSellName"), 80, 60, null, 0, true], [GL.HeaderM, 240, 18, cColorsGameName[0], SStrings.getString("strUpSellText"), 80, 150, null, 0, true], [GL.InvisibleButton, 250, 86, 1000, 400, "iContinue", 0, true], [GL.MakeNewButton, 120, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strContinue"), 540, 335, "iOptions", 0, true]]; public static var OWGameLevelElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; 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 OGInfo:Array = [[GL.HeaderM, 200, 50, 0xFF0000, (SStrings.getString("strTimeDecrease") + OGGame.iDecreaseTime.toString()), 0, 0, null, 0, false]]; public static var FindColors1:Array = ["0", "30", "60", "90"]; public static var OWCommingSoon:Array = [[GL.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 530, 50, "red", SStrings.getString("strCommingSoon"), 0, 20, null, 0, true], [GL.Header, 530, 30, "magenta", SStrings.getString("strCommingSoonI"), 0, 125, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 190, 210, null, 0, true]]; private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 8, 15, cMainColors[4], " ", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "0", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "1", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "2", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "3", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "4", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "5", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "6", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "7", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "8", 0, 0, null, 0, false], [GL.HeaderM, 8, 15, cMainColors[4], "9", 0, 0, null, 0, false]], 8, 15, UI_RU.OTimerAnimator, null]; public static var FindColors2:Array = ["150", "180", "210", "240"]; 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"]; public static var OGFindO:Array = [[GL.ColorHeader, 60, 20, FindColorsO, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounterO, 70, 5, "iNumberCounter", 0, true], [GL.ColorHeader, 40, 20, FindColorsO, "/", OInterface.iDefAnimators, 90, 0, "iTotalNumber", 0, true]]; public static var FindColorsO:Array = ["240", "240", "240", "240"]; private static var OWGameNotCompletedLevel:Array = [[GL.Header, 600, 60, "red", SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.Header, 600, 35, "red", SStrings.getString("strPrToCont"), 0, 70, null, 0, true]]; public static var OWInfoPUserNotFound:Array = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 100, null, 0, true], [GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 10, 125, null, 0, true]]; 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 recLevel:String; public static var OWInputParam:Array = [[GL.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [GL.Header, 600, 40, "aqua1", SStrings.getString("strInputText"), 0, 30, null, 0, true], [GL.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, SStrings.getString("strClose"), 225, 310, "iClose", 0, true]]; public static var OWResultsTimeBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strTimeBonus").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, 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]], 14, 20]; private static var OWHighScoreTabFM:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, UI_RU.OWHighScoreLocalM, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, UI_RU.OWHighScorePersonalM, null, 0, 0, null, 0, false]], 205, 135, UI_RU.OTimerAnimator, null]; public static var OWResults:Array = [[GL.ColorHeaderM, 800, 40, cColorsSite, SStrings.getString("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], [GL.MakeNewButton, 200, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNextLevel").toLowerCase(), (((545 - 75) - 25) - 25), 300, "iButtons", 0, false], [GL.BorderM, 290, 240, cMainColors[3], UI.OResultBorder, 450, 45, null, 0, false], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strSubmitScore").toLowerCase(), (610 + 15), 300, "iSubmit", 0, false]]; public static var OWGameLoadLevelElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 30, 50, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 30, 50, cMainColors[0], "9", 0, 0, null, 0, false]], 30, 50, UI_RU.OWGameCounterAnimator, null]; public static var OWResultsLevelScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strGainedScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWGameNCL:Array = [OInterface.OIObjectMake, OWGameNotCompletedLevelM, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OGNumberCounterElement:Array = [OInterface.OTabMake, [[GL.Header, 15, 28, "120", " ", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "0", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "1", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "2", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "3", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "4", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "5", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "6", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "7", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "8", 0, 0, null, 0, false], [GL.Header, 15, 28, "120", "9", 0, 0, null, 0, false]], 15, 28, UI_RU.OWGameCounterAnimator, null]; public static var OWLevelEditor:Array = [[GL.MakeTextButton, 200, 50, "white", "white", 25, SStrings.getString("strMenu"), 558, 490, "iMenu", 0, false]]; public static var OWLanguageParam:Array = [[GL.HeaderM, 350, 40, cMainColors[0], SStrings.getString("strLanguage"), (225 + 200), (130 - 20), null, 0, true], [GL.ListBoxTextM, 200, 40, cMainColors[5], cMainColors[2], 5, null, ((200 + 200) + 65), (195 - 20), "iListBox", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strChange"), (((200 + 200) + 75) - 5), (439 - 20), "btnChange", 0, true], [GL.MakeNewButton, 125, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strCancel"), ((410 + 200) - 5), (439 - 20), "btnCancel", 0, true]]; public static var OWResultsColor:Array = ["yellow", "yellow", "yellow", "yellow", "yellow", "yellow", "yellow"]; public static var OWMenuReiting:Array = [[GL.HeaderM, 800, 15, cMainColors[0], "W", -260, 145, null, 0, true]]; public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; public static var OWGameNewLevelWithNoOpponent:Array = [[GL.ColorHeaderM, 600, 50, UI_RU.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true]]; public static var OWGameTimeElement:Array = [OInterface.OTabMake, [[GL.HeaderM, 17, 30, TimeColor, " ", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "0", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "1", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "2", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "3", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "4", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "5", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "6", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "7", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "8", 0, 0, null, 0, false], [GL.HeaderM, 17, 30, TimeColor, "9", 0, 0, null, 0, false]], 17, 30, null, null]; public static var OWInfoPConnect:Array = [[GL.HeaderM, 190, 18, OWInfoColors[0], SStrings.getString("strConnect1").toLowerCase(), 15, 70, null, 0, true], [GL.MakeNewButton, 160, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strPlayOnline"), 35, 175, null, 0, true]]; public static var OWResultsRaiting:Array = [[GL.ColorHeaderM, 800, 25, cColorsSite, SStrings.getString("strYourRaiting"), OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [GL.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}; private static var OWGameTimeF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameTimeElement, 0, 0, "iDigits", 0, true]], 17, 30]; public static var OWResultsBonusScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strBonusScore").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.TextAlignM, 695, 40, 25, cMainColors[0], "9", 2, 1, -20, 0, null, 0, true]]; public static var OWLoadProgress:Array = [[GL.ColorHeaderM, 800, 50, cColorsSite, SStrings.getString("strLoadingLevel"), OInterface.iDefAnimators, -100, 50, null, 0, true], [ODisplay.IDisplayObjectMake, OWGameLoadLevel, 250, 150, "iProgress", 0, true]]; public static var OWResultsTotalScore:Array = [[GL.TextAlignM, 695, 40, 25, cMainColors[0], SStrings.getString("strLevelScoreR").toLowerCase(), 0, 1, 400, 0, null, 0, true], [GL.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]; public static var OWHighScoreLocal:Array = [[GL.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]]; public static var OWGameNewLevelWithHoutOpponent:Array = [OInterface.OIObjectMake, OWGameNewLevelWithNoOpponent, OInterface.iDefAnimators, 0, 0, null, 0, false]; private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams); 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 OWMenu:Array = [[GL.HeaderM, 300, 20, cMainColors[4], SStrings.getString("strWelcome"), 0, 0, null, 0, true], [GL.HeaderM, 300, 18, cMainColors[5], SStrings.getString("strChangePlayer"), 0, 30, "iTextChange", 0, true], [GL.BorderM, 330, 63, cMainColors[3], UI.OWBorderM, -10, 0, null, 0, true], [GL.InvisibleButton, 200, 65, 50, 0, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 95, 35, "iCPlayers", 0, true], [GL.ColorTextM, 15, cMainColors[4], SStrings.getString("strPlayersOnline").toLowerCase(), null, -5, 35, "iPlayers", 0, true], [GL.MakeNewButton, 155, 40, cMainColors[5], cMainColors[2], 30, SStrings.getString("strPlayOnline"), 70, 100, "iPlayOnlineStrategy", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strOptions"), 75, 180, "iOptions", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strHighScores"), 75, 215, "iHighScores", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strInstructions"), 75, 250, "iInstructions", 0, true], [GL.MakeNewButton, 150, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strMoreGames"), 75, 285, "iMoreGames", 0, true]]; public static var OWHighScoreLocalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OGNumberCounterElementO:Array = [OInterface.OTabMake, [[GL.Header, 9, 20, "240", " ", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "0", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "1", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "2", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "3", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "4", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "5", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "6", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "7", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "8", 0, 0, null, 0, false], [GL.Header, 9, 20, "240", "9", 0, 0, null, 0, false]], 9, 35, UI_RU.OWGameCounterAnimator, null]; public static var OWHighScorePersonal:Array = [[GL.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [GL.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, 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]; 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 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], [GL.MakeBitmapFromLib, 0, 25, UI.OSiteM, 240, 275, "iHeader", 0, true], [GL.MakeBitmapFromLib, 0, 83, UI.OGameNameM, 100, 200, "iName", 0, true], [GL.MakeBitmapFromLib, 0, 60, UI.OGameVersion, 200, 360, "iVersion", 0, true], [GL.HeaderM, 400, 20, cMainColors[0], SStrings.getString("strPresents"), 0, 420, "iFooter", 0, true]]; public static var OWOptions:Array = [[GL.HeaderM, 200, 40, cMainColors[0], SStrings.getString("strOptions"), 240, 90, null, 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strSound"), UI_RU.iWOptionsVolume, 187, 200, "iSound", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strMusic"), UI_RU.iWOptionsVolume, 187, 250, "iMusic", 0, true], [GL.ListBoxTextHSliderM, 320, 30, cMainColors[4], false, 40, 30, cMainColors[4], SStrings.getString("strFullScreen"), UI_RU.iWOptionsOnOff, 187, 350, "iFullScreen", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 250, 405, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 350, 405, "iCancel", 0, true], [GL.BorderM, 290, 150, cMainColors[3], UI.OBorderM, 197, 160, null, 0, true], [GL.BorderM, 290, 80, cMainColors[3], UI.OBorderM, 197, 320, null, 0, true]]; public static var OWGameP:Array = [OInterface.OIObjectMake, OWGamePause, OInterface.iDefAnimators, 660, 50, null, 0, true]; public static var OWGameScoreElementO:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow1", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow1", "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; public static var OWDeletePlayerConfirm:Array = [[GL.HeaderM, 210, 20, cMainColors[0], SStrings.getString("strDeletePlayerConfirm"), -7, 85, null, 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strYes"), 18, 210, "iButtons", 0, true], [GL.MakeNewButton, 75, 30, cMainColors[5], cMainColors[2], 20, SStrings.getString("strNo"), 103, 210, "iButtons", 1, true], [GL.BorderM, 289, 216, cMainColors[3], UI.OConfirmBorder, -45, 50, null, 0, true]]; public static var OWInstructions:Array = [[GL.HeaderM, 600, 50, cMainColors[0], SStrings.getString("strHowToPlay"), 0, 0, null, 0, true], [GL.BorderM, 318, 318, cMainColors[3], UI.ODemoBorder, 125, 125, "iBorder", 0, true], [GL.MakeBitmapFromLib, 28, 90, UI.OSmallGraphic, 126, 150, "iGraphics", 0, true], [OInterface.OIObjectMake, [], null, 125, 450, "iInfoText", 0, true], [GL.MakeNewButton, 140, 45, cMainColors[5], cMainColors[2], 35, SStrings.getString("strClose"), 645, 460, "iClose", 0, true]]; public static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4}; public static var OGFind:Array = [[GL.ColorHeader, 190, 28, FindColors1, SStrings.getString("strFind"), OInterface.iDefAnimators, 0, 0, "iFind", 0, true], [ODisplay.IDisplayObjectMake, OGNumberCounter, 137, 6, "iNumberCounter", 0, true], [GL.ColorHeader, 190, 28, FindColors2, "/", OInterface.iDefAnimators, 110, 0, "iTotalNumber", 0, true]]; public static var OWGameScoreElementM:Array = [OInterface.OTabMake, [[GL.HeaderM, 14, 20, cMainColors[0], " ", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "0", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "1", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "2", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "3", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "4", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "5", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "6", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "7", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "8", 0, 0, null, 0, false], [GL.HeaderM, 14, 20, cMainColors[0], "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; 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 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 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 OWInfoColors:Array = [8810577, 11312258, 11244918, 12431251]; private static var OWGameNotCompletedLevelM:Array = [[GL.HeaderM, 600, 60, 10040115, SStrings.getString("strTimeIsUp"), 0, 0, null, 0, true], [GL.HeaderM, 600, 35, 10040115, SStrings.getString("strPrToCont"), 0, 80, null, 0, true]]; public static var OWInfoPPlayer:Array = [[GL.ColorHeaderM, 190, 18, UI_RU.OWInfoColors, SStrings.getString("strLevel").toLowerCase(), null, 10, 37, null, 0, true]]; public static var OWGameNewLevel:Array = [[GL.ColorHeaderM, 600, 50, UI_RU.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 0, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_RU.cColors, SStrings.getString("strOpponent1"), OInterface.iDefAnimators, 0, 80, null, 0, true], [GL.ColorHeaderM, 600, 40, UI_RU.cColors, SStrings.getString("strSite"), OInterface.iDefAnimators, 0, 150, null, 0, true]]; public static var OWChoosePlayer:Array = [[GL.HeaderM, 250, 25, cMainColors[0], SStrings.getString("strChoosePlayer"), -10, -60, null, 0, true], [GL.ListBoxTextM, 230, 35, cMainColors[3], cMainColors[0], 5, null, -27, -15, "iListBox", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strNew"), 15, 194, "iNew", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strDelete"), 145, 194, "iDelete", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strAccept"), 30, 230, "iAccept", 0, true], [GL.MakeNewButton, 90, 30, cMainColors[5], cMainColors[2], 17, SStrings.getString("strCancel"), 130, 230, "iCancel", 0, true]]; public static var OWHighScorePersonalM:Array = [[GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 0, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 30, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 60, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 90, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "W", 0, 1, 0, 120, null, 0, true], [GL.TextAlignM, 0xFF, 30, 20, cMainColors[4], "9", 2, 1, 0, 120, null, 0, true]]; public static var OWGameCL:Array = [OInterface.OIObjectMake, OWGameCompletedLevelM, OInterface.iDefAnimators, 660, 50, 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]; private static var iGameType:int = 0; 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 var OWGameLevelElement:Array = [OInterface.OTabMake, [[GL.Header, 14, 20, "yellow", " ", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "0", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "1", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "2", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "3", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "4", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "5", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "6", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "7", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "8", 0, 0, null, 0, false], [GL.Header, 14, 20, "yellow", "9", 0, 0, null, 0, false]], 14, 20, UI_RU.OWGameCounterAnimator, null]; public static var OWSSaver:Array = [[GL.MakeNFTextButton, 75, 25, "yellow", "yellow", 25, SStrings.getString("strMenu"), 0, 0, "iMenu", 0, true], [GL.MakeNFTextButton, 225, 25, "aqua1", "aqua1", 25, SStrings.getString("strSite"), 0, 0, "iSite", 0, true]]; public static function get GameType():int{ return (iGameType); } public static function set GameType(_arg1:int):void{ iGameType = _arg1; UI.iGAME.prMode = iGameType; } } }//package

Library Items

Symbol 1 FontUsed by:2
Symbol 2 EditableTextUses:1Used by:3
Symbol 3 MovieClip {Preloader_Lib_TextLoading} [Lib_TextLoading]Uses:2
Symbol 4 Bitmap {Preloader_Lib_Logo}
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClip {UI_OCursor} [OCursor]Uses:5
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClip {UI_OWBorderM} [WelcomeBorderM]Uses:7
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip {UI_ORight} [Right]Uses:9
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClip {UI_FallParticle} [FallParticle]Uses:11
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClip {UI_ODemoBorder} [DemoBorderM]Uses:13
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17 18 83
Symbol 17 MovieClipUses:16Used by:18
Symbol 18 Button {UI_ButUpSell} [ButUpSell]Uses:17 16
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip {UI_OBorderM} [MBorder]Uses:19
Symbol 21 GraphicUsed by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:24 225
Symbol 24 MovieClip {UI_OLoopOnBook} [LoopOnFon]Uses:21 23
Symbol 25 GraphicUsed by:26 185
Symbol 26 MovieClipUses:25Used by:44
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:44 217
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:44
Symbol 31 FontUsed by:32 33 34 35 36 37 38 39 40 41 42 43 202 203 204 205 206 207 208 209 210 211 212 213
Symbol 32 TextUses:31Used by:44
Symbol 33 TextUses:31Used by:44
Symbol 34 TextUses:31Used by:44
Symbol 35 TextUses:31Used by:44
Symbol 36 TextUses:31Used by:44
Symbol 37 TextUses:31Used by:44
Symbol 38 TextUses:31Used by:44
Symbol 39 TextUses:31Used by:44
Symbol 40 TextUses:31Used by:44
Symbol 41 TextUses:31Used by:44
Symbol 42 TextUses:31Used by:44
Symbol 43 TextUses:31Used by:44
Symbol 44 MovieClip {UI_OBack} [Fon]Uses:26 28 30 32 33 34 35 36 37 38 39 40 41 42 43
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClip {UI_OLeft} [Left]Uses:45
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {UI_OIUp} [OIUp]Uses:47
Symbol 49 GraphicUsed by:52
Symbol 50 FontUsed by:51 77 96
Symbol 51 TextUses:50Used by:52
Symbol 52 MovieClip {UI_OUnLoop} [UnLoop]Uses:49 51
Symbol 53 GraphicUsed by:59
Symbol 54 FontUsed by:55 58 77 183
Symbol 55 TextUses:54Used by:59
Symbol 56 GraphicUsed by:59
Symbol 57 FontUsed by:58
Symbol 58 TextUses:54 57Used by:59
Symbol 59 MovieClip {UI_OGameNameM} [MGameName]Uses:53 55 56 58
Symbol 60 GraphicUsed by:64 105 107 179 181
Symbol 61 GraphicUsed by:64 105 107 179 181
Symbol 62 GraphicUsed by:64 105 107 179 181
Symbol 63 GraphicUsed by:64 105 107 179 181
Symbol 64 ButtonUses:60 61 62 63Used by:68
Symbol 65 FontUsed by:66 67
Symbol 66 EditableTextUses:65Used by:68
Symbol 67 EditableTextUses:65Used by:68
Symbol 68 MovieClip {UI_Lib_language} [Lib_btn_language]Uses:64 66 67
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClip {UI_OGameBorder} [GameBorderM]Uses:69
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClip {UI_OEnterBorder} [EnterBorderM]Uses:71
Symbol 73 FontUsed by:74
Symbol 74 EditableTextUses:73Used by:75
Symbol 75 MovieClip {UI_OFontArial} [OFontA]Uses:74
Symbol 76 FontUsed by:77
Symbol 77 EditableTextUses:50 54 76 166Used by:78
Symbol 78 MovieClip {UI_OFont} [OFont]Uses:77
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClip {UI_OGameVersion} [MVersion]Uses:79
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClip {UI_OUp} [Up]Uses:81
Symbol 83 MovieClip {UI_ButtonUpSell} [ButtonUpSell]Uses:16
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip {UI_OConfirmBorder} [ConfirmBorderM]Uses:84
Symbol 86 Sound {UI_OSBubbleBang03} [UI_OSBubbleBang03]
Symbol 87 Sound {UI_OSBubbleBang04} [UI_OSBubbleBang04]
Symbol 88 Sound {UI_OSBubbleBang01} [UI_OSBubbleBang01]
Symbol 89 Sound {UI_OSBubbleBang02} [UI_OSBubbleBang02]
Symbol 90 Sound {UI_OSBubbleBang07} [UI_OSBubbleBang07]
Symbol 91 Sound {UI_OSBubbleBang05} [UI_OSBubbleBang05]
Symbol 92 Sound {UI_OSBubbleBang06} [UI_OSBubbleBang06]
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClip {UI_OStop} [Stop]Uses:93
Symbol 95 GraphicUsed by:97
Symbol 96 TextUses:50Used by:97
Symbol 97 MovieClip {UI_OLoop} [Loop]Uses:95 96
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClip {UI_OILeft} [OILeft]Uses:98
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {UI_OChoosePBorder} [ChoosePBorderM]Uses:100
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClip {UI_OScoresBorder} [ScoresBorderM]Uses:102
Symbol 104 GraphicUsed by:105
Symbol 105 ButtonUses:60 104 61 62 63Used by:108
Symbol 106 GraphicUsed by:107
Symbol 107 ButtonUses:60 106 61 62 63Used by:108
Symbol 108 MovieClip {UI_Lib_fullscreen} [Lib_btn_fullscreen]Uses:105 107
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClip {UI_OBorder} [Border]Uses:109
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClip {UI_OIRight} [OIRight]Uses:111
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:148
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClipUses:115Used by:148
Symbol 117 GraphicUsed by:148
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:118Used by:148
Symbol 120 GraphicUsed by:148
Symbol 121 GraphicUsed by:148
Symbol 122 GraphicUsed by:148
Symbol 123 GraphicUsed by:148
Symbol 124 GraphicUsed by:148
Symbol 125 GraphicUsed by:148
Symbol 126 GraphicUsed by:148
Symbol 127 GraphicUsed by:148
Symbol 128 GraphicUsed by:148
Symbol 129 GraphicUsed by:148
Symbol 130 GraphicUsed by:148
Symbol 131 GraphicUsed by:148
Symbol 132 GraphicUsed by:148
Symbol 133 GraphicUsed by:148
Symbol 134 GraphicUsed by:148
Symbol 135 GraphicUsed by:148
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:136Used by:148
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:148
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:140Used by:148
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:142Used by:148
Symbol 144 GraphicUsed by:148
Symbol 145 BitmapUsed by:146 175
Symbol 146 GraphicUses:145Used by:147
Symbol 147 MovieClipUses:146Used by:148
Symbol 148 MovieClip {UI_OPlayBook} [PlayBook]Uses:114 116 117 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 139 141 143 144 147
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClip {UI_OTimerBorder} [TimerBorderM]Uses:149
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClipUses:151Used by:153
Symbol 153 MovieClip {UI_OButMC} [MCButton]Uses:152
Symbol 154 GraphicUsed by:177 225
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:177 225
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:177 225
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:177 225
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:177 225
Symbol 163 GraphicUsed by:177
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:177 225
Symbol 166 FontUsed by:77 167 171 173 215
Symbol 167 TextUses:166Used by:168
Symbol 168 MovieClipUses:167Used by:177
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:177
Symbol 171 TextUses:166Used by:174
Symbol 172 GraphicUsed by:174
Symbol 173 TextUses:166Used by:174
Symbol 174 MovieClipUses:171 172 173Used by:177
Symbol 175 GraphicUses:145Used by:176
Symbol 176 MovieClipUses:175Used by:177
Symbol 177 MovieClip {UI_OBook} [Book]Uses:154 156 158 160 162 163 165 168 170 174 176
Symbol 178 GraphicUsed by:179
Symbol 179 ButtonUses:60 178 61 62 63Used by:182
Symbol 180 GraphicUsed by:181
Symbol 181 ButtonUses:60 180 61 62 63Used by:182
Symbol 182 MovieClip {UI_Lib_sound} [Lib_btn_sound]Uses:179 181
Symbol 183 TextUses:54Used by:184
Symbol 184 MovieClip {UI_OSiteM} [MSite]Uses:183
Symbol 185 MovieClip {UI_OBG01} [Tile]Uses:25
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClip {UI_OSelectBorder} [SelectBorderM]Uses:186
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClip {UI_OResultBorder} [ResultBorderM]Uses:188
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClip {UI_ODown} [Down]Uses:190
Symbol 192 GraphicUsed by:193
Symbol 193 MovieClip {UI_OIDown} [OIDown]Uses:192
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:194Used by:217
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:217
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:217
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:217
Symbol 202 TextUses:31Used by:217
Symbol 203 TextUses:31Used by:217
Symbol 204 TextUses:31Used by:217
Symbol 205 TextUses:31Used by:217
Symbol 206 TextUses:31Used by:217
Symbol 207 TextUses:31Used by:217
Symbol 208 TextUses:31Used by:217
Symbol 209 TextUses:31Used by:217
Symbol 210 TextUses:31Used by:217
Symbol 211 TextUses:31Used by:217
Symbol 212 TextUses:31Used by:217
Symbol 213 TextUses:31Used by:217
Symbol 214 GraphicUsed by:217
Symbol 215 TextUses:166Used by:217
Symbol 216 MovieClipUsed by:217
Symbol 217 MovieClipUses:195 197 199 201 28 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216Used by:226
Symbol 218 GraphicUsed by:225
Symbol 219 GraphicUsed by:225
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:222
Symbol 222 MovieClipUses:221Used by:225
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:225
Symbol 225 MovieClipUses:154 156 158 218 160 162 219 165 23 222 224Used by:226
Symbol 226 MovieClip {UI_OBookUpSell} [BookUpSell]Uses:217 225
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:227Used by:229
Symbol 229 MovieClip {UI_OGameLoop} [GameLoop]Uses:228
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClip {UI_OSmallGraphic} [Graphics1L]Uses:230
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClip {UI_OStart} [Start]Uses:232
Symbol 234 GraphicUsed by:235 236 237 238
Symbol 235 MovieClipUses:234Used by:241
Symbol 236 MovieClipUses:234Used by:241
Symbol 237 MovieClipUses:234Used by:241
Symbol 238 MovieClipUses:234Used by:241
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:241
Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks]Uses:235 236 237 238 240
Symbol 242 Bitmap {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_PictureLevel1}
Symbol 243 GraphicUsed by:244 245 246 249 250 253 254 255 256 259 260
Symbol 244 MovieClipUses:243Used by:290
Symbol 245 MovieClipUses:243Used by:290
Symbol 246 MovieClipUses:243Used by:290
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClipUses:247Used by:290
Symbol 249 MovieClipUses:243Used by:290
Symbol 250 MovieClipUses:243Used by:290
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:251Used by:290
Symbol 253 MovieClipUses:243Used by:290
Symbol 254 MovieClipUses:243Used by:290
Symbol 255 MovieClipUses:243Used by:290
Symbol 256 MovieClipUses:243Used by:290
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClipUses:257Used by:290
Symbol 259 MovieClipUses:243Used by:290
Symbol 260 MovieClipUses:243Used by:290
Symbol 261 GraphicUsed by:262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
Symbol 262 MovieClipUses:261Used by:290
Symbol 263 MovieClipUses:261Used by:290
Symbol 264 MovieClipUses:261Used by:290
Symbol 265 MovieClipUses:261Used by:290
Symbol 266 MovieClipUses:261Used by:290
Symbol 267 MovieClipUses:261Used by:290
Symbol 268 MovieClipUses:261Used by:290
Symbol 269 MovieClipUses:261Used by:290
Symbol 270 MovieClipUses:261Used by:290
Symbol 271 MovieClipUses:261Used by:290
Symbol 272 MovieClipUses:261Used by:290
Symbol 273 MovieClipUses:261Used by:290
Symbol 274 MovieClipUses:261Used by:290
Symbol 275 MovieClipUses:261Used by:290
Symbol 276 MovieClipUses:261Used by:290
Symbol 277 MovieClipUses:261Used by:290
Symbol 278 MovieClipUses:261Used by:290
Symbol 279 MovieClipUses:261Used by:290
Symbol 280 MovieClipUses:261Used by:290
Symbol 281 MovieClipUses:261Used by:290
Symbol 282 MovieClipUses:261Used by:290
Symbol 283 MovieClipUses:261Used by:290
Symbol 284 MovieClipUses:261Used by:290
Symbol 285 MovieClipUses:261Used by:290
Symbol 286 MovieClipUses:261Used by:290
Symbol 287 MovieClipUses:261Used by:290
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:290
Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1}Uses:244 245 246 248 249 250 252 253 254 255 256 258 259 260 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 289
Symbol 291 BinaryData {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_Level_1}
Symbol 292 Bitmap {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_PictureDemo}

Instance Names

"txt"Symbol 3 MovieClip {Preloader_Lib_TextLoading} [Lib_TextLoading] Frame 1Symbol 2 EditableText
"btn"Symbol 68 MovieClip {UI_Lib_language} [Lib_btn_language] Frame 1Symbol 64 Button
"text2"Symbol 68 MovieClip {UI_Lib_language} [Lib_btn_language] Frame 1Symbol 66 EditableText
"text1"Symbol 68 MovieClip {UI_Lib_language} [Lib_btn_language] Frame 1Symbol 67 EditableText
"btn_fullscreen"Symbol 108 MovieClip {UI_Lib_fullscreen} [Lib_btn_fullscreen] Frame 1Symbol 105 Button
"btn_restore"Symbol 108 MovieClip {UI_Lib_fullscreen} [Lib_btn_fullscreen] Frame 1Symbol 107 Button
"iBorder"Symbol 153 MovieClip {UI_OButMC} [MCButton] Frame 1Symbol 152 MovieClip
"MainBorder"Symbol 177 MovieClip {UI_OBook} [Book] Frame 1Symbol 165 MovieClip
"Site"Symbol 177 MovieClip {UI_OBook} [Book] Frame 1Symbol 168 MovieClip
"Name2"Symbol 177 MovieClip {UI_OBook} [Book] Frame 1Symbol 170 MovieClip
"Name"Symbol 177 MovieClip {UI_OBook} [Book] Frame 1Symbol 174 MovieClip
"btn_sound_on"Symbol 182 MovieClip {UI_Lib_sound} [Lib_btn_sound] Frame 1Symbol 179 Button
"btn_sound_off"Symbol 182 MovieClip {UI_Lib_sound} [Lib_btn_sound] Frame 1Symbol 181 Button
"MainBorder"Symbol 225 MovieClip Frame 1Symbol 165 MovieClip
"n1"Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 235 MovieClip
"n2"Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 236 MovieClip
"n3"Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 237 MovieClip
"n5"Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 238 MovieClip
"n4"Symbol 241 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksDemo} [Masks] Frame 1Symbol 240 MovieClip
"n1"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 244 MovieClip
"n2"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 245 MovieClip
"n3"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 246 MovieClip
"n4"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 248 MovieClip
"n5"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 249 MovieClip
"n6"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 250 MovieClip
"n7"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 252 MovieClip
"n8"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 253 MovieClip
"n9"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 254 MovieClip
"n10"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 255 MovieClip
"n11"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 256 MovieClip
"n12"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 258 MovieClip
"n13"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 259 MovieClip
"n14"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 260 MovieClip
"n15"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 262 MovieClip
"n16"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 263 MovieClip
"n17"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 264 MovieClip
"n18"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 265 MovieClip
"n19"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 266 MovieClip
"n20"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 267 MovieClip
"n21"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 268 MovieClip
"n22"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 269 MovieClip
"n23"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 270 MovieClip
"n24"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 271 MovieClip
"n25"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 272 MovieClip
"n26"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 273 MovieClip
"n27"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 274 MovieClip
"n28"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 275 MovieClip
"n29"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 276 MovieClip
"n30"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 277 MovieClip
"n31"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 278 MovieClip
"n32"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 279 MovieClip
"n33"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 280 MovieClip
"n34"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 281 MovieClip
"n35"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 282 MovieClip
"n36"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 283 MovieClip
"n37"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 284 MovieClip
"n38"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 285 MovieClip
"n39"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 286 MovieClip
"n40"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 287 MovieClip
"n8a"Symbol 290 MovieClip {MAIN.OBJECTS.OLEVELS.OEmbedsLevels_MasksLevel1} Frame 1Symbol 289 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1461 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 3 as "Lib_TextLoading"
ExportAssets (56)Timeline Frame 2Symbol 6 as "OCursor"
ExportAssets (56)Timeline Frame 2Symbol 8 as "WelcomeBorderM"
ExportAssets (56)Timeline Frame 2Symbol 10 as "Right"
ExportAssets (56)Timeline Frame 2Symbol 12 as "FallParticle"
ExportAssets (56)Timeline Frame 2Symbol 14 as "DemoBorderM"
ExportAssets (56)Timeline Frame 2Symbol 18 as "ButUpSell"
ExportAssets (56)Timeline Frame 2Symbol 20 as "MBorder"
ExportAssets (56)Timeline Frame 2Symbol 24 as "LoopOnFon"
ExportAssets (56)Timeline Frame 2Symbol 44 as "Fon"
ExportAssets (56)Timeline Frame 2Symbol 46 as "Left"
ExportAssets (56)Timeline Frame 2Symbol 48 as "OIUp"
ExportAssets (56)Timeline Frame 2Symbol 52 as "UnLoop"
ExportAssets (56)Timeline Frame 2Symbol 59 as "MGameName"
ExportAssets (56)Timeline Frame 2Symbol 68 as "Lib_btn_language"
ExportAssets (56)Timeline Frame 2Symbol 70 as "GameBorderM"
ExportAssets (56)Timeline Frame 2Symbol 72 as "EnterBorderM"
ExportAssets (56)Timeline Frame 2Symbol 75 as "OFontA"
ExportAssets (56)Timeline Frame 2Symbol 78 as "OFont"
ExportAssets (56)Timeline Frame 2Symbol 80 as "MVersion"
ExportAssets (56)Timeline Frame 2Symbol 82 as "Up"
ExportAssets (56)Timeline Frame 2Symbol 83 as "ButtonUpSell"
ExportAssets (56)Timeline Frame 2Symbol 85 as "ConfirmBorderM"
ExportAssets (56)Timeline Frame 2Symbol 86 as "UI_OSBubbleBang03"
ExportAssets (56)Timeline Frame 2Symbol 87 as "UI_OSBubbleBang04"
ExportAssets (56)Timeline Frame 2Symbol 88 as "UI_OSBubbleBang01"
ExportAssets (56)Timeline Frame 2Symbol 89 as "UI_OSBubbleBang02"
ExportAssets (56)Timeline Frame 2Symbol 90 as "UI_OSBubbleBang07"
ExportAssets (56)Timeline Frame 2Symbol 91 as "UI_OSBubbleBang05"
ExportAssets (56)Timeline Frame 2Symbol 92 as "UI_OSBubbleBang06"
ExportAssets (56)Timeline Frame 2Symbol 94 as "Stop"
ExportAssets (56)Timeline Frame 2Symbol 97 as "Loop"
ExportAssets (56)Timeline Frame 2Symbol 99 as "OILeft"
ExportAssets (56)Timeline Frame 2Symbol 101 as "ChoosePBorderM"
ExportAssets (56)Timeline Frame 2Symbol 103 as "ScoresBorderM"
ExportAssets (56)Timeline Frame 2Symbol 108 as "Lib_btn_fullscreen"
ExportAssets (56)Timeline Frame 2Symbol 110 as "Border"
ExportAssets (56)Timeline Frame 2Symbol 112 as "OIRight"
ExportAssets (56)Timeline Frame 2Symbol 148 as "PlayBook"
ExportAssets (56)Timeline Frame 2Symbol 150 as "TimerBorderM"
ExportAssets (56)Timeline Frame 2Symbol 153 as "MCButton"
ExportAssets (56)Timeline Frame 2Symbol 177 as "Book"
ExportAssets (56)Timeline Frame 2Symbol 182 as "Lib_btn_sound"
ExportAssets (56)Timeline Frame 2Symbol 184 as "MSite"
ExportAssets (56)Timeline Frame 2Symbol 185 as "Tile"
ExportAssets (56)Timeline Frame 2Symbol 187 as "SelectBorderM"
ExportAssets (56)Timeline Frame 2Symbol 189 as "ResultBorderM"
ExportAssets (56)Timeline Frame 2Symbol 191 as "Down"
ExportAssets (56)Timeline Frame 2Symbol 193 as "OIDown"
ExportAssets (56)Timeline Frame 2Symbol 226 as "BookUpSell"
ExportAssets (56)Timeline Frame 2Symbol 229 as "GameLoop"
ExportAssets (56)Timeline Frame 2Symbol 231 as "Graphics1L"
ExportAssets (56)Timeline Frame 2Symbol 233 as "Start"
ExportAssets (56)Timeline Frame 2Symbol 241 as "Masks"
SerialNumber (41)Timeline Frame 1

Labels

"Preloader"Frame 1
"Mysteriez2"Frame 2




http://swfchan.com/26/127935/info.shtml
Created: 24/2 -2019 14:43:59 Last modified: 24/2 -2019 14:43:59 Server time: 22/12 -2024 19:10:55