Section 1
//OAdBanner (ENGINE.AD.OAdBanner)
package ENGINE.AD {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class OAdBanner {
private var iManager:DisplayObject;
private var iID:String;
private var iBanner:DisplayObject;
private var iPrefix:String;
private var iLoader:Loader;
private static const strURL:String = "http://wellgames.com/ad/";
public function OAdBanner(_arg1:String, _arg2:String){
this.iPrefix = _arg1;
this.iID = _arg2;
this.iLoader = new Loader();
this.iLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, OnIOError);
this.iLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, OnComplete);
this.iLoader.load(new URLRequest(this.prURL));
}
private function OnIOError(_arg1:IOErrorEvent):void{
}
public function DeleteBanner():void{
this.iBanner = null;
}
private function get prURL():String{
return ((((((OAdBanner.strURL + this.iPrefix) + "AdBanner.swf?r=") + this.iPrefix) + this.iID) + "&i=-1"));
}
public function get prBanner():DisplayObject{
return (this.iBanner);
}
public function CreateBanner():void{
if (this.iManager){
this.iBanner = this.iManager["prBanner"];
};
}
private function OnComplete(_arg1:Event):void{
this.iManager = this.iLoader.content;
}
}
}//package ENGINE.AD
Section 2
//OAdBanners (ENGINE.AD.OAdBanners)
package ENGINE.AD {
import flash.display.*;
import ENGINE.CORE.*;
public class OAdBanners {
public static var iBBanner:OAdBanner;
public static var iTBanner:OAdBanner;
public static function InitTBanner(_arg1:String, _arg2:String):void{
_slot1.iTBanner = new OAdBanner(_arg1, _arg2);
}
public static function RemoveBBanner(_arg1:DisplayObjectContainer):void{
var _local2:Sprite;
_local2 = (_slot1.iBBanner.prBanner as Sprite);
if (((_local2) && (_arg1.contains(_local2)))){
_arg1.removeChild(_local2);
};
_slot1.iBBanner.DeleteBanner();
}
public static function AddBBanner(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):void{
var _local6:Sprite;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_slot1.iBBanner.CreateBanner();
_local6 = (_slot1.iBBanner.prBanner as Sprite);
if (!_local6){
return;
};
_local7 = OGlobal.ToGlobal(_arg2);
_local8 = OGlobal.ToGlobal(_arg3);
_local9 = OGlobal.ToGlobal(_arg4);
_local10 = OGlobal.ToGlobal(_arg5);
_local6.x = Math.floor((_local7 + ((_local9 - _local6.width) / 2)));
_local6.y = Math.floor((_local8 + ((_local10 - _local6.height) / 2)));
_arg1.addChild(_local6);
}
public static function RemoveTBanner(_arg1:DisplayObjectContainer):void{
var _local2:Sprite;
_local2 = (_slot1.iTBanner.prBanner as Sprite);
if (((_local2) && (_arg1.contains(_local2)))){
_arg1.removeChild(_local2);
};
_slot1.iTBanner.DeleteBanner();
}
public static function InitBBanner(_arg1:String, _arg2:String):void{
_slot1.iBBanner = new OAdBanner(_arg1, _arg2);
}
public static function AddTBanner(_arg1:DisplayObjectContainer, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):void{
var _local6:Sprite;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_slot1.iTBanner.CreateBanner();
_local6 = (_slot1.iTBanner.prBanner as Sprite);
if (!_local6){
return;
};
_local7 = OGlobal.ToGlobal(_arg2);
_local8 = OGlobal.ToGlobal(_arg3);
_local9 = OGlobal.ToGlobal(_arg4);
_local10 = OGlobal.ToGlobal(_arg5);
_local6.x = Math.floor((_local7 + ((_local9 - _local6.width) / 2)));
_local6.y = Math.floor((_local8 + ((_local10 - _local6.height) / 2)));
_arg1.addChild(_local6);
}
}
}//package ENGINE.AD
Section 3
//OCache (ENGINE.CORE.OCache)
package ENGINE.CORE {
import flash.utils.*;
public dynamic class OCache {
public function Pack():ByteArray{
var _local1:ByteArray;
_local1 = new ByteArray();
_local1.writeObject(this);
return (_local1);
}
public function AddCategoryArr(_arg1:String, _arg2:String):Array{
var _local3:OCache;
_local3 = ((this[_arg1])==undefined) ? AddCategory(_arg1) : this[_arg1];
return (_local3.AddArr(_arg2));
}
public function GetArrItem(_arg1:String, _arg2:int){
if ((((this[_arg1] == undefined)) || ((this[_arg1][_arg2] == undefined)))){
return (null);
};
return (this[_arg1][_arg2]);
}
public function DeleteArrItem(_arg1:String, _arg2:int):void{
if (this[_arg1] == undefined){
return;
};
this[_arg1].splice(_arg2, 1);
}
public function IsCategoryArrItem(_arg1:String, _arg2:String, _arg3:int):Boolean{
if (this[_arg1] == undefined){
return (false);
};
return (this[_arg1].IsArrItem(_arg2, _arg3));
}
public function GetCategoryItem(_arg1:String, _arg2:String){
if (this[_arg1] == undefined){
return (null);
};
return (this[_arg1].GetItem(_arg2));
}
public function SetCategoryItem(_arg1:String, _arg2:String, _arg3):void{
if (this[_arg1] == undefined){
this[_arg1] = new OCache();
};
this[_arg1].SetItem(_arg2, _arg3);
}
public function SetCategoryArrItem(_arg1:String, _arg2:String, _arg3:int, _arg4):void{
if (this[_arg1] == undefined){
this[_arg1] = new OCache();
};
this[_arg1].SetArrItem(_arg2, _arg3, _arg4);
}
public function IsCategoryItem(_arg1:String, _arg2:String):Boolean{
if (this[_arg1] == undefined){
return (false);
};
return (this[_arg1].IsItem(_arg2));
}
public function DeleteCategoryItem(_arg1:String, _arg2:String):void{
if (this[_arg1] == undefined){
return;
};
this[_arg1].DeleteItem(_arg2);
}
public function AddCategory(_arg1:String):OCache{
this[_arg1] = new OCache();
return (this[_arg1]);
}
public function GetCategoryArrItem(_arg1:String, _arg2:String, _arg3:int){
if (this[_arg1] == undefined){
return (null);
};
return (GetArrItem(_arg2, _arg3));
}
public function GetCategoryNames(_arg1:String):Array{
var _local2:Array;
var _local3:String;
if (this[_arg1] == undefined){
return (null);
};
_local2 = new Array();
for (_local3 in this[_arg1]) {
_local2.push(_local3);
};
return ((_local2.length) ? _local2.sort() : null);
}
public function AddArr(_arg1:String):Array{
this[_arg1] = new Array();
return (this[_arg1]);
}
public function GetItem(_arg1:String){
if (this[_arg1] == undefined){
return (null);
};
return (this[_arg1]);
}
public function IsArrItem(_arg1:String, _arg2:int):Boolean{
return (((!((this[_arg1] == undefined))) && (!((this[_arg1][_arg2] == undefined)))));
}
public function DeleteCategoryArrItem(_arg1:String, _arg2:String, _arg3:int):void{
if (this[_arg1] == undefined){
return;
};
this[_arg1].DeleteArrItem(_arg2, _arg3);
}
public function Clear():void{
var _local1:String;
for (_local1 in this) {
delete this[_local1];
};
}
public function SetArrItem(_arg1:String, _arg2:int, _arg3):void{
if (this[_arg1] == undefined){
this[_arg1] = new Array();
};
this[_arg1][_arg2] = _arg3;
}
public function SetItem(_arg1:String, _arg2):void{
this[_arg1] = _arg2;
}
public function GetNames():Array{
var _local1:Array;
var _local2:String;
_local1 = new Array();
for (_local2 in this) {
_local1.push(_local2);
};
return ((_local1.length) ? _local1.sort() : null);
}
public function IsItem(_arg1:String):Boolean{
return (!((this[_arg1] == undefined)));
}
public function DeleteItem(_arg1:String):void{
if (this[_arg1] == undefined){
return;
};
delete this[_arg1];
}
}
}//package ENGINE.CORE
Section 4
//OGlobal (ENGINE.CORE.OGlobal)
package ENGINE.CORE {
import flash.display.*;
import flash.geom.*;
import flash.net.*;
public class OGlobal {
private static var iFPS:int = 60;
private static var iDomain:String;
private static var iSRect:Rectangle = new Rectangle();
private static var iVRect:Rectangle = new Rectangle(0, 0, 800, 600);
private static var iStage:Stage;
private static var iScale:Number = 1;
private static var iAppName:String;
private static var iOldScale:Number = 1;
public static function get FPS():int{
return (OGlobal.iFPS);
}
public static function CheckDomain(_arg1:String):Boolean{
var _local2:int;
_local2 = OGlobal.iDomain.indexOf(_arg1);
return ((((_local2 >= 0)) && ((_local2 <= 4))));
}
public static function ToLocal(_arg1:Number):Number{
return ((_arg1 / OGlobal.iScale));
}
public static function set FPS(_arg1:int):void{
OGlobal.iFPS = _arg1;
if (OGlobal.iStage){
OGlobal.iStage.frameRate = _arg1;
};
}
public static function Rescale(_arg1:Sprite, _arg2:Boolean=true):void{
var _local3:Number;
_local3 = (((OGlobal.iStage.stageWidth / OGlobal.iStage.stageHeight))<=(800 / 600)) ? (OGlobal.iStage.stageWidth / 800) : (OGlobal.iStage.stageHeight / 600);
OGlobal.iSRect.x = 0;
OGlobal.iSRect.y = 0;
OGlobal.iSRect.width = OGlobal.iStage.stageWidth;
OGlobal.iSRect.height = OGlobal.iStage.stageHeight;
OGlobal.iVRect.width = Math.round((800 * _local3));
OGlobal.iVRect.height = Math.round((600 * _local3));
OGlobal.iVRect.x = Math.floor(((OGlobal.iStage.stageWidth - OGlobal.iVRect.width) / 2));
OGlobal.iVRect.y = Math.floor(((OGlobal.iStage.stageHeight - OGlobal.iVRect.height) / 2));
if (_arg2){
_arg1.x = OGlobal.iVRect.x;
_arg1.y = OGlobal.iVRect.y;
};
OGlobal.iScale = _local3;
}
public static function get prStage():Stage{
return (OGlobal.iStage);
}
public static function ClearScale(_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;
_local1 = new LocalConnection();
OGlobal.iDomain = _local1.domain;
}
public static function get StageRect():Rectangle{
return (OGlobal.iSRect);
}
public static function ScaleFloor(_arg1:Number):Number{
return ((Math.floor((_arg1 * OGlobal.iScale)) / OGlobal.iScale));
}
public static function get Scale():Number{
return (OGlobal.iScale);
}
public static function get ViewporRect():Rectangle{
return (OGlobal.iVRect);
}
public static function get AppName():String{
return (OGlobal.iAppName);
}
public static function set prStage(_arg1:Stage):void{
OGlobal.iStage = _arg1;
}
public static function RestoreScale():void{
OGlobal.iScale = OGlobal.iOldScale;
}
public static function ScaleMod(_arg1:Number):Number{
var _local2:Number;
_local2 = (_arg1 * OGlobal.iScale);
return (((_local2 - Math.floor(_local2)) / OGlobal.iScale));
}
}
}//package ENGINE.CORE
Section 5
//ORandomInt (ENGINE.CORE.ORandomInt)
package ENGINE.CORE {
import flash.utils.*;
public class ORandomInt {
private var iNextRandom:int;
public function ORandomInt(){
iNextRandom = getTimer();
}
public function RandNumber():Number{
var _local1:Number;
_local1 = Rand();
return ((_local1 / 32767));
}
public function Rand():int{
iNextRandom = ((iNextRandom * 1103515245) + 12345);
return (((iNextRandom >> 16) & 32767));
}
public function get NextRandom():int{
return (this.iNextRandom);
}
public function RandOnInterval(_arg1:Number=0, _arg2:Number=1):int{
return ((_arg1 + (Rand() % ((1 + _arg2) - _arg1))));
}
public function RandVal(_arg1:int):int{
var _local2:Number;
_local2 = Rand();
return ((_local2 % _arg1));
}
public function SeedRand(_arg1:int=0):void{
if (_arg1 == 0){
iNextRandom = getTimer();
} else {
iNextRandom = _arg1;
};
}
}
}//package ENGINE.CORE
Section 6
//OSound (ENGINE.CORE.OSound)
package ENGINE.CORE {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
public class OSound {
private static var iMusicInd:int = 0;
private static var iSoundsObjects:Array;
private static var iSounds:Dictionary = new Dictionary(true);
private static var iMusicPlayList:Array = new Array();
private static var iSoundVolume:Number = 1;
private static var iMusicChannel:SoundChannel;
private static var iMusicVolume:Number = 1;
private static var iMusic:Sound;
public static function PlaySoundInd(_arg1:int, _arg2:Number=0):Boolean{
if (OSound.iSoundVolume == 0){
return (false);
};
_arg1 = Math.max(_arg1, 0);
_arg1 = Math.min(_arg1, (OSound.iSoundsObjects.length - 1));
return (OSound.PlaySound(OSound.iSoundsObjects[_arg1], _arg2));
}
public static function set MusicVolume(_arg1:Number):void{
var _local2:SoundTransform;
OSound.iMusicVolume = _arg1;
if (OSound.iMusicChannel){
if (_arg1 == 0){
OSound.StopMusic();
} else {
_local2 = OSound.iMusicChannel.soundTransform;
_local2.volume = _arg1;
OSound.iMusicChannel.soundTransform = _local2;
};
} else {
if (OSound.iMusicVolume > 0){
OSound.PlayMusic();
};
};
}
private static function OnMusicLoadComplete(_arg1:Event):void{
if (OSound.iMusicVolume == 0){
return;
};
OSound.iMusicChannel = iMusic.play(0, 0, new SoundTransform(OSound.iMusicVolume, 0));
OSound.RemoveMusic();
OSound.iMusicChannel.addEventListener(Event.SOUND_COMPLETE, OnMusicComplete);
}
public static function set SoundVolume(_arg1:Number):void{
OSound.iSoundVolume = _arg1;
}
private static function OnMusicLoadIOError(_arg1:Event):void{
OSound.RemoveMusic();
OSound.iMusicPlayList.splice(OSound.iMusicInd, 1);
OSound.iMusicInd = ((OSound.iMusicInd > (OSound.iMusicPlayList.length - 1))) ? (OSound.iMusicPlayList.length - 1) : OSound.iMusicInd;
OSound.PlayMusic();
}
private static function OnMusicComplete(_arg1:Event):void{
OSound.iMusicChannel.removeEventListener(Event.SOUND_COMPLETE, OnMusicComplete);
OSound.iMusicChannel = null;
OSound.iMusicChannel = iMusic.play(0, 0, new SoundTransform(OSound.iMusicVolume, 0));
OSound.iMusicChannel.addEventListener(Event.SOUND_COMPLETE, OnMusicComplete);
}
public static function PlaySound(_arg1:Class, _arg2:Number=0):Boolean{
var _local3:Sound;
if (OSound.iSoundVolume == 0){
return (false);
};
_local3 = OSound.iSounds[_arg1];
if (_local3 != null){
_local3.play(0, 0, new SoundTransform(OSound.iSoundVolume, _arg2));
};
return (!((_local3 == null)));
}
private static function RemoveMusic():void{
if (OSound.iMusic){
OSound.iMusic.removeEventListener(Event.COMPLETE, OSound.OnMusicLoadComplete);
OSound.iMusic.removeEventListener(IOErrorEvent.IO_ERROR, OSound.OnMusicLoadIOError);
};
}
public static function StopMusic():void{
if (OSound.iMusicChannel){
OSound.iMusicChannel.removeEventListener(Event.SOUND_COMPLETE, OnMusicComplete);
OSound.iMusicChannel.stop();
OSound.iMusicChannel = null;
};
}
public static function get SoundVolume():Number{
return (OSound.iSoundVolume);
}
public static function PlayListClear():void{
OSound.iMusicPlayList = new Array();
}
public static function PlayListAdd(_arg1:String):void{
OSound.iMusicPlayList.push(_arg1);
OSound.iMusicInd = (OSound.iMusicPlayList.length - 1);
}
public static function PlayMusic():void{
var request:URLRequest;
if ((((OSound.iMusicVolume == 0)) || (!(OSound.iMusicPlayList.length)))){
return;
};
OSound.StopMusic();
OSound.iMusicInd = ((OSound.iMusicInd + 1) % OSound.iMusicPlayList.length);
request = new URLRequest(OSound.iMusicPlayList[OSound.iMusicInd]);
OSound.iMusic = new Sound();
OSound.iMusic.addEventListener(Event.COMPLETE, OSound.OnMusicLoadComplete);
OSound.iMusic.addEventListener(IOErrorEvent.IO_ERROR, OSound.OnMusicLoadIOError);
try {
OSound.iMusic.load(request);
} catch(e:Error) {
};
}
public static function RegisterEmbedSounds(_arg1:Array):Boolean{
var _local2:int;
var _local3:Sound;
OSound.iSoundsObjects = _arg1;
_local2 = 0;
while (_local2 < _arg1.length) {
_local3 = (new (_arg1[_local2]) as Sound);
OSound.iSounds[_arg1[_local2]] = _local3;
_local2++;
};
return (true);
}
public static function PlaySoundRandom(_arg1:Number=0, _arg2:int=0, _arg3:int=-1):Boolean{
var _local4:int;
if (OSound.iSoundVolume == 0){
return (false);
};
_arg2 = Math.max(_arg2, 0);
_arg2 = Math.min(_arg2, (OSound.iSoundsObjects.length - 1));
if (_arg3 < 0){
_arg3 = (OSound.iSoundsObjects.length - 1);
};
_arg3 = Math.max(_arg3, 0);
_arg3 = Math.min(_arg3, (OSound.iSoundsObjects.length - 1));
_local4 = OUtils.Random(_arg2, _arg3);
return (OSound.PlaySound(OSound.iSoundsObjects[_local4], _arg1));
}
public static function get MusicVolume():Number{
return (OSound.iMusicVolume);
}
}
}//package ENGINE.CORE
Section 7
//OSystem (ENGINE.CORE.OSystem)
package ENGINE.CORE {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.system.*;
public class OSystem extends Sprite {
private var iLastTime:int;
private var iCount:int;
private var iText:TextField;
private var iSTimer:String;
public static var iUserText1:String = "";
public static var iUserText:String = "";
public static var iUserText2:String = "";
public function OSystem(){
this.iText = new TextField();
this.iText.autoSize = TextFieldAutoSize.LEFT;
this.iText.mouseEnabled = false;
this.addChild(this.iText);
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame);
this.iLastTime = getTimer();
this.iSTimer = "";
}
public function OnEnterFrame(_arg1:Event):void{
var _local2:uint;
var _local3:int;
_local2 = System.totalMemory;
_local3 = (getTimer() - this.iLastTime);
this.iCount++;
if (_local3 >= 1000){
this.iSTimer = String((Math.round(((_local3 / this.iCount) * 100)) / 100));
this.iLastTime = getTimer();
this.iCount = 0;
};
iText.text = ((((((((((_local2.toString() + " ") + this.iSTimer) + " ") + OGlobal.prStage.frameRate) + " | ") + OSystem.iUserText) + " ") + OSystem.iUserText1) + " ") + OSystem.iUserText2);
}
}
}//package ENGINE.CORE
Section 8
//OUtils (ENGINE.CORE.OUtils)
package ENGINE.CORE {
import ENGINE.DISPLAY.*;
import flash.geom.*;
public class OUtils {
public static function AddZero(_arg1:String, _arg2:int):String{
var _local3:String;
var _local4:int;
_local3 = "";
_local4 = _arg1.length;
while (_local4 < _arg2) {
_local3 = (_local3 + "0");
_local4++;
};
_local3 = (_local3 + _arg1);
return (_local3);
}
public static function Random(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * Math.random())));
}
public static function StringToTarget(_arg1:Class, _arg2:int, _arg3:String, _arg4:String, _arg5:int):String{
var _local6:Number;
var _local7:Rectangle;
var _local8:String;
var _local9:String;
var _local10:int;
_local6 = Math.round((1 + (_arg2 / 70)));
_local8 = ((_arg4)==null) ? "" : ((" (" + _arg4) + ")");
_local9 = (_arg3 + _local8);
_local7 = ODisplay.TextRect(_arg1, _arg2, _local6, _local9);
if (_local7.width <= _arg5){
return (_local9);
};
_local8 = ("..." + _local8);
_local10 = (_arg3.length - 1);
while (_local10 > 0) {
_local9 = (_arg3.substr(0, _local10) + _local8);
_local7 = ODisplay.TextRect(_arg1, _arg2, _local6, _local9);
if (_local7.width <= _arg5){
return (_local9);
};
_local10--;
};
return ((_arg3.substr(0, 1) + _local8));
}
public static function ClearString(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ";
_local3 = "";
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local2.indexOf(_arg1.charAt(_local4)) > -1){
_local3 = (_local3 + _arg1.charAt(_local4));
};
_local4++;
};
return (_local3);
}
}
}//package ENGINE.CORE
Section 9
//OEffect (ENGINE.DISPLAY.EFFECTS.OEffect)
package ENGINE.DISPLAY.EFFECTS {
import ENGINE.DISPLAY.*;
import flash.filters.*;
import ENGINE.CORE.*;
public class OEffect {
protected var iColors:OCache;
protected var iFilters:OCache;
public function OEffect(){
this.iColors = new OCache();
this.iFilters = new OCache();
}
public function RegisterColor(_arg1:String, _arg2):void{
this.iColors.SetItem(_arg1, _arg2);
}
public function Init(_arg1:String, _arg2:String, _arg3:Number=1):void{
}
public function RegisterFilter(_arg1:String, _arg2):void{
this.iFilters.SetItem(_arg1, _arg2);
}
public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{
return (null);
}
public static function MakeBevelFilter(_arg1:Array):BevelFilter{
return (new BevelFilter(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[11], _arg1[12]));
}
}
}//package ENGINE.DISPLAY.EFFECTS
Section 10
//OEffects (ENGINE.DISPLAY.EFFECTS.OEffects)
package ENGINE.DISPLAY.EFFECTS {
import ENGINE.DISPLAY.*;
import ENGINE.CORE.*;
public class OEffects {
private static var iEffects:OCache = new OCache();
public static function RegisterColor(_arg1:String, _arg2:String, _arg3):void{
var _local4:OEffect;
_local4 = iEffects.GetItem(_arg1);
if (_local4 == null){
return;
};
_local4.RegisterColor(_arg2, _arg3);
}
public static function RegisterEffect(_arg1:String, _arg2:OEffect):void{
iEffects.SetItem(_arg1, _arg2);
}
public static function Make(_arg1:Array):OBM{
var _local2:OEffect;
_local2 = iEffects.GetItem(_arg1[3]);
if (_local2 == null){
return (null);
};
_local2.Init(_arg1[4], _arg1[5], _arg1[6]);
return (_local2.Apply(_arg1[1], _arg1[2], _arg1[7], _arg1[8]));
}
public static function GetEffect(_arg1:String):OEffect{
return (iEffects.GetItem(_arg1));
}
public static function RegisterFilter(_arg1:String, _arg2:String, _arg3):void{
var _local4:OEffect;
_local4 = iEffects.GetItem(_arg1);
if (_local4 == null){
return;
};
_local4.RegisterFilter(_arg2, _arg3);
}
public static function Apply(_arg1, _arg2:Number, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=1, _arg7:Number=0, _arg8:Number=0):OBM{
var _local9:OEffect;
_local9 = iEffects.GetItem(_arg3);
if (_local9 == null){
return (null);
};
_local9.Init(_arg4, _arg5, _arg6);
return (_local9.Apply([ODisplay.SpriteLib, _arg1], _arg2, _arg7, _arg8));
}
}
}//package ENGINE.DISPLAY.EFFECTS
Section 11
//IDisplayObject (ENGINE.DISPLAY.IDisplayObject)
package ENGINE.DISPLAY {
public interface IDisplayObject {
function set prVisible(_arg1:Boolean):void;
function get prWidth():Number;
function get prHeight():Number;
function set prX(_arg1:Number):void;
function set prY(_arg1:Number):void;
function get prVisible():Boolean;
function Move(_arg1:Number, _arg2:Number):void;
function Pos(_arg1:Number, _arg2:Number):void;
function get prX():Number;
function get prY():Number;
}
}//package ENGINE.DISPLAY
Section 12
//OBitmap (ENGINE.DISPLAY.OBitmap)
package ENGINE.DISPLAY {
import flash.display.*;
import flash.geom.*;
import ENGINE.DISPLAY.EFFECTS.*;
import ENGINE.CORE.*;
import flash.text.*;
public class OBitmap extends Bitmap implements IDisplayObject {
protected var iY:Number;// = 0
protected var iX:Number;// = 0
protected var iOBM:OBM;// = null
public function OBitmap(_arg1:OBM=null, _arg2:Number=0, _arg3:Number=0){
iX = 0;
iY = 0;
iOBM = null;
super();
this.iX = _arg2;
this.iY = _arg3;
Init(_arg1);
}
public function get prVisible():Boolean{
return (this.visible);
}
public function set prX(_arg1:Number):void{
this.iX = _arg1;
Pos(this.iX, this.iY);
}
public function Clear():void{
this.Init(null);
}
public function set prOBM(_arg1:OBM):void{
this.Init(_arg1);
}
public function Pos(_arg1:Number, _arg2:Number):void{
this.iX = _arg1;
this.iY = _arg2;
if (this.iOBM){
this.x = ((this.iX * OGlobal.Scale) + this.iOBM.iX);
this.y = ((this.iY * OGlobal.Scale) + this.iOBM.iY);
} else {
this.x = (this.iX * OGlobal.Scale);
this.y = (this.iY * OGlobal.Scale);
};
}
public function set prY(_arg1:Number):void{
this.iY = _arg1;
Pos(this.iX, this.iY);
}
public function Init(_arg1:OBM):void{
this.iOBM = _arg1;
this.bitmapData = (_arg1) ? _arg1.iBM : null;
this.Pos(this.iX, this.iY);
}
public function set prVisible(_arg1:Boolean):void{
this.visible = _arg1;
}
public function Clone():OBitmap{
return (new OBitmap(this.iOBM.Clone(), this.iX, this.iY));
}
public function get prX():Number{
return (this.iX);
}
public function get prY():Number{
return (this.iY);
}
public function get prOBM():OBM{
return (this.iOBM);
}
public function get prHeight():Number{
return ((this.iOBM) ? (this.iOBM.iHeight / OGlobal.Scale) : 0);
}
public function get prWidth():Number{
return ((this.iOBM) ? (this.iOBM.iWidth / OGlobal.Scale) : 0);
}
public function CopyFrom(_arg1:OBitmap):void{
this.iX = _arg1.iX;
this.iY = _arg1.iY;
this.Init(_arg1.iOBM);
}
public function Move(_arg1:Number, _arg2:Number):void{
Pos((this.iX + _arg1), (this.iY + _arg2));
}
public static function MakeEffectFromListP(_arg1:Array):OBitmap{
var _local2:Sprite;
var _local3:Sprite;
_local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
_local3 = (_local2.getChildAt(_arg1[2]) as Sprite);
return (OBitmap.MakeEffect(_local3, _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _local3.x, _local3.y));
}
public static function MakeEffectP(_arg1:Array):OBitmap{
return (OBitmap.MakeEffect(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8]));
}
public static function MakeEffectTextInRectP(_arg1:Array):OBitmap{
var _local2:Sprite;
var _local3:Rectangle;
var _local4:Number;
var _local5:Number;
var _local6:TextField;
var _local7:TextFormat;
_local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
if ((_local2.getChildAt(0) is TextField)){
_local6 = (_local2.getChildAt(0) as TextField);
_local6.autoSize = TextFieldAutoSize.LEFT;
_local6.text = _arg1[4];
_local7 = _local6.defaultTextFormat;
_local7.size = _arg1[2];
_local7.letterSpacing = _arg1[3];
_local6.setTextFormat(_local7);
} else {
return (null);
};
_local3 = _local2.getBounds(_local2);
_local4 = ((_arg1[9] - _local3.width) / 2);
_local5 = ((_arg1[10] - _local3.height) / 2);
return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], (_arg1[11] + _local4), (_arg1[12] + _local5)));
}
public static function MakeEffectTextP(_arg1:Array):OBitmap{
var _local2:Sprite;
var _local3:TextField;
var _local4:TextFormat;
_local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
if ((_local2.getChildAt(0) is TextField)){
_local3 = (_local2.getChildAt(0) as TextField);
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.text = _arg1[4];
_local4 = _local3.defaultTextFormat;
_local4.size = _arg1[2];
_local4.letterSpacing = _arg1[3];
_local3.setTextFormat(_local4);
} else {
return (null);
};
return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]));
}
public static function MakeRoundRectBorderEffectP(_arg1:Array):OBitmap{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]);
_local2.graphics.drawRoundRect(_arg1[4], _arg1[4], (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), (_arg1[3] - _arg1[4]));
return (OBitmap.MakeEffect(_local2, 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]));
}
public static function MakeEffectInRectP(_arg1:Array):OBitmap{
var _local2:Number;
var _local3:Sprite;
var _local4:Rectangle;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = Math.min(_arg1[7], _arg1[8]);
_local3 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
_local4 = _local3.getBounds(_local3);
_local5 = Math.max(_local4.width, _local4.height);
_local6 = ((_local2 / _local5) * _arg1[2]);
_local7 = ((_arg1[7] - (_local4.width * _local6)) / 2);
_local8 = ((_arg1[8] - (_local4.height * _local6)) / 2);
return (OBitmap.MakeEffect(_local3, _local6, _arg1[3], _arg1[4], _arg1[5], _arg1[6], (_arg1[9] + _local7), (_arg1[10] + _local8)));
}
public static function MakeTmp(_arg1, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):OBitmap{
var _local6:OBM;
_local6 = OBM.Make([null, [ODisplay.SpriteLib, _arg1], _arg2, _arg3, _arg4, _arg5]);
return (new OBitmap(_local6, _arg3, _arg4));
}
public static function MakeP(_arg1:Array):OBitmap{
return (OBitmap.MakeTmp(_arg1[1], _arg1[2], _arg1[3], _arg1[4]));
}
public static function MakeRoundRectEffectP(_arg1:Array):OBitmap{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]);
return (OBitmap.MakeEffect(_local2, 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]));
}
public static function Make(_arg1:Array):OBitmap{
return (new OBitmap(_arg1[1][0](_arg1[1]), _arg1[2], _arg1[3]));
}
public static function MakeEffect(_arg1, _arg2:Number, _arg3:String, _arg4:String, _arg5:String, _arg6:Number=1, _arg7:Number=0, _arg8:Number=0):OBitmap{
var _local9:OBM;
_local9 = OEffects.Apply(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
return (new OBitmap(_local9, _arg7, _arg8));
}
}
}//package ENGINE.DISPLAY
Section 13
//OBM (ENGINE.DISPLAY.OBM)
package ENGINE.DISPLAY {
import flash.display.*;
import flash.geom.*;
import ENGINE.CORE.*;
public class OBM {
public var iX:Number;
public var iHeight:Number;
public var iBM:BitmapData;
public var iY:Number;
public var iWidth:Number;
public function OBM(_arg1:BitmapData=null, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){
this.iBM = _arg1;
this.iX = _arg2;
this.iY = _arg3;
this.iWidth = _arg4;
this.iHeight = _arg5;
}
public function Clone():OBM{
var _local1:BitmapData;
_local1 = this.iBM.clone();
return (new OBM(_local1, this.iX, this.iY, this.iWidth, this.iHeight));
}
public static function MakeFill(_arg1:Array):OBM{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Rectangle;
var _local8:Sprite;
var _local9:int;
var _local10:int;
var _local11:Number;
var _local12:Number;
var _local13:BitmapData;
var _local14:Matrix;
_local2 = new Sprite();
_local3 = _arg1[1][0](_arg1[1]);
_local4 = (OGlobal.Scale * _arg1[2]);
_local5 = OGlobal.ToGlobal(_arg1[4]);
_local6 = OGlobal.ToGlobal(_arg1[5]);
_local3.scaleX = _local4;
_local3.scaleY = _local4;
_local3.x = (_local3.x * OGlobal.Scale);
_local3.y = (_local3.y * OGlobal.Scale);
_local3.x = (_local3.x + _local5);
_local3.y = (_local3.y + _local6);
_local2.addChild(_local3);
_local7 = _local3.getBounds(_local2);
_local2.removeChild(_local3);
_local8 = new Sprite();
_local8.graphics.beginBitmapFill(_arg1[3]);
_local8.graphics.drawRect((_local7.x - 1), (_local7.y - 1), (_local7.width + 2), (_local7.height + 2));
_local8.graphics.endFill();
_local8.mask = _local3;
_local2.addChild(_local8);
_local9 = ((_local7.width + 4) + (_arg1[6] * 2));
_local10 = ((_local7.height + 4) + (_arg1[6] * 2));
_local11 = Math.floor(_local7.x);
_local12 = Math.floor(_local7.y);
_local13 = new BitmapData(_local9, _local10, true, 0);
_local14 = new Matrix(1, 0, 0, 1, ((-(_local11) + 1) + _arg1[6]), ((-(_local12) + 1) + _arg1[6]));
_local13.draw(_local2, _local14);
return (new OBM(_local13, (((_local11 - _local5) - 1) - _arg1[6]), (((_local12 - _local6) - 1) - _arg1[6]), _local7.width, _local7.height));
}
public static function Make(_arg1:Array):OBM{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Rectangle;
var _local8:int;
var _local9:int;
var _local10:Number;
var _local11:Number;
var _local12:BitmapData;
var _local13:Matrix;
_local2 = new Sprite();
_local3 = _arg1[1][0](_arg1[1]);
_local4 = (OGlobal.Scale * _arg1[2]);
_local5 = OGlobal.ToGlobal(_arg1[3]);
_local6 = OGlobal.ToGlobal(_arg1[4]);
_local3.scaleX = _local4;
_local3.scaleY = _local4;
_local3.x = (_local3.x * OGlobal.Scale);
_local3.y = (_local3.y * OGlobal.Scale);
_local3.x = (_local3.x + _local5);
_local3.y = (_local3.y + _local6);
_local2.addChild(_local3);
_local7 = _local3.getBounds(_local2);
_local8 = ((_local7.width + 4) + (_arg1[5] * 2));
_local9 = ((_local7.height + 4) + (_arg1[5] * 2));
_local10 = Math.floor(_local7.x);
_local11 = Math.floor(_local7.y);
_local12 = new BitmapData(_local8, _local9, true, 0);
_local13 = new Matrix(1, 0, 0, 1, ((-(_local10) + 1) + _arg1[5]), ((-(_local11) + 1) + _arg1[5]));
_local12.draw(_local2, _local13);
return (new OBM(_local12, (((_local10 - _local5) - 1) - _arg1[5]), (((_local11 - _local6) - 1) - _arg1[5]), _local7.width, _local7.height));
}
}
}//package ENGINE.DISPLAY
Section 14
//ODisplay (ENGINE.DISPLAY.ODisplay)
package ENGINE.DISPLAY {
import flash.display.*;
import flash.geom.*;
import ENGINE.DISPLAY.EFFECTS.*;
import ENGINE.CORE.*;
import flash.text.*;
public class ODisplay {
public static function SpriteErase(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
_local2 = new Sprite();
_local3 = new Sprite();
_local3.blendMode = BlendMode.LAYER;
_local4 = _arg1[1][0](_arg1[1]);
_local5 = _arg1[2][0](_arg1[2]);
_local5.blendMode = BlendMode.ERASE;
_local3.addChild(_local4);
_local3.addChild(_local5);
_local2.addChild(_local3);
return (_local2);
}
public static function HSBToRGB(_arg1:Number, _arg2:Number, _arg3:Number):uint{
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:int;
var _local12:int;
_arg1 = (_arg1 % 360);
if (_arg2 > 1){
_arg2 = 1;
};
if (_arg3 > 1){
_arg3 = 1;
};
if (_arg2 == 0){
_local4 = (_arg3 * 0xFF);
return ((((_local4 << 16) | (_local4 << 8)) | _local4));
};
if (_arg1 == 360){
_arg1 = 0;
} else {
_arg1 = (_arg1 / 60);
};
_local5 = Math.floor(_arg1);
_local6 = (_arg1 - _local5);
_local7 = (_arg3 * (1 - _arg2));
_local8 = (_arg3 * (1 - (_arg2 * _local6)));
_local9 = (_arg3 * (1 - (_arg2 * (1 - _local6))));
switch (_local5){
case 0:
_local10 = (_arg3 * 0xFF);
_local11 = (_local9 * 0xFF);
_local12 = (_local7 * 0xFF);
break;
case 1:
_local10 = (_local8 * 0xFF);
_local11 = (_arg3 * 0xFF);
_local12 = (_local7 * 0xFF);
break;
case 2:
_local10 = (_local7 * 0xFF);
_local11 = (_arg3 * 0xFF);
_local12 = (_local9 * 0xFF);
break;
case 3:
_local10 = (_local7 * 0xFF);
_local11 = (_local8 * 0xFF);
_local12 = (_arg3 * 0xFF);
break;
case 4:
_local10 = (_local9 * 0xFF);
_local11 = (_local7 * 0xFF);
_local12 = (_arg3 * 0xFF);
break;
case 5:
_local10 = (_arg3 * 0xFF);
_local11 = (_local7 * 0xFF);
_local12 = (_local8 * 0xFF);
break;
};
return ((((_local10 << 16) | (_local11 << 8)) | _local12));
}
public static function OBitmapXBorderSprite(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[15], _arg1[16]], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[9]], _arg1[10], _arg1[1], _arg1[2]], _arg1[9], _arg1[11], _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[16]]]]));
}
public static function OBitmapAngleFrameSprite(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[18] + _arg1[4]), (_arg1[19] + _arg1[4])], [null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[18], _arg1[19]], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[12]], _arg1[13], _arg1[1], _arg1[2]], _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18], _arg1[19]]]]));
}
public static function OBitmapXBorder(_arg1:Array):OBitmap{
return (OBitmapMake([null, [SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]]));
}
public static function OBitmapAngleFrameText(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[20], _arg1[21]], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]]));
}
public static function OBitmapRoundFrameText(_arg1:Array):OBitmap{
if (_arg1[4]){
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[20], _arg1[21]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]]));
};
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[20] + _arg1[4]), (_arg1[21] + _arg1[4])], [null, [ODisplay.SpriteTextInRect, _arg1[12], _arg1[13], _arg1[14], _arg1[15], _arg1[1], _arg1[2]], 1, _arg1[16], _arg1[17], _arg1[18], _arg1[19], _arg1[20], _arg1[21]]]]));
}
public static function SpriteFillRect(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Rectangle;
var _local5:Number;
_local2 = new Sprite();
_local3 = _arg1[1][0](_arg1[1]);
_local2.addChild(_local3);
_local4 = _local3.getBounds(_local2);
_local5 = (Math.max(_arg1[2], _arg1[3]) / Math.max(_local4.width, _local4.height));
_local3.scaleX = _local5;
_local3.scaleY = _local5;
_local4 = _local3.getBounds(_local2);
_local2.removeChild(_local3);
_local3.x = (_local3.x + ((_arg1[2] - _local4.width) / 2));
_local3.y = (_local3.y + ((_arg1[3] - _local4.height) / 2));
return (_local3);
}
public static function TextRect(_arg1, _arg2:Number, _arg3:Number, _arg4:String):Rectangle{
var _local5:Sprite;
var _local6:TextField;
var _local7:TextFormat;
_local5 = ((_arg1 is Sprite)) ? (_arg1 as Sprite) : new ((_arg1 as Class));
if ((_local5.getChildAt(0) is TextField)){
_local6 = (_local5.getChildAt(0) as TextField);
_local6.autoSize = TextFieldAutoSize.LEFT;
_local6.text = _arg4;
_local7 = _local6.defaultTextFormat;
_local7.size = _arg2;
_local7.letterSpacing = _arg3;
_local6.setTextFormat(_local7);
} else {
return (null);
};
return (_local5.getBounds(_local5));
}
public static function OBitmapXBorderText(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteXBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[17], _arg1[18]], [null, [ODisplay.SpriteTextInRect, _arg1[9], _arg1[10], _arg1[11], _arg1[12], _arg1[1], _arg1[2]], 1, _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18]]]]));
}
public static function OBitmapRoundRect(_arg1:Array):OBitmap{
return (OBitmapMake([null, [SpriteRoundRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]]));
}
public static function OBitmapAngleFrame(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[12], _arg1[13]], [null, [ODisplay.SpriteAngleRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] * (_arg1[1] - (_arg1[4] * 2))) / _arg1[1])], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[12] + _arg1[4]), (_arg1[13] + _arg1[4])]]]));
}
public static function HSBAToRGBA(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):uint{
var _local5:uint;
var _local6:uint;
_local5 = HSBToRGB(_arg1, _arg2, _arg3);
_local6 = (0xFF * _arg4);
_local6 = (_local6 << 24);
return ((_local5 + _local6));
}
public static function OBitmapTextAlign(_arg1:Array):OBitmap{
return (OBitmapMake([null, [ODisplay.SpriteTextAlign, _arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[11], _arg1[12]], 1, _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[13], _arg1[14]]));
}
public static function OBitmapList(_arg1:Array):OBitmap{
var _local2:OBM;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:OBM;
var _local7:Matrix;
_local2 = OEffects.Make(_arg1[1][0]);
_local3 = (_local2.iX + (_arg1[1][0][7] * OGlobal.Scale));
_local4 = (_local2.iY + (_arg1[1][0][8] * OGlobal.Scale));
_local5 = 1;
while (_local5 < _arg1[1].length) {
_local6 = OEffects.Make(_arg1[1][_local5]);
_local7 = new Matrix(1, 0, 0, 1, (((_arg1[1][_local5][7] * OGlobal.Scale) + _local6.iX) - _local3), (((_arg1[1][_local5][8] * OGlobal.Scale) + _local6.iY) - _local4));
_local2.iBM.draw(_local6.iBM, _local7);
_local5++;
};
return (new OBitmap(_local2, _arg1[1][0][7], _arg1[1][0][8]));
}
public static function SpriteLibList(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
if (_arg1[2] >= _local2.numChildren){
return (null);
};
return ((_local2.getChildAt(_arg1[2]) as Sprite));
}
public static function SpriteXBorder(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.lineStyle(_arg1[4]);
_local2.graphics.moveTo(0, _arg1[3]);
_local2.graphics.lineTo(_arg1[1], _arg1[3]);
_local2.graphics.moveTo(0, (_arg1[2] - _arg1[3]));
_local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3]));
_local2.graphics.moveTo(_arg1[3], 0);
_local2.graphics.lineTo(_arg1[3], _arg1[2]);
_local2.graphics.moveTo((_arg1[1] - _arg1[3]), 0);
_local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]);
return (_local2);
}
public static function SpriteLib(_arg1:Array):Sprite{
return (((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class)));
}
public static function OBitmapAngleBorder(_arg1:Array):OBitmap{
return (OBitmapMake([null, [SpriteAngleBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]]));
}
public static function OBitmapRoundBorder(_arg1:Array):OBitmap{
return (OBitmapMake([null, [SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]]));
}
public static function SpriteScale(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = _arg1[1][0](_arg1[1]);
_local2.scaleX = _arg1[2];
_local2.scaleY = _arg1[2];
return (_local2);
}
public static function IDisplayObjectMake(_arg1:Array){
var _local2:IDisplayObject;
_local2 = _arg1[1][0](_arg1[1]);
_local2.Pos(_arg1[2], _arg1[3]);
return (_local2);
}
public static function SpriteAlign(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Rectangle;
_local2 = new Sprite();
_local3 = _arg1[1][0](_arg1[1]);
_local3.scaleX = _arg1[2];
_local3.scaleY = _arg1[2];
_local2.addChild(_local3);
_local4 = _local3.getBounds(_local2);
_local2.removeChild(_local3);
switch (_arg1[3]){
case 1:
_local3.x = (_local3.x + ((_arg1[5] - _local4.width) / 2));
break;
case 2:
_local3.x = (_local3.x + (_arg1[5] - _local4.width));
break;
};
switch (_arg1[4]){
case 1:
_local3.y = (_local3.y + ((_arg1[6] - _local4.height) / 2));
break;
case 2:
_local3.y = (_local3.y + (_arg1[6] - _local4.height));
break;
};
return (_local3);
}
public static function OBitmapAngleRect(_arg1:Array):OBitmap{
return (OBitmapMake([null, [SpriteAngleRect, _arg1[1], _arg1[2], _arg1[3]], 1, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]]));
}
public static function SpriteRect(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRect(0, 0, _arg1[1], _arg1[2]);
return (_local2);
}
public static function OBitmapSpriteFillRect(_arg1:Array):OBitmap{
var _local2:Sprite;
_local2 = ODisplay.SpriteFillRect([null, _arg1[3], _arg1[1], _arg1[2]]);
return (OBitmapMake([null, [ODisplay.SpriteFillRect, _arg1[3], _arg1[1], _arg1[2]], _local2.scaleX, _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9]]));
}
public static function OBitmapText(_arg1:Array):OBitmap{
return (OBitmapMake([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]]));
}
public static function OBitmapMake(_arg1:Array):OBitmap{
return (new OBitmap(OEffects.Make(_arg1), _arg1[7], _arg1[8]));
}
public static function SpriteRoundRect(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]);
return (_local2);
}
public static function SpriteInRect(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Rectangle;
_local2 = new Sprite();
_local3 = _arg1[1][0](_arg1[1]);
_local3.scaleX = _arg1[2];
_local3.scaleY = _arg1[2];
_local2.addChild(_local3);
_local4 = _local3.getBounds(_local2);
_local2.removeChild(_local3);
_local3.x = (_local3.x + ((_arg1[3] - _local4.width) / 2));
_local3.y = (_local3.y + ((_arg1[4] - _local4.height) / 2));
return (_local3);
}
public static function SpriteScaleRotate(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Number;
var _local4:Number;
var _local5:Matrix;
var _local6:Matrix;
var _local7:Sprite;
_local2 = _arg1[1][0](_arg1[1]);
_local3 = (_arg1[4] * _arg1[2]);
_local4 = (_arg1[5] * _arg1[2]);
_local5 = new Matrix();
_local5.scale(_arg1[2], _arg1[2]);
_local5.translate(-(_local3), -(_local4));
_local5.rotate(((Math.PI / 180) * _arg1[3]));
_local6 = new Matrix();
_local6.translate(_local3, _local4);
_local5.concat(_local6);
_local7 = new Sprite();
_local7.addChild(_local2);
_local2.transform.matrix = _local5;
return (_local7);
}
public static function OBitmapRoundFrameSprite(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[18], _arg1[19]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[18] + _arg1[4]), (_arg1[19] + _arg1[4])], [null, [ODisplay.SpriteInRect, [ODisplay.SpriteLib, _arg1[12]], _arg1[13], _arg1[1], _arg1[2]], _arg1[13], _arg1[14], _arg1[15], _arg1[16], _arg1[17], _arg1[18], _arg1[19]]]]));
}
public static function SpriteText(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:TextField;
var _local4:TextFormat;
_local2 = ((_arg1[1] is Sprite)) ? (_arg1[1] as Sprite) : new ((_arg1[1] as Class));
if ((_local2.getChildAt(0) is TextField)){
_local3 = (_local2.getChildAt(0) as TextField);
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.text = _arg1[4];
_local4 = _local3.defaultTextFormat;
_local4.size = _arg1[2];
_local4.letterSpacing = _arg1[3];
_local3.setTextFormat(_local4);
} else {
return (null);
};
return (_local2);
}
public static function SpriteTextAlign(_arg1:Array):Sprite{
return (ODisplay.SpriteAlign([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8]]));
}
public static function OBitmapTextInRect(_arg1:Array):OBitmap{
return (OBitmapMake([null, [ODisplay.SpriteTextInRect, _arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[9], _arg1[10]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[11], _arg1[12]]));
}
public static function SpriteRoundBorder(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRoundRect(0, 0, _arg1[1], _arg1[2], _arg1[3]);
_local2.graphics.drawRoundRect(_arg1[4], _arg1[4], (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), (_arg1[3] - _arg1[4]));
return (_local2);
}
public static function SpriteAngleRect(_arg1:Array):Sprite{
var _local2:Sprite;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.moveTo(_arg1[3], 0);
_local2.graphics.lineTo((_arg1[1] - _arg1[3]), 0);
_local2.graphics.lineTo(_arg1[1], _arg1[3]);
_local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3]));
_local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]);
_local2.graphics.lineTo(_arg1[3], _arg1[2]);
_local2.graphics.lineTo(0, (_arg1[2] - _arg1[3]));
_local2.graphics.lineTo(0, _arg1[3]);
_local2.graphics.endFill();
return (_local2);
}
public static function SpriteAngleBorder(_arg1:Array):Sprite{
var _local2:Sprite;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = new Sprite();
_local2.graphics.beginFill(0);
_local2.graphics.moveTo(_arg1[3], 0);
_local2.graphics.lineTo((_arg1[1] - _arg1[3]), 0);
_local2.graphics.lineTo(_arg1[1], _arg1[3]);
_local2.graphics.lineTo(_arg1[1], (_arg1[2] - _arg1[3]));
_local2.graphics.lineTo((_arg1[1] - _arg1[3]), _arg1[2]);
_local2.graphics.lineTo(_arg1[3], _arg1[2]);
_local2.graphics.lineTo(0, (_arg1[2] - _arg1[3]));
_local2.graphics.lineTo(0, _arg1[3]);
_local3 = (_arg1[1] - (_arg1[4] * 2));
_local4 = (_arg1[2] - (_arg1[4] * 2));
_local5 = ((_arg1[3] * _local3) / _arg1[1]);
_local2.graphics.moveTo((_arg1[4] + _local5), (_arg1[4] + 0));
_local2.graphics.lineTo(((_arg1[4] + _local3) - _local5), (_arg1[4] + 0));
_local2.graphics.lineTo((_arg1[4] + _local3), (_arg1[4] + _local5));
_local2.graphics.lineTo((_arg1[4] + _local3), ((_arg1[4] + _local4) - _local5));
_local2.graphics.lineTo(((_arg1[4] + _local3) - _local5), (_arg1[4] + _local4));
_local2.graphics.lineTo((_arg1[4] + _local5), (_arg1[4] + _local4));
_local2.graphics.lineTo((_arg1[4] + 0), ((_arg1[4] + _local4) - _local5));
_local2.graphics.lineTo((_arg1[4] + 0), (_arg1[4] + _local5));
return (_local2);
}
public static function SpriteTextInRect(_arg1:Array):Sprite{
return (ODisplay.SpriteInRect([null, [ODisplay.SpriteText, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6]]));
}
public static function OBitmapRoundFrame(_arg1:Array):OBitmap{
return (ODisplay.OBitmapList([null, [[null, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], _arg1[3], _arg1[4]], 1, _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[12], _arg1[13]], [null, [ODisplay.SpriteRoundRect, (_arg1[1] - (_arg1[4] * 2)), (_arg1[2] - (_arg1[4] * 2)), ((_arg1[3] - _arg1[4]) - 2)], 1, _arg1[5], _arg1[9], _arg1[10], _arg1[11], (_arg1[12] + _arg1[4]), (_arg1[13] + _arg1[4])]]]));
}
}
}//package ENGINE.DISPLAY
Section 15
//OSprite (ENGINE.DISPLAY.OSprite)
package ENGINE.DISPLAY {
import flash.display.*;
import ENGINE.CORE.*;
public class OSprite extends Sprite implements IDisplayObject {
private var iY:Number;// = 0
private var iX:Number;// = 0
public function OSprite(){
iX = 0;
iY = 0;
super();
}
public function get prVisible():Boolean{
return (this.visible);
}
public function set prX(_arg1:Number):void{
this.iX = _arg1;
this.x = (_arg1 * OGlobal.Scale);
}
public function set prY(_arg1:Number):void{
this.iY = _arg1;
this.y = (_arg1 * OGlobal.Scale);
}
public function Pos(_arg1:Number, _arg2:Number):void{
this.iX = _arg1;
this.iY = _arg2;
this.x = (this.iX * OGlobal.Scale);
this.y = (this.iY * OGlobal.Scale);
}
public function set prVisible(_arg1:Boolean):void{
this.visible = _arg1;
}
public function lineStyle(_arg1:Number, _arg2:uint=0, _arg3:Number=1, _arg4:Boolean=false, _arg5:String="normal", _arg6:String=null, _arg7:String=null, _arg8:Number=3):void{
this.graphics.lineStyle((_arg1 * OGlobal.Scale), _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, (_arg8 * OGlobal.Scale));
}
public function drawCircle(_arg1:Number, _arg2:Number, _arg3:Number):void{
this.graphics.drawCircle((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale), (_arg3 * OGlobal.Scale));
}
public function moveTo(_arg1:Number, _arg2:Number):void{
this.graphics.moveTo((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale));
}
public function get prX():Number{
return (this.iX);
}
public function get prY():Number{
return (this.iY);
}
public function Free():void{
var _local1:DisplayObject;
while (this.numChildren) {
_local1 = this.getChildAt(0);
if ((_local1 is OSprite)){
(_local1 as OSprite).Free();
};
this.removeChildAt(0);
};
}
public function lineTo(_arg1:Number, _arg2:Number):void{
this.graphics.lineTo((_arg1 * OGlobal.Scale), (_arg2 * OGlobal.Scale));
}
public function get prHeight():Number{
return ((this.height / OGlobal.Scale));
}
public function get prWidth():Number{
return ((this.width / OGlobal.Scale));
}
public function Move(_arg1:Number, _arg2:Number):void{
Pos((this.iX + _arg1), (this.iY + _arg2));
}
public static function Make(_arg1:Array):OSprite{
var _local2:OSprite;
var _local3:int;
var _local4:int;
_local2 = new (OSprite);
_local3 = _arg1[1].length;
_local4 = 0;
while (_local4 < _local3) {
_local2.addChild(_arg1[1][_local4][0](_arg1[1][_local4]));
_local4++;
};
_local2.Pos(_arg1[2], _arg1[3]);
return (_local2);
}
}
}//package ENGINE.DISPLAY
Section 16
//OGame (ENGINE.GAME.OGame)
package ENGINE.GAME {
import ENGINE.CORE.*;
import flash.utils.*;
import flash.net.*;
public class OGame {
protected var iSTableSize:int;
protected var iCache:OCache;
protected var iPlayer:OPlayer;
protected var iRNDFactor:int;
protected var iModes:int;
protected var iScores:OScoresTable;
public static const catGlobal:String = "Global";
public static const catTmp:String = "Tmp";
protected static const strgMusicVolume:String = "Music Volume";
protected static const strgResX:String = "ResX";
protected static const strgResY:String = "ResY";
protected static const strgСurPlayer:String = "Current Player";
protected static const strgFullScreen:String = "Full Screen";
protected static const strgSoundVolume:String = "Sound Volume";
protected static const strgLocalScores:String = "Local Scores";
public static const catPlayers:String = "Players";
public function OGame(_arg1:int=1, _arg2:int=10, _arg3:int=10){
var _local4:String;
super();
this.iModes = _arg1;
this.iSTableSize = _arg2;
registerClassAlias("OCacheClass", OCache);
registerClassAlias("OGameParamsClass", OGameParams);
registerClassAlias("OScoreParamsClass", OScoreParams);
registerClassAlias("OScoresTableClass", OScoresTable);
registerClassAlias("OPlayerClass", OPlayer);
this.LoadCache();
_local4 = this.iCache.GetCategoryItem(catGlobal, strgСurPlayer);
if (_local4){
this.iPlayer = this.iCache.GetCategoryItem(catPlayers, _local4);
this.iScores = this.iCache.GetCategoryItem(catGlobal, strgLocalScores);
this.InitAfterLoadCache();
} else {
this.iScores = new OScoresTable(_arg1, this.iSTableSize);
this.DefaultInitLocalScores();
this.iCache.SetCategoryItem(catGlobal, strgLocalScores, this.iScores);
this.iCache.SetCategoryItem(catGlobal, strgSoundVolume, 1);
this.iCache.SetCategoryItem(catGlobal, strgMusicVolume, 1);
this.iCache.SetCategoryItem(catGlobal, strgResX, OGlobal.StageRect.width);
this.iCache.SetCategoryItem(catGlobal, strgResY, OGlobal.StageRect.height);
this.iCache.SetCategoryItem(catGlobal, strgFullScreen, false);
};
OSound.SoundVolume = this.prSoundVolume;
OSound.MusicVolume = this.prMusicVolume;
}
public function set prFullScreen(_arg1:Boolean):void{
this.iCache.SetCategoryItem(catGlobal, strgFullScreen, _arg1);
}
public function set prMode(_arg1:int):void{
this.iPlayer.iMode = _arg1;
}
public function get prGamesStartCount():int{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart);
}
public function get prLevelScore():int{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore);
}
public function set prPassword(_arg1:String):void{
this.iPlayer.iPassword = _arg1;
}
public function DeletePlayer(_arg1:String):String{
var _local2:String;
var _local3:Array;
_local2 = (this.iPlayer) ? this.iPlayer.iName : "";
this.iCache.DeleteCategoryItem(catPlayers, _arg1);
if (_arg1 == _local2){
_local3 = this.iCache.GetCategoryNames(catPlayers);
if (!_local3){
this.iPlayer = null;
return (null);
};
this.iPlayer = this.iCache.GetCategoryItem(catPlayers, _local3[0]);
this.iCache.SetCategoryItem(catGlobal, strgСurPlayer, _local3[0]);
};
return ((this.iPlayer) ? this.iPlayer.iName : null);
}
public function get prPlayerNames():Array{
return (this.iCache.GetCategoryNames(catPlayers));
}
public function ClearPersonalScores(_arg1:int):void{
this.iPlayer.iScoreTable.Clear(_arg1);
}
public function GetPersonalRecord(_arg1:int):int{
return (this.iPlayer.iScoreTable.GetRecord(_arg1));
}
public function InitAfterLoadCache():void{
}
public function AddScore(_arg1:int):void{
this.iPlayer.iGParams[this.iPlayer.iMode].iScore = (this.iPlayer.iGParams[this.iPlayer.iMode].iScore + _arg1);
}
public function get prPlayersData(){
var _local1:OCache;
var _local2:ByteArray;
_local1 = this.iCache.GetItem(catPlayers);
_local2 = _local1.Pack();
_local2.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;
this.iCache = a.readObject();
} catch(error:Error) {
this.iCache = new OCache();
};
};
so.close();
}
public function NewGame():void{
this.iPlayer.iGParams[this.iPlayer.iMode].iLevel = 0;
this.iPlayer.iGParams[this.iPlayer.iMode].iScore = 0;
this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore = 0;
this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame = null;
this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart++;
}
public function get prLevel():int{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iLevel);
}
public function get prSoundVolume():Number{
return (this.iCache.GetCategoryItem(catGlobal, strgSoundVolume));
}
public function get prPlayerName():String{
return ((this.iPlayer) ? this.iPlayer.iName : "");
}
public function get prScore():int{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iScore);
}
public function NextLevel():Boolean{
this.iPlayer.iGParams[this.iPlayer.iMode].iLevel++;
return (true);
}
public function set prPlayersData(_arg1):void{
this.iCache.SetItem(catPlayers, _arg1);
}
public function Read(_arg1:String, _arg2:String){
return (this.iCache.GetCategoryItem(_arg1, _arg2));
}
public function get prSavedGame():String{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame);
}
public function set prResX(_arg1:int):void{
this.iCache.SetCategoryItem(catGlobal, strgResX, _arg1);
}
public function get prRNDFactor():int{
return (this.iPlayer.iRNDFactor);
}
public function get prMusicVolume():Number{
return (this.iCache.GetCategoryItem(catGlobal, strgMusicVolume));
}
public function Write(_arg1:String, _arg2:String, _arg3):void{
this.iCache.SetCategoryItem(_arg1, _arg2, _arg3);
}
public function Start():void{
this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesStart++;
}
public function get prPassword():String{
return ((this.iPlayer.iPassword) ? this.iPlayer.iPassword : "");
}
public function get prMode():int{
return (this.iPlayer.iMode);
}
public function End():void{
this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesEnd++;
}
public function set prSoundVolume(_arg1:Number):void{
OSound.SoundVolume = _arg1;
this.iCache.SetCategoryItem(catGlobal, strgSoundVolume, _arg1);
}
public function SetLevelScore(_arg1:int):void{
this.iPlayer.iGParams[this.iPlayer.iMode].iLevelScore = _arg1;
}
public function GetLocalScores(_arg1:int, _arg2:int):OScoreParams{
return (this.iScores.GetScore(_arg1, _arg2));
}
public function GetPersonalScores(_arg1:int, _arg2:int):OScoreParams{
return (this.iPlayer.iScoreTable.GetScore(_arg1, _arg2));
}
public function AddScoreInTable(_arg1:int):Boolean{
var _local2:Boolean;
_local2 = false;
if (this.iScores.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel)){
this.iCache.SetCategoryItem(OGame.catGlobal, OGame.strgLocalScores, this.iScores);
_local2 = true;
};
if (this.iPlayer.iScoreTable.AddScore(this.prPlayerName, _arg1, this.prMode, this.prLevel, true)){
this.iCache.SetCategoryItem(OGame.catPlayers, this.prPlayerName, this.iPlayer);
_local2 = true;
};
return (_local2);
}
public function get prResX():int{
return (this.iCache.GetCategoryItem(catGlobal, strgResX));
}
public function get prResY():int{
return (this.iCache.GetCategoryItem(catGlobal, strgResY));
}
public function set prPlayerName(_arg1:String):void{
var _local2:OPlayer;
_local2 = this.iCache.GetCategoryItem(catPlayers, _arg1);
if (!_local2){
_local2 = new OPlayer(_arg1, "", this.iModes, this.iSTableSize);
this.iCache.SetCategoryItem(catPlayers, _arg1, _local2);
};
this.iPlayer = _local2;
this.iCache.SetCategoryItem(catGlobal, strgСurPlayer, _arg1);
}
public function DefaultInitLocalScores():void{
this.iScores.Clear(0);
this.iScores.AddScore("Emily", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Michael", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Jacob", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Isabella", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Madison", (int(((Math.random() * 100) + 50)) * 50), 0, int(((Math.random() * 5) + 3)));
this.iScores.SortOn(0);
}
public function SaveCache():Boolean{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal(OGlobal.AppName);
_local1.data.iData = this.iCache.Pack();
_local2 = _local1.flush();
_local1.close();
return ((_local2 == SharedObjectFlushStatus.FLUSHED));
}
public function set prResY(_arg1:int):void{
this.iCache.SetCategoryItem(catGlobal, strgResY, _arg1);
}
public function SetSaveGame(_arg1:String):void{
this.iPlayer.iGParams[this.iPlayer.iMode].iSavedGame = _arg1;
}
public function get prGamesEndCount():int{
return (this.iPlayer.iGParams[this.iPlayer.iMode].iCGamesEnd);
}
public function set prMusicVolume(_arg1:Number):void{
OSound.MusicVolume = _arg1;
this.iCache.SetCategoryItem(catGlobal, strgMusicVolume, _arg1);
}
public function get prFullScreen():Boolean{
return (this.iCache.GetCategoryItem(catGlobal, strgFullScreen));
}
public function ClearLocalScores(_arg1:int):void{
this.iScores.Clear(_arg1);
}
}
}//package ENGINE.GAME
Section 17
//OGameParams (ENGINE.GAME.OGameParams)
package ENGINE.GAME {
public class OGameParams {
public var iLevel:int;
public var iScore:int;
public var iSavedGame:String;
public var iCGamesEnd:int;
public var iLevelScore:int;
public var iCGamesStart:int;
}
}//package ENGINE.GAME
Section 18
//OPlayer (ENGINE.GAME.OPlayer)
package ENGINE.GAME {
public class OPlayer {
public var iPassword:String;
public var iScoreTable:OScoresTable;
public var iGParams:Array;
public var iMode:int;
public var iRNDFactor:int;
public var iName:String;
public function OPlayer(_arg1:String=null, _arg2:String=null, _arg3:int=1, _arg4:int=10, _arg5:int=10){
var _local6:int;
super();
this.iName = _arg1;
this.iPassword = _arg2;
this.iGParams = new Array(_arg3);
this.iRNDFactor = Math.round((Math.random() * (_arg5 - 1)));
_local6 = 0;
while (_local6 < _arg3) {
this.iGParams[_local6] = new OGameParams();
_local6++;
};
this.iScoreTable = new OScoresTable(_arg3, _arg4);
}
}
}//package ENGINE.GAME
Section 19
//OScoreParams (ENGINE.GAME.OScoreParams)
package ENGINE.GAME {
public class OScoreParams {
public var iScore:int;
public var iName:String;
public var iLevel:int;
public var iTime:Number;
public function OScoreParams(_arg1:String=null, _arg2:int=0, _arg3:int=0){
var _local4:Date;
super();
this.iName = _arg1;
this.iScore = _arg2;
_local4 = new Date();
this.iTime = _local4.time;
}
}
}//package ENGINE.GAME
Section 20
//OScoresTable (ENGINE.GAME.OScoresTable)
package ENGINE.GAME {
public class OScoresTable {
public var iTable:Array;
public var iMaxElements:int;
public function OScoresTable(_arg1:int=1, _arg2:int=10){
var _local3:int;
super();
this.iMaxElements = _arg2;
this.iTable = new Array();
_local3 = 0;
while (_local3 < _arg1) {
this.iTable[_local3] = new Array();
_local3++;
};
}
public function FindByName(_arg1:int, _arg2:String):int{
var _local3:int;
_local3 = 0;
while (_local3 < this.iTable[_arg1].length) {
if (this.iTable[_arg1][_local3].iName == _arg2){
return (_local3);
};
_local3++;
};
return (-1);
}
public function Clear(_arg1:int):void{
this.iTable[_arg1] = new Array();
}
public function GetRecord(_arg1:int):int{
if (!this.iTable[_arg1].length){
return (0);
};
return (this.iTable[_arg1][0].iScore);
}
public function AddScore(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:Boolean=false):Boolean{
var _local6:Array;
var _local7:int;
_local6 = this.iTable[_arg3];
if ((((_local6.length < this.iMaxElements)) || ((_local6[(_local6.length - 1)].iScore < _arg2)))){
_local7 = (_arg5) ? -1 : this.FindByName(_arg3, _arg1);
if (_local7 >= 0){
if (_arg2 < _local6[_local7].iScore){
return (false);
};
_local6[_local7] = new OScoreParams(_arg1, _arg2, _arg4);
this.SortOn(_arg3);
return (true);
};
if (_local6.length < this.iMaxElements){
_local6[_local6.length] = new OScoreParams(_arg1, _arg2, _arg4);
this.SortOn(_arg3);
return (true);
};
if (_local6[(_local6.length - 1)].iScore > _arg2){
return (false);
};
_local6[(_local6.length - 1)] = new OScoreParams(_arg1, _arg2, _arg4);
this.SortOn(_arg3);
return (true);
};
return (false);
}
public function IsRecord(_arg1:int, _arg2:int):Boolean{
if (!this.iTable[_arg1].length){
return (true);
};
return ((_arg2 >= this.iTable[_arg1][0].iScore));
}
public function GetScore(_arg1:int, _arg2:int):OScoreParams{
return (this.iTable[_arg1][_arg2]);
}
public function SortOn(_arg1:int):void{
this.iTable[_arg1] = this.iTable[_arg1].sortOn("iScore", (Array.DESCENDING | Array.NUMERIC));
}
}
}//package ENGINE.GAME
Section 21
//OA_Alpha (ENGINE.INTERFACE.ANIMATORS.OA_Alpha)
package ENGINE.INTERFACE.ANIMATORS {
import ENGINE.INTERFACE.*;
public class OA_Alpha extends OAnimator {
public var iEAlpha:Number;
private var iDAlpha:Number;
public var iSAlpha:Number;
private var iEndAlpha:Number;
public var iPIter:int;
public function OA_Alpha(_arg1:Object, _arg2:OIObject=null){
super(_arg1, _arg2);
}
override protected function Start():int{
var _local1:Number;
_local1 = ((this.iSAlpha)>=0) ? this.iSAlpha : this.iTarget.alpha;
this.iEndAlpha = ((this.iEAlpha)>=0) ? this.iEAlpha : this.iTarget.alpha;
this.iDAlpha = ((this.iEndAlpha - _local1) / iPIter);
this.iTarget.visible = true;
this.iTarget.alpha = _local1;
return (((Math.abs(this.iDAlpha) > 0.001)) ? stPlay : stEnd);
}
override public function Play():void{
var _local1:Number;
_local1 = (this.iTarget.alpha + this.iDAlpha);
if ((((((this.iDAlpha > 0)) && ((_local1 >= this.iEndAlpha)))) || ((((this.iDAlpha <= 0)) && ((_local1 <= this.iEndAlpha)))))){
this.iTarget.alpha = this.iEndAlpha;
if (this.iTarget.alpha == 0){
this.iTarget.visible = false;
};
this.State = OAnimator.stEnd;
} else {
this.iTarget.alpha = _local1;
};
}
public static function Make(_arg1:Object, _arg2:OIObject=null):OA_Alpha{
return (new OA_Alpha(_arg1, _arg2));
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 22
//OA_AlphaFade (ENGINE.INTERFACE.ANIMATORS.OA_AlphaFade)
package ENGINE.INTERFACE.ANIMATORS {
import flash.display.*;
import ENGINE.INTERFACE.*;
public class OA_AlphaFade extends OAnimator {
public var iEAlpha:Number;
public var iEInd:Array;
private var iEndAlpha:Array;
private var iCurAlpha:Number;
private var iDAlpha:Array;
private var iStartAlpha:Array;
public var iSInd:Array;
public var iSAlpha:Number;
public var iPIter:int;
public function OA_AlphaFade(_arg1:Object, _arg2:OIObject=null){
super(_arg1, _arg2);
}
override protected function Start():int{
var _local1:int;
var _local2:int;
var _local3:DisplayObject;
var _local4:DisplayObject;
if ((((this.iSInd == null)) && ((this.iEInd == null)))){
return (OAnimator.stEnd);
};
if (this.iSInd.length != this.iEInd.length){
return (OAnimator.stEnd);
};
_local1 = this.iSInd.length;
this.iStartAlpha = new Array(_local1);
this.iEndAlpha = new Array(_local1);
this.iDAlpha = new Array(_local1);
_local2 = 0;
while (_local2 < _local1) {
_local3 = this.iTarget.getChildAt(this.iSInd[_local2]);
_local4 = this.iTarget.getChildAt(this.iEInd[_local2]);
this.iStartAlpha[_local2] = ((this.iSAlpha)>=0) ? this.iSAlpha : _local3.alpha;
this.iEndAlpha[_local2] = ((this.iEAlpha)>=0) ? this.iEAlpha : _local4.alpha;
this.iDAlpha[_local2] = ((this.iEndAlpha[_local2] - this.iStartAlpha[_local2]) / iPIter);
_local3.alpha = this.iStartAlpha[_local2];
_local3.visible = true;
_local4.alpha = this.iEndAlpha[_local2];
_local4.visible = true;
_local2++;
};
this.iCurAlpha = this.iStartAlpha[0];
return (OAnimator.stPlay);
}
override public function Play():void{
var _local1:DisplayObject;
var _local2:DisplayObject;
var _local3:int;
var _local4:int;
this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]);
_local3 = this.iSInd.length;
if ((((((this.iDAlpha[0] > 0)) && ((this.iCurAlpha >= this.iEndAlpha[0])))) || ((((this.iDAlpha[0] <= 0)) && ((this.iCurAlpha <= this.iEndAlpha[0])))))){
_local4 = 0;
while (_local4 < _local3) {
_local1 = this.iTarget.getChildAt(this.iSInd[_local4]);
_local2 = this.iTarget.getChildAt(this.iEInd[_local4]);
_local1.alpha = this.iEndAlpha[_local4];
if (_local1.alpha == 0){
_local1.visible = false;
};
_local2.alpha = this.iStartAlpha[_local4];
if (_local2.alpha == 0){
_local2.visible = false;
};
_local4++;
};
this.State = OAnimator.stEnd;
} else {
_local4 = 0;
while (_local4 < _local3) {
_local1 = this.iTarget.getChildAt(this.iSInd[_local4]);
_local2 = this.iTarget.getChildAt(this.iEInd[_local4]);
_local1.alpha = (_local1.alpha + this.iDAlpha[_local4]);
_local2.alpha = (_local2.alpha - this.iDAlpha[_local4]);
_local4++;
};
};
}
public static function Make(_arg1:Object, _arg2:OIObject=null):OA_AlphaFade{
return (new OA_AlphaFade(_arg1, _arg2));
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 23
//OA_AlphaInd (ENGINE.INTERFACE.ANIMATORS.OA_AlphaInd)
package ENGINE.INTERFACE.ANIMATORS {
import flash.display.*;
import ENGINE.INTERFACE.*;
public class OA_AlphaInd extends OAnimator {
public var iEAlpha:Number;
private var iCurAlpha:Number;
private var iEndAlpha:Array;
private var iDAlpha:Array;
public var iInd:Array;
public var iSAlpha:Number;
public var iPIter:int;
public function OA_AlphaInd(_arg1:Object, _arg2:OIObject=null){
super(_arg1, _arg2);
}
override protected function Start():int{
var _local1:int;
var _local2:int;
var _local3:DisplayObject;
var _local4:Number;
if (((!(this.iInd)) || ((this.iInd.length == 0)))){
return (stEnd);
};
_local1 = this.iInd.length;
this.iEndAlpha = new Array(_local1);
this.iDAlpha = new Array(_local1);
_local2 = 0;
while (_local2 < _local1) {
_local3 = this.iTarget.getChildAt(this.iInd[_local2]);
_local4 = ((this.iSAlpha)>=0) ? this.iSAlpha : _local3.alpha;
this.iEndAlpha[_local2] = ((this.iEAlpha)>=0) ? this.iEAlpha : _local3.alpha;
this.iDAlpha[_local2] = ((this.iEndAlpha[_local2] - _local4) / iPIter);
_local3.visible = true;
_local3.alpha = _local4;
_local2++;
};
this.iCurAlpha = this.iTarget.getChildAt(this.iInd[0]).alpha;
return (((Math.abs(this.iDAlpha[0]) > 0.001)) ? stPlay : stEnd);
}
override public function Play():void{
var _local1:int;
var _local2:int;
var _local3:DisplayObject;
this.iCurAlpha = (this.iCurAlpha + this.iDAlpha[0]);
_local1 = this.iInd.length;
if ((((((this.iDAlpha[0] > 0)) && ((this.iCurAlpha >= this.iEndAlpha[0])))) || ((((this.iDAlpha[0] <= 0)) && ((this.iCurAlpha <= this.iEndAlpha[0])))))){
_local2 = 0;
while (_local2 < _local1) {
_local3 = this.iTarget.getChildAt(this.iInd[_local2]);
_local3.alpha = this.iEndAlpha[_local2];
_local3.visible = (_local3.alpha > 0);
_local2++;
};
this.State = stEnd;
} else {
_local2 = 0;
while (_local2 < _local1) {
_local3 = this.iTarget.getChildAt(this.iInd[_local2]);
_local3.alpha = (_local3.alpha + this.iDAlpha[_local2]);
_local2++;
};
};
}
public static function Make(_arg1:Object, _arg2:OIObject=null):OA_AlphaInd{
return (new OA_AlphaInd(_arg1, _arg2));
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 24
//OA_Scale (ENGINE.INTERFACE.ANIMATORS.OA_Scale)
package ENGINE.INTERFACE.ANIMATORS {
import ENGINE.INTERFACE.*;
public class OA_Scale extends OAnimator {
public var iSScale:Number;
private var iEndScale:Number;
public var iEScale:Number;
private var iDScale:Number;
public var iPIter:int;
public function OA_Scale(_arg1:Object, _arg2:OIObject=null){
super(_arg1, _arg2);
}
override protected function Start():int{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = ((this.iSScale)>=0) ? this.iSScale : this.iTarget.scaleX;
this.iEndScale = ((this.iEScale)>=0) ? this.iEScale : this.iTarget.scaleX;
this.iDScale = ((this.iEndScale - _local1) / iPIter);
_local2 = this.iTarget.prWidth;
_local3 = this.iTarget.prHeight;
this.iTarget.scaleX = _local1;
this.iTarget.scaleY = _local1;
this.iTarget.Move(((_local2 - this.iTarget.prWidth) / 2), ((_local3 - this.iTarget.prHeight) / 2));
return (((Math.abs(this.iDScale) > 1E-5)) ? stPlay : stEnd);
}
override public function Play():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = this.iTarget.prWidth;
_local2 = this.iTarget.prHeight;
_local3 = (this.iTarget.scaleX + this.iDScale);
if ((((((this.iDScale > 0)) && ((_local3 >= this.iEndScale)))) || ((((this.iDScale <= 0)) && ((_local3 <= this.iEndScale)))))){
this.iTarget.scaleX = this.iEndScale;
this.iTarget.scaleY = this.iEndScale;
this.State = OAnimator.stEnd;
} else {
this.iTarget.scaleX = (this.iTarget.scaleX + this.iDScale);
this.iTarget.scaleY = (this.iTarget.scaleY + this.iDScale);
};
this.iTarget.Move(((_local1 - this.iTarget.prWidth) / 2), ((_local2 - this.iTarget.prHeight) / 2));
}
public static function Make(_arg1:Object, _arg2:OIObject=null):OA_Scale{
return (new OA_Scale(_arg1, _arg2));
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 25
//OAnimator (ENGINE.INTERFACE.ANIMATORS.OAnimator)
package ENGINE.INTERFACE.ANIMATORS {
import ENGINE.INTERFACE.*;
public class OAnimator {
private var iState:int;
protected var iTarget:OIObject;
public static const stStart:int = 1;
public static const stEnd:int = 3;
public static const stPause:int = 0;
public static const stReturn:int = 4;
public static const stPlay:int = 2;
public function OAnimator(_arg1:Object, _arg2:OIObject=null){
var _local3:String;
super();
for (_local3 in _arg1) {
if (this.hasOwnProperty(_local3)){
this[_local3] = _arg1[_local3];
};
};
this.iTarget = _arg2;
this.State = stPause;
}
public function set State(_arg1:int):void{
this.iState = _arg1;
switch (this.iState){
case stStart:
this.State = this.Start();
break;
case stReturn:
this.State = Return();
break;
};
}
public function Play():void{
this.State = stEnd;
}
public function set prTarget(_arg1:OIObject):void{
this.iTarget = _arg1;
}
protected function Start():int{
return (stPlay);
}
public function get State():int{
return (this.iState);
}
public function Return():int{
return (stPlay);
}
public function OnEnterFrame():void{
if (this.iState == stPlay){
Play();
};
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 26
//OAnimatorManager (ENGINE.INTERFACE.ANIMATORS.OAnimatorManager)
package ENGINE.INTERFACE.ANIMATORS {
import ENGINE.INTERFACE.*;
public class OAnimatorManager {
private var iPlaying:Array;
private var iTarget:OIObject;
public static const anActivate:int = 2;
public static const anDeactivate:int = 3;
public static const anShow:int = 0;
public static const iAnimatorsCount:int = 10;
public static const anHide:int = 1;
public static const anPress:int = 8;
public static const anRoolOver:int = 6;
public static const anUnpress:int = 9;
public static const anFocusOut:int = 5;
public static const anRoolOut:int = 7;
public static const anUncheck:int = 10;
public static const anCheck:int = 9;
public static const anFocusIn:int = 4;
public static const iNullAnimators:Array = [null, null, null, null, null, null, null, null, null, null];
public function OAnimatorManager(_arg1:OIObject){
this.iTarget = _arg1;
this.iPlaying = new Array();
}
public function get prAnimation():Boolean{
return ((iPlaying.length > 0));
}
public function AddAnimator(_arg1:Object):void{
var _local2:*;
if (_arg1 == null){
return;
};
if (this.iPlaying.length > 0){
this.iPlaying[0].Return();
};
_local2 = _arg1.F(_arg1);
_local2.prTarget = this.iTarget;
this.iPlaying.push(_local2);
}
public function OnEnterFrame():void{
if (this.iPlaying.length == 0){
return;
};
switch (this.iPlaying[0].State){
case OAnimator.stEnd:
this.iPlaying[0] = null;
this.iPlaying.splice(0, 1);
break;
case OAnimator.stPause:
this.iPlaying[0].State = OAnimator.stStart;
break;
case OAnimator.stPlay:
this.iPlaying[0].Play();
break;
};
}
public function Free():void{
this.iTarget = null;
this.iPlaying = null;
}
}
}//package ENGINE.INTERFACE.ANIMATORS
Section 27
//OHtmlTextField (ENGINE.INTERFACE.ELEMENTS.OHtmlTextField)
package ENGINE.INTERFACE.ELEMENTS {
import ENGINE.DISPLAY.*;
import flash.display.*;
import ENGINE.CORE.*;
import flash.text.*;
public class OHtmlTextField extends TextField {
private var iTextFormat:TextFormat;
public function OHtmlTextField(_arg1:Number, _arg2:Number, _arg3, _arg4:Number, _arg5:Number, _arg6:Boolean, _arg7:Array, _arg8:String, _arg9:Number, _arg10:Number, _arg11:Boolean=true){
var _local12:Number;
var _local13:Sprite;
super();
_local12 = (_arg11) ? OGlobal.Scale : 1;
this.type = TextFieldType.DYNAMIC;
this.autoSize = TextFieldAutoSize.NONE;
this.multiline = true;
this.wordWrap = true;
this.selectable = false;
if (_arg3){
_local13 = ((_arg3 is Sprite)) ? (_arg3 as Sprite) : new ((_arg3 as Class));
if ((_local13.getChildAt(0) is TextField)){
this.iTextFormat = (_local13.getChildAt(0) as TextField).getTextFormat();
} else {
this.iTextFormat = this.defaultTextFormat;
};
} else {
this.iTextFormat = this.defaultTextFormat;
};
this.iTextFormat.size = (_arg4 * _local12);
this.iTextFormat.letterSpacing = (_arg5 * _local12);
this.iTextFormat.color = ODisplay.HSBToRGB(_arg7[0], _arg7[1], _arg7[2]);
this.iTextFormat.align = TextFormatAlign.LEFT;
this.defaultTextFormat = this.iTextFormat;
this.prText = _arg8;
this.width = (_arg1 * _local12);
this.height = (_arg2 * _local12);
this.x = (_arg9 * _local12);
this.y = (_arg10 * _local12);
this.border = _arg6;
}
public function set prText(_arg1:String):void{
this.htmlText = _arg1;
}
public function set prFormat(_arg1:TextFormat):void{
this.iTextFormat = _arg1;
this.defaultTextFormat = _arg1;
this.setTextFormat(this.iTextFormat);
}
public function get prText():String{
return (this.htmlText);
}
public function get prFormat():TextFormat{
return (this.iTextFormat);
}
}
}//package ENGINE.INTERFACE.ELEMENTS
Section 28
//OInputTextField (ENGINE.INTERFACE.ELEMENTS.OInputTextField)
package ENGINE.INTERFACE.ELEMENTS {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import ENGINE.CORE.*;
import flash.text.*;
public class OInputTextField extends TextField {
private var iTextFormat:TextFormat;
public function OInputTextField(_arg1:Number, _arg2:Number, _arg3, _arg4:Number, _arg5:Number, _arg6:Boolean, _arg7:Array, _arg8:String, _arg9:int, _arg10:Number, _arg11:Number){
var _local12:Number;
var _local13:Sprite;
super();
_local12 = OGlobal.Scale;
this.type = TextFieldType.INPUT;
this.autoSize = TextFieldAutoSize.NONE;
this.embedFonts = true;
_local13 = ((_arg3 is Sprite)) ? (_arg3 as Sprite) : new ((_arg3 as Class));
if ((_local13.getChildAt(0) is TextField)){
this.iTextFormat = (_local13.getChildAt(0) as TextField).getTextFormat();
} else {
this.iTextFormat = this.defaultTextFormat;
};
this.iTextFormat.size = (_arg4 * _local12);
this.iTextFormat.letterSpacing = (_arg5 * _local12);
this.iTextFormat.color = ODisplay.HSBToRGB(_arg7[0], _arg7[1], _arg7[2]);
this.defaultTextFormat = this.iTextFormat;
this.prText = _arg8;
this.width = (_arg1 * _local12);
this.height = (_arg2 * _local12);
this.x = (_arg10 * _local12);
this.y = (_arg11 * _local12);
this.border = _arg6;
this.maxChars = _arg9;
this.restrict = "A-Za-z0-9 @._\\-";
this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, OnFocusIn);
}
public function set prText(_arg1:String):void{
this.text = (((!(_arg1)) || ((_arg1 == "")))) ? " " : _arg1;
}
protected function OnFocusIn(_arg1:FocusEvent):void{
this.setTextFormat(this.iTextFormat);
}
public function set prFormat(_arg1:TextFormat):void{
this.iTextFormat = _arg1;
this.defaultTextFormat = _arg1;
this.setTextFormat(this.iTextFormat);
}
public function get prText():String{
var _local1:String;
_local1 = this.text;
while (_local1.charAt() == " ") {
_local1 = _local1.substr(1);
};
while (_local1.charAt((_local1.length - 1)) == " ") {
_local1 = _local1.substr(0, (_local1.length - 1));
};
return (_local1);
}
public function get prFormat():TextFormat{
return (this.iTextFormat);
}
}
}//package ENGINE.INTERFACE.ELEMENTS
Section 29
//OListBoxElement (ENGINE.INTERFACE.ELEMENTS.OListBoxElement)
package ENGINE.INTERFACE.ELEMENTS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.INTERFACE.ANIMATORS.*;
public class OListBoxElement extends OButton {
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:3}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:3}, null, null, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0.6, iInd:[1], iPIter:3}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:1, iInd:[1], iPIter:3}, {F:OA_AlphaInd.Make, iSAlpha:0, iEAlpha:1, iInd:[0], iPIter:9}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0, iInd:[0], iPIter:9}];
public function OListBoxElement(_arg1:Array, _arg2:Array=null){
var _local3:Array;
_local3 = (_arg2) ? _arg2 : iDefAnimators;
super(_arg1, _local3);
}
override public function OnMouseUp(_arg1:MouseEvent):void{
}
override public function OnRollOut(_arg1:MouseEvent):void{
this.prRool = false;
}
override public function OnMouseDown(_arg1:MouseEvent):void{
if (((this.prPress) && ((this.parent is OIObject)))){
(this.parent as OIObject).OnPress(_arg1, this);
return;
};
super.OnMouseDown(_arg1);
}
}
}//package ENGINE.INTERFACE.ELEMENTS
Section 30
//OAlert (ENGINE.INTERFACE.OAlert)
package ENGINE.INTERFACE {
import flash.events.*;
public class OAlert extends ODialog {
protected var iMessages:Array;
public var iButtons:Array;
public function OAlert(_arg1:Array, _arg2:Array, _arg3:Array=null){
var _local4:Array;
this.iMessages = _arg2;
_local4 = (_arg3) ? _arg3 : ODialog.iDefAnimators;
super(_arg1, _local4);
}
override public function Init():void{
this.iButtons = new Array();
super.Init();
}
override public function OnPress(_arg1:Event, _arg2):void{
var _local3:int;
var _local4:int;
if (((!(this.iMessages)) || (!(this.iButtons)))){
this.prVisible = false;
return;
};
_local3 = 0;
_local4 = 0;
while (_local4 < this.iButtons.length) {
if ((((_arg2 == this.iButtons[_local4])) && ((_local4 < this.iMessages.length)))){
if ((this.parent is OIObject)){
(this.parent as OIObject).OnPress(null, iMessages[_local4]);
};
this.prVisible = false;
return;
};
_local4++;
};
}
override public function Free():void{
this.iButtons = null;
super.Free();
}
}
}//package ENGINE.INTERFACE
Section 31
//OApplication (ENGINE.INTERFACE.OApplication)
package ENGINE.INTERFACE {
import flash.events.*;
import flash.display.*;
import ENGINE.CORE.*;
import flash.external.*;
public class OApplication extends OWindow {
private var iStaged:Boolean;// = false
protected var iBackground:OBackground;
protected var iMenuItem:Array;
public function OApplication(_arg1:String){
iStaged = false;
OGlobal.AppName = _arg1;
if (this.stage){
OGlobal.SetDomain();
this.InitStage();
};
super(null);
if (!this.iStaged){
this.addEventListener(Event.ENTER_FRAME, NotStagedEnterFrame);
};
}
private function NotStagedEnterFrame(_arg1:Event):void{
if (!iStaged){
if (!this.stage){
return;
};
OGlobal.SetDomain();
this.InitStage();
this.Init();
this.removeEventListener(Event.ENTER_FRAME, NotStagedEnterFrame);
this.iStaged = true;
};
}
override public function Init():void{
if (!this.stage){
return;
};
super.Init();
this.iMenuItem = new Array();
this.iStaged = true;
this.visible = true;
}
protected function OnMenuItem():void{
}
public function get prMenuItem():int{
return ((this.iMenuItem.length) ? this.iMenuItem.pop() : -1);
}
public function set prMenuItem(_arg1:int):void{
this.iMenuItem.push(_arg1);
}
public function OnResize(_arg1:Event):void{
this.Free();
this.InitStage();
this.Init();
}
override public function Free():void{
OGlobal.prStage.removeEventListener(Event.DEACTIVATE, OnDeactivate);
OGlobal.prStage.removeEventListener(Event.RESIZE, OnResize);
this.iMenuItem = null;
super.Free();
}
public function InitBackground(_arg1:Array, _arg2:int=0):void{
this.iBackground = new OBackground(_arg1, _arg2);
this.addChildAt(this.iBackground, 0);
}
protected function OnDeactivate(_arg1:Event):void{
}
public function InitStage(_arg1:Stage=null):void{
var 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);
}
}
}//package ENGINE.INTERFACE
Section 32
//OBackground (ENGINE.INTERFACE.OBackground)
package ENGINE.INTERFACE {
import ENGINE.DISPLAY.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.CORE.*;
public class OBackground extends OSprite {
protected var iImages:Array;
protected var iIInd:int;// = 0
public function OBackground(_arg1:Array, _arg2:int=0){
iIInd = 0;
super();
this.iImages = _arg1;
this.prIInd = _arg2;
}
public function Make():void{
var _local1:Sprite;
var _local2:BitmapData;
var _local3:OBM;
var _local4:Rectangle;
var _local5:Rectangle;
var _local6:int;
var _local7:int;
var _local8:Number;
var _local9:int;
var _local10:Bitmap;
var _local11:int;
var _local12:OBitmap;
if (this.iImages == null){
return;
};
this.Free();
if ((this.iImages[this.iIInd] is Class)){
_local1 = new (this.iImages[this.iIInd]);
_local2 = new BitmapData(_local1.width, _local1.height, false, 4294967295);
_local2.draw(_local1);
};
if ((this.iImages[this.iIInd] is BitmapData)){
_local2 = this.iImages[this.iIInd];
_local1 = new Sprite();
_local10 = new Bitmap(_local2);
_local1.addChild(_local10);
};
_local3 = new OBM(_local2, 0, 0, _local1.width, _local1.height);
_local4 = OGlobal.ViewporRect;
_local5 = OGlobal.StageRect;
this.x = -(_local4.x);
this.y = -(_local4.y);
_local6 = Math.floor((_local5.width / _local1.width));
if (_local6 == 0){
return;
};
_local7 = Math.floor((_local5.height / _local1.height));
if (_local7 == 0){
return;
};
if ((_local5.width - (_local6 * _local1.width)) > 0){
_local6++;
};
if ((_local5.height - (_local7 * _local1.height)) > 0){
_local7++;
};
_local8 = OGlobal.Scale;
_local9 = 0;
while (_local9 < _local7) {
_local11 = 0;
while (_local11 < _local6) {
_local12 = new OBitmap(_local3, ((_local11 * _local1.width) / _local8), ((_local9 * _local1.height) / _local8));
this.addChild(_local12);
_local11++;
};
_local9++;
};
}
override public function Free():void{
super.Free();
}
public function set prIInd(_arg1:int):void{
this.iIInd = _arg1;
if (this.iImages == null){
this.iIInd = -1;
return;
};
if (this.iIInd >= (this.iImages.length - 1)){
this.iIInd = (this.iImages.length - 1);
};
Make();
}
public function get prIInd():int{
return (this.iIInd);
}
}
}//package ENGINE.INTERFACE
Section 33
//OButton (ENGINE.INTERFACE.OButton)
package ENGINE.INTERFACE {
import ENGINE.DISPLAY.*;
import flash.events.*;
import ENGINE.INTERFACE.ANIMATORS.*;
public class OButton extends OIObject {
public var iHit:OSprite;
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.6, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Scale.Make, iSScale:1, iEScale:0.8, iPIter:6}, {F:OA_Scale.Make, iSScale:0.8, iEScale:1, iPIter:6}];
public function OButton(_arg1:Array, _arg2:Array=null){
var _local3:Array;
_local3 = ((_arg2)==null) ? OButton.iDefAnimators : _arg2;
super(_arg1, _local3);
}
override public function OnRollOver(_arg1:MouseEvent):void{
this.prRool = true;
}
override public function Init():void{
this.useHandCursor = true;
this.buttonMode = true;
super.Init();
if (this.iHit){
this.iHit.visible = false;
this.hitArea = this.iHit;
};
}
override public function OnMouseUp(_arg1:MouseEvent):void{
this.prPress = false;
}
override public function OnRollOut(_arg1:MouseEvent):void{
if (this.prPress){
this.prPress = false;
};
this.prRool = false;
}
override public function Free():void{
this.iHit = null;
super.Free();
}
override public function OnMouseDown(_arg1:MouseEvent):void{
this.prPress = true;
if ((this.parent is OIObject)){
(this.parent as OIObject).OnPress(_arg1, this);
};
}
}
}//package ENGINE.INTERFACE
Section 34
//OCounter (ENGINE.INTERFACE.OCounter)
package ENGINE.INTERFACE {
import ENGINE.INTERFACE.ANIMATORS.*;
public class OCounter extends OIObject {
public var iSeparator:OIObject;
public var iDigits0:Array;
public var iDigits:Array;
protected var iValue:int;
protected var iValue0:int;
protected var iWidth:Number;
protected var iHeight:Number;
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, null, null, null, null];
public function OCounter(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Array=null){
var _local5:Array;
this.iWidth = _arg2;
this.iHeight = _arg3;
_local5 = (_arg4) ? _arg4 : iDefAnimators;
super(_arg1, _local5);
}
public function set prValue0(_arg1:int):void{
this.iValue0 = Math.max(_arg1, 0);
if (!this.iDigits0){
return;
};
this.iValue0 = Math.min(this.iValue0, (Math.pow(10, this.iDigits0.length) - 1));
Draw();
}
public function set prValue(_arg1:int):void{
this.iValue = Math.max(_arg1, 0);
if (!this.iDigits){
return;
};
this.iValue = Math.min(this.iValue, (Math.pow(10, this.iDigits.length) - 1));
Draw();
}
override public function Init():void{
this.iDigits = new Array();
this.iDigits0 = new Array();
super.Init();
}
private function Draw():void{
var _local1:Number;
var _local2:String;
var _local3:String;
var _local4:int;
var _local5:Number;
var _local6:int;
_local1 = 0;
_local2 = this.iValue0.toString();
_local3 = this.iValue.toString();
_local4 = 0;
while (_local4 < this.iDigits0.length) {
this.iDigits0[_local4].prAnimationEnabled = this.iAEnabled;
_local4++;
};
_local4 = 0;
while (_local4 < this.iDigits.length) {
this.iDigits[_local4].prAnimationEnabled = this.iAEnabled;
_local4++;
};
if (this.iDigits0.length){
_local4 = (_local2.length - 1);
while (_local4 >= 0) {
this.iDigits0[_local4].prValue = (_local2.charCodeAt(_local4) - 47);
_local4--;
};
_local6 = (this.iDigits0.length - _local2.length);
_local4 = 0;
while (_local4 < _local6) {
if (this.iDigits0[_local4].prValue){
this.iDigits0[_local4].prValue = 0;
};
_local4++;
};
};
if (this.iDigits.length){
_local4 = 0;
while (_local4 < _local3.length) {
this.iDigits[_local4].prValue = (_local3.charCodeAt(_local4) - 47);
_local4++;
};
_local6 = this.iDigits.length;
_local4 = _local3.length;
while (_local4 < _local6) {
if (this.iDigits[_local4].prValue){
this.iDigits[_local4].prValue = 0;
};
_local4++;
};
};
if (this.iDigits0.length){
_local4 = (_local2.length - 1);
while (_local4 >= 0) {
_local1 = (_local1 + this.iDigits0[_local4].prWidth);
_local4--;
};
};
if (this.iSeparator){
_local1 = (_local1 + this.iSeparator.prWidth);
};
if (this.iDigits.length){
_local4 = 0;
while (_local4 < _local3.length) {
_local1 = (_local1 + this.iDigits[_local4].prWidth);
_local4++;
};
};
_local5 = ((this.iWidth - _local1) / 2);
if (this.iDigits0.length){
_local4 = 0;
while (_local4 < this.iDigits0.length) {
if (this.iDigits0[_local4].prValue){
this.iDigits0[_local4].PosValue(_local5, ((this.iWidth - this.iDigits0[_local4].prHeight) / 2));
_local5 = (_local5 + this.iDigits0[_local4].prWidth);
};
_local4++;
};
};
if (this.iSeparator){
this.iSeparator.Pos(_local5, ((this.iHeight - this.iSeparator.prHeight) / 2));
_local5 = (_local5 + this.iSeparator.prWidth);
};
if (this.iDigits.length){
_local4 = 0;
while (_local4 < this.iDigits.length) {
if (this.iDigits[_local4].prValue){
this.iDigits[_local4].PosValue(_local5, ((this.iHeight - this.iDigits[_local4].prHeight) / 2));
_local5 = (_local5 + this.iDigits[_local4].prWidth);
};
_local4++;
};
};
}
public function get prValue0():int{
return (this.iValue0);
}
override public function Free():void{
this.iDigits = null;
this.iDigits0 = null;
this.iSeparator = null;
super.Free();
}
public function get prValue():int{
return (this.iValue);
}
}
}//package ENGINE.INTERFACE
Section 35
//ODialog (ENGINE.INTERFACE.ODialog)
package ENGINE.INTERFACE {
import ENGINE.INTERFACE.ANIMATORS.*;
public class ODialog extends OWindow {
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:12}, null, null, null, null, null, null];
public function ODialog(_arg1:Array, _arg2:Array=null){
var _local3:Array;
_local3 = (_arg2) ? _arg2 : ODialog.iDefAnimators;
super(_arg1, _local3);
}
override public function Init():void{
super.Init();
this.SetVisible(false);
this.PosCenter();
this.prVisible = true;
}
}
}//package ENGINE.INTERFACE
Section 36
//OInput (ENGINE.INTERFACE.OInput)
package ENGINE.INTERFACE {
import flash.events.*;
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.INTERFACE.ELEMENTS.*;
public class OInput extends OIObject {
public var iText:OInputTextField;
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.5, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, null, null];
public function OInput(_arg1:Array, _arg2:Array=null){
var _local3:Array;
_local3 = ((_arg2)==null) ? OInput.iDefAnimators : _arg2;
super(_arg1, _local3);
}
public function set prText(_arg1:String):void{
this.iText.prText = _arg1;
}
override public function Init():void{
super.Init();
this.addEventListener(KeyboardEvent.KEY_UP, OnKeyUp);
}
public function get prText():String{
return (this.iText.prText);
}
protected function OnKeyUp(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 13)) && ((this.parent is OWindow)))){
(this.parent as OWindow).OnPress(null, this);
};
}
}
}//package ENGINE.INTERFACE
Section 37
//OInterface (ENGINE.INTERFACE.OInterface)
package ENGINE.INTERFACE {
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.INTERFACE.ELEMENTS.*;
public class OInterface {
public static const iDefLBButtonAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.6, iPIter:4}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:4}, {F:OA_Scale.Make, iSScale:1, iEScale:0.8, iPIter:4}, {F:OA_Scale.Make, iSScale:0.8, iEScale:1, iPIter:4}];
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:12}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:12}, null, null, null, null, null, null];
public static const iDefSlowAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:30}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:30}, null, null, null, null, null, null];
public static function OHtmlTextFieldMake(_arg1:Array):OHtmlTextField{
return (new OHtmlTextField(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10]));
}
public static function OIObjectMake(_arg1:Array):OIObject{
var _local2:OIObject;
_local2 = new OIObject(_arg1[1], _arg1[2]);
_local2.Pos(_arg1[3], _arg1[4]);
return (_local2);
}
public static function OProgressMake(_arg1:Array):OProgress{
return (new OProgress(_arg1[1], _arg1[2]));
}
public static function OInputTextFieldMake(_arg1:Array):OInputTextField{
return (new OInputTextField(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5], _arg1[6], _arg1[7], _arg1[8], _arg1[9], _arg1[10], _arg1[11]));
}
public static function OTabMake(_arg1:Array):OTab{
return (new OTab(_arg1[1], _arg1[2], _arg1[3], _arg1[4], _arg1[5]));
}
public static function OCounterMake(_arg1:Array):OCounter{
return (new OCounter(_arg1[1], _arg1[2], _arg1[3], _arg1[4]));
}
}
}//package ENGINE.INTERFACE
Section 38
//OIObject (ENGINE.INTERFACE.OIObject)
package ENGINE.INTERFACE {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.CORE.*;
public class OIObject extends OSprite {
protected var iTrigger:uint;
protected var iAEnabled:Boolean;// = true
protected var iAManager:OAnimatorManager;
protected var iState:int;
protected var iAParams:Array;
protected var iParam:Array;
public static var trActive:uint = 2;
public static var trPress:uint = 16;
public static var trRool:uint = 8;
public static var trFocus:uint = 3;
public static var trVisible:uint = 1;
public function OIObject(_arg1:Array, _arg2:Array=null){
iTrigger = (trVisible | trActive);
iAEnabled = true;
super();
this.iParam = _arg1;
this.iAParams = _arg2;
this.Init();
}
public function get prMouseEnabled():Boolean{
return (((this.prVisible) && (this.prActive)));
}
public function get prRool():Boolean{
return (((this.iTrigger & trRool) > 0));
}
public function set prFocus(_arg1:Boolean):void{
if (_arg1){
this.iTrigger = (this.iTrigger | trFocus);
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anFocusIn]);
};
} else {
this.iTrigger = (this.iTrigger & ~(trFocus));
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anFocusOut]);
};
};
}
override public function get prVisible():Boolean{
return (((this.iTrigger & trVisible) > 0));
}
public function set prRool(_arg1:Boolean):void{
if (_arg1){
this.iTrigger = (this.iTrigger | trRool);
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anRoolOver]);
};
} else {
this.iTrigger = (this.iTrigger & ~(trRool));
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anRoolOut]);
};
};
}
override public function set prVisible(_arg1:Boolean):void{
if (_arg1){
this.iTrigger = (this.iTrigger | trVisible);
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anShow], false);
};
} else {
this.iTrigger = (this.iTrigger & ~(trVisible));
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anHide], false);
};
};
if (((!(this.iAManager)) || (!(this.iAEnabled)))){
this.visible = _arg1;
};
this.mouseEnabled = this.prMouseEnabled;
this.mouseChildren = this.mouseEnabled;
}
public function OnRollOver(_arg1:MouseEvent):void{
this.prRool = true;
}
public function Init():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:DisplayObject;
var _local5:String;
if (this.iParam){
_local1 = this.iParam.length;
_local2 = 0;
while (_local2 < _local1) {
_local3 = this.iParam[_local2].length;
_local4 = this.iParam[_local2][0](this.iParam[_local2]);
_local5 = this.iParam[_local2][(_local3 - 3)];
if (_local5){
if ((this[_local5] is Array)){
this[_local5][this.iParam[_local2][(_local3 - 2)]] = _local4;
} else {
this[_local5] = _local4;
};
};
if ((_local4 is OIObject)){
(_local4 as OIObject).SetVisible(this.iParam[_local2][(_local3 - 1)]);
} else {
if ((_local4 is IDisplayObject)){
(_local4 as IDisplayObject).prVisible = this.iParam[_local2][(_local3 - 1)];
} else {
_local4.visible = this.iParam[_local2][(_local3 - 1)];
};
};
this.addChild(_local4);
_local2++;
};
};
this.iAManager = (this.iAParams) ? new OAnimatorManager(this) : null;
this.tabEnabled = false;
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame);
this.addEventListener(MouseEvent.ROLL_OVER, OnRollOver);
this.addEventListener(MouseEvent.ROLL_OUT, OnRollOut);
this.addEventListener(MouseEvent.MOUSE_DOWN, OnMouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, OnMouseUp);
}
public function get prAnimationEnabled():Boolean{
return (this.iAEnabled);
}
public function set prActive(_arg1:Boolean):void{
if (_arg1){
this.iTrigger = (this.iTrigger | trActive);
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anActivate]);
};
} else {
this.iTrigger = (this.iTrigger & ~(trActive));
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anDeactivate]);
};
};
this.mouseEnabled = this.prMouseEnabled;
this.mouseChildren = this.mouseEnabled;
}
public function OnMouseUp(_arg1:MouseEvent):void{
this.prPress = false;
}
public function get prPress():Boolean{
return (((this.iTrigger & trPress) > 0));
}
public function get State():int{
return (this.iState);
}
public function OnPress(_arg1:Event, _arg2):void{
}
public function OnRollOut(_arg1:MouseEvent):void{
this.prRool = false;
}
override public function Free():void{
this.removeEventListener(MouseEvent.MOUSE_UP, OnMouseUp);
this.removeEventListener(MouseEvent.MOUSE_DOWN, OnMouseDown);
this.removeEventListener(MouseEvent.ROLL_OUT, OnRollOut);
this.removeEventListener(MouseEvent.ROLL_OVER, OnRollOver);
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
super.Free();
if (this.iAManager){
this.iAManager.Free();
};
this.iAManager = null;
}
public function get prAnimation():Boolean{
var _local1:int;
if (((this.iAManager) && (this.iAManager.prAnimation))){
return (true);
};
_local1 = 0;
while (_local1 < this.numChildren) {
if (!(this.getChildAt(_local1) is OIObject)){
} else {
if ((this.getChildAt(_local1) as OIObject).prAnimation){
return (true);
};
};
_local1++;
};
return (false);
}
public function get prActive():Boolean{
return (((this.iTrigger & trActive) > 0));
}
public function PosCenter(_arg1:Number=800, _arg2:Number=600):void{
var _local3:Rectangle;
_local3 = this.getBounds(this);
this.Pos(OGlobal.ScaleFloor((((_arg1 - this.prWidth) - (OGlobal.ToLocal(_local3.x) * 2)) / 2)), OGlobal.ScaleFloor((((_arg2 - this.prHeight) - (OGlobal.ToLocal(_local3.y) * 2)) / 2)));
}
public function AddAnimator(_arg1:Object, _arg2:Boolean=true):void{
var _local3:Boolean;
_local3 = (_arg2) ? ((((this.iAManager) && (this.prVisible))) && (this.iAEnabled)) : ((this.iAManager) && (this.iAEnabled));
if (_local3){
this.iAManager.AddAnimator(_arg1);
};
}
public function set prAnimationEnabled(_arg1:Boolean):void{
this.iAEnabled = _arg1;
}
public function set prPress(_arg1:Boolean):void{
if (_arg1){
this.iTrigger = (this.iTrigger | trPress);
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anPress]);
};
} else {
this.iTrigger = (this.iTrigger & ~(trPress));
if (this.iAManager){
this.AddAnimator(this.iAParams[OAnimatorManager.anUnpress]);
};
};
}
public function OnMouseDown(_arg1:MouseEvent):void{
this.prPress = true;
}
public function OnEnterFrame(_arg1:Event):void{
if (this.iAManager){
this.iAManager.OnEnterFrame();
};
}
public function SetVisible(_arg1:Boolean):void{
this.prAnimationEnabled = false;
this.prVisible = _arg1;
this.prAnimationEnabled = true;
}
public function set prAnimatorParams(_arg1:Array):void{
this.iAParams = _arg1;
if (!this.iAManager){
this.iAManager = new OAnimatorManager(this);
};
}
public function set State(_arg1:int):void{
this.iState = _arg1;
}
public function get prAnimatorParams():Array{
return (this.iAParams);
}
public function get prFocus():Boolean{
return (((this.iTrigger & trFocus) > 0));
}
}
}//package ENGINE.INTERFACE
Section 39
//OListBox (ENGINE.INTERFACE.OListBox)
package ENGINE.INTERFACE {
import flash.events.*;
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.INTERFACE.ELEMENTS.*;
import ENGINE.CORE.*;
public class OListBox extends OIObject {
private var iLBParams:Array;
private var iEGenP:Function;
private var iElements:Array;
public var iDown:OButton;
private var iEGen:Array;
public var iUp:OButton;
private var iEShowInd:int;
private var iSelection:Boolean;// = true
private var iECoord:Array;
private var iECount:int;
private var iCycling:Boolean;
private var iECurInd:int;
private var iPageScrool:Boolean;
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:0.6, iInd:[0], iPIter:6}, {F:OA_AlphaInd.Make, iSAlpha:-1, iEAlpha:1, iInd:[0], iPIter:6}, null, null];
public function OListBox(_arg1:Array, _arg2:Array, _arg3:Function, _arg4:Array, _arg5:Array, _arg6:Array=null){
var _local7:Array;
iSelection = true;
_local7 = (_arg6) ? _arg6 : iDefAnimators;
this.iEGen = _arg2;
this.iEGenP = _arg3;
this.iECoord = _arg4;
this.iLBParams = _arg5;
this.iECount = this.iECoord.length;
super(_arg1, _local7);
}
public function SetCurrentElement(_arg1, _arg2:Array=null):void{
var _local3:int;
if (((!(_arg1)) && (!(_arg2)))){
this.FreeElements();
this.iLBParams = null;
this.iECurInd = 0;
this.iEShowInd = 0;
return;
};
if (_arg2){
this.iLBParams = _arg2;
};
if (!this.iLBParams){
return;
};
this.iECurInd = 0;
_local3 = 0;
while (_local3 < this.iLBParams.length) {
if (_arg1 == this.iLBParams[_local3]){
this.iECurInd = _local3;
break;
};
_local3++;
};
this.iEShowInd = this.iECurInd;
if ((this.iEShowInd + this.iECount) >= this.iLBParams.length){
this.iEShowInd = (this.iLBParams.length - this.iECount);
};
if (this.iEShowInd < 0){
this.iEShowInd = 0;
};
InitElements();
}
protected function UnpressElements(_arg1:OListBoxElement):void{
var _local2:int;
_local2 = 0;
while (_local2 < this.iElements.length) {
if (!this.iElements[_local2]){
} else {
if (this.iElements[_local2] == _arg1){
this.iECurInd = (this.iEShowInd + _local2);
} else {
if (this.iElements[_local2].prPress){
this.iElements[_local2].prPress = false;
};
};
};
_local2++;
};
}
public function get prPageScrool():Boolean{
return (this.iPageScrool);
}
protected function InitElements():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Boolean;
this.FreeElements();
if (this.iLBParams == null){
return;
};
_local1 = 0;
_local2 = (((this.iEShowInd + this.iECount) <= this.iLBParams.length)) ? (this.iEShowInd + this.iECount) : this.iLBParams.length;
_local3 = this.iEShowInd;
while (_local3 < _local2) {
this.iEGenP(this.iEGen, this.iLBParams[_local3]);
this.iElements[_local1] = this.iEGen[0](this.iEGen);
this.iElements[_local1].Pos(OGlobal.ScaleFloor(this.iECoord[_local1][0]), OGlobal.ScaleFloor(this.iECoord[_local1][1]));
this.iElements[_local1].mouseEnabled = this.iSelection;
this.addChild(this.iElements[_local1]);
if ((((this.iECurInd == _local3)) && (this.iSelection))){
this.iElements[_local1].prPress = true;
};
_local1++;
_local3++;
};
if (((this.iUp) && (this.iDown))){
if (this.iCycling){
_local4 = (this.iLBParams) ? (this.iLBParams.length > this.iECount) : false;
if (this.iUp.prVisible != _local4){
this.iUp.prVisible = _local4;
};
if (this.iDown.prVisible != _local4){
this.iDown.prVisible = _local4;
};
} else {
if ((((this.iEShowInd == 0)) && (this.iUp.prVisible))){
if (this.iUp.prPress){
this.iUp.prPress = false;
};
this.iUp.prVisible = false;
};
if ((((this.iEShowInd > 0)) && (!(this.iUp.prVisible)))){
this.iUp.prVisible = true;
};
if (((((this.iEShowInd + this.iECount) >= this.iLBParams.length)) && (this.iDown.prVisible))){
if (this.iDown.prPress){
this.iDown.prPress = false;
};
this.iDown.prVisible = false;
};
if (((((this.iEShowInd + this.iECount) < this.iLBParams.length)) && (!(this.iDown.prVisible)))){
this.iDown.prVisible = true;
};
};
};
}
public function set prPageScrool(_arg1:Boolean):void{
this.iPageScrool = _arg1;
}
override public function Free():void{
this.iUp = null;
this.iDown = null;
this.iElements = null;
super.Free();
}
public function set prCurrentInd(_arg1:int):void{
if (!this.iLBParams){
return;
};
this.SetCurrentElement(this.iLBParams[_arg1]);
}
override public function Init():void{
super.Init();
this.iElements = new Array();
this.InitElements();
}
public function set prLBParams(_arg1:Array):void{
this.iLBParams = _arg1;
this.iECurInd = 0;
this.iEShowInd = 0;
this.InitElements();
}
public function get prCurrentInd():int{
return (this.iECurInd);
}
public function set prSelection(_arg1:Boolean):void{
this.iSelection = _arg1;
InitElements();
}
public function set prCycling(_arg1:Boolean):void{
this.iCycling = _arg1;
InitElements();
}
override public function OnPress(_arg1:Event, _arg2):void{
if ((_arg2 is OListBoxElement)){
this.UnpressElements((_arg2 as OListBoxElement));
};
if ((((_arg2 == this.iUp)) && (this.SkipElements((this.iPageScrool) ? -(this.iECount) : -1)))){
this.InitElements();
};
if ((((_arg2 == this.iDown)) && (this.SkipElements((this.iPageScrool) ? this.iECount : 1)))){
this.InitElements();
};
if ((this.parent is OIObject)){
(this.parent as OIObject).OnPress(_arg1, this);
};
}
public function get prSelection():Boolean{
return (this.iSelection);
}
protected function FreeElements():void{
var _local1:int;
_local1 = 0;
while (_local1 < this.iElements.length) {
if (!this.iElements[_local1]){
} else {
this.removeChild(this.iElements[_local1]);
this.iElements[_local1].Free();
this.iElements[_local1] = null;
};
_local1++;
};
}
protected function SkipElements(_arg1:int):Boolean{
var _local2:int;
if (!this.iLBParams){
return (false);
};
_local2 = (this.iEShowInd + _arg1);
if ((_local2 + this.iECount) >= this.iLBParams.length){
_local2 = (this.iCycling) ? (_local2 - this.iLBParams.length) : (this.iLBParams.length - this.iECount);
};
if (_local2 < 0){
_local2 = (this.iCycling) ? (this.iLBParams.length + _local2) : 0;
};
if (this.iEShowInd == _local2){
return (false);
};
this.iEShowInd = _local2;
if (!this.iSelection){
this.iECurInd = this.iEShowInd;
};
return (true);
}
public function get prCurrentLBParam(){
return ((this.iLBParams) ? this.iLBParams[this.iECurInd] : null);
}
public function get prCycling():Boolean{
return (this.iCycling);
}
}
}//package ENGINE.INTERFACE
Section 40
//OProgress (ENGINE.INTERFACE.OProgress)
package ENGINE.INTERFACE {
import ENGINE.DISPLAY.*;
import flash.geom.*;
public class OProgress extends OIObject {
public var iProgressBG:OBitmap;
private var iPBG:OBitmap;
public var iProgress:OBitmap;
private var iValue:Number;
public function OProgress(_arg1:Array, _arg2:Array=null){
super(_arg1, _arg2);
}
public function set prValue(_arg1:Number):void{
var _local2:int;
var _local3:Rectangle;
var _local4:Rectangle;
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > 100){
_arg1 = 100;
};
};
if (this.iValue != _arg1){
_local2 = Math.round(((iProgressBG.prOBM.iBM.width * _arg1) / 100));
_local3 = new Rectangle(0, 0, _local2, this.iProgressBG.prOBM.iBM.height);
_local4 = new Rectangle(_local2, 0, (iProgressBG.prOBM.iBM.width - _local2), this.iProgressBG.prOBM.iBM.height);
this.iProgressBG.prOBM.iBM.fillRect(this.iPBG.prOBM.iBM.rect, 0);
this.iProgressBG.prOBM.iBM.copyPixels(this.iProgress.prOBM.iBM, _local3, new Point(0, 0));
this.iProgressBG.prOBM.iBM.copyPixels(this.iPBG.prOBM.iBM, _local4, new Point(_local2, 0));
};
this.iValue = _arg1;
}
override public function Init():void{
super.Init();
if (this.iProgressBG){
this.iPBG = this.iProgressBG.Clone();
};
}
override public function Free():void{
this.iProgressBG = null;
this.iProgress = null;
super.Free();
}
public function get prValue():Number{
return (this.iValue);
}
}
}//package ENGINE.INTERFACE
Section 41
//OTab (ENGINE.INTERFACE.OTab)
package ENGINE.INTERFACE {
import ENGINE.DISPLAY.*;
import ENGINE.INTERFACE.ANIMATORS.*;
public class OTab extends OIObject {
private var iVAnimator:Object;
private var iCurInd:int;
protected var iWidth:Number;
protected var iHeight:Number;
public static const iDefAnimators:Array = [{F:OA_Alpha.Make, iSAlpha:0, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:1, iPIter:6}, {F:OA_Alpha.Make, iSAlpha:-1, iEAlpha:0.2, iPIter:6}, null, null, null, null, null, null];
public static const iDefVAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:3};
public function OTab(_arg1:Array, _arg2:Number, _arg3:Number, _arg4:Object=null, _arg5:Array=null){
var _local6:Array;
this.iWidth = _arg2;
this.iHeight = _arg3;
this.iVAnimator = (_arg4) ? _arg4 : iDefVAnimator;
_local6 = (_arg5) ? _arg5 : iDefAnimators;
super(_arg1, _local6);
}
override public function get prWidth():Number{
return (this.iWidth);
}
public function get prElements():int{
return (this.numChildren);
}
public function set prValue(_arg1:int):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 >= this.numChildren){
_arg1 = (this.numChildren - 1);
};
};
if (((this.iAEnabled) && (this.iVAnimator))){
if (this.iCurInd == _arg1){
return;
};
this.iVAnimator.iSInd = [this.iCurInd];
this.iVAnimator.iEInd = [_arg1];
this.AddAnimator(this.iVAnimator, false);
} else {
if ((this.getChildAt(this.iCurInd) is IDisplayObject)){
(this.getChildAt(this.iCurInd) as IDisplayObject).prVisible = false;
};
if ((this.getChildAt(_arg1) is IDisplayObject)){
(this.getChildAt(_arg1) as IDisplayObject).prVisible = true;
};
};
this.iCurInd = _arg1;
}
override public function Init():void{
super.Init();
(this.getChildAt(0) as IDisplayObject).prVisible = true;
}
public function get prValue():int{
return (this.iCurInd);
}
override public function get prHeight():Number{
return (this.iHeight);
}
public function PosValue(_arg1:Number, _arg2:Number):void{
(this.getChildAt(this.iCurInd) as IDisplayObject).Pos((_arg1 - this.prX), (_arg2 - this.prY));
}
}
}//package ENGINE.INTERFACE
Section 42
//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 43
//OEffectGel (ENGINE.SKIN.OEffectGel)
package ENGINE.SKIN {
import ENGINE.DISPLAY.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.DISPLAY.EFFECTS.*;
import flash.filters.*;
import ENGINE.CORE.*;
public class OEffectGel extends OEffect {
private var iColor:uint;// = 0
private var iF2B:BlurFilter;
private var iF2GG1:GradientGlowFilter;
private var iF2GG2:GradientGlowFilter;
private var iF0S:DropShadowFilter;
private var iF1G:GlowFilter;
private var iBorder:Number;// = 0
private var iF1S:DropShadowFilter;
public function OEffectGel(){
iColor = 0;
iBorder = 0;
super();
}
override public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{
var _local5:OBM;
var _local6:Number;
var _local7:Number;
var _local8:Sprite;
var _local9:Sprite;
var _local10:ColorTransform;
var _local11:Bitmap;
var _local12:Bitmap;
var _local13:Bitmap;
var _local14:Sprite;
var _local15:Bitmap;
var _local16:Bitmap;
var _local17:BitmapData;
var _local18:Bitmap;
_local5 = OBM.Make([null, _arg1, _arg2, _arg3, _arg4, 0]);
_local6 = OGlobal.Scale;
_local7 = 0.85;
_local8 = new Sprite();
_local9 = new Sprite();
_local9.x = iBorder;
_local9.y = iBorder;
_local9.alpha = _local7;
_local8.addChild(_local9);
_local10 = new ColorTransform(0, 0, 0);
_local10.color = this.iColor;
_local11 = new Bitmap(_local5.iBM);
_local11.transform.colorTransform = _local10;
_local9.addChild(_local11);
if (this.iF0S.distance > 0){
_local18 = new Bitmap(_local5.iBM);
_local18.blendMode = "multiply";
_local18.filters = [this.iF0S];
_local9.addChild(_local18);
};
_local12 = new Bitmap(_local5.iBM);
_local12.blendMode = "multiply";
_local12.filters = [this.iF1S];
_local9.addChild(_local12);
_local13 = new Bitmap(_local5.iBM);
_local13.blendMode = "multiply";
_local13.filters = [this.iF1G];
_local9.addChild(_local13);
_local14 = new Sprite();
_local14.blendMode = "layer";
_local14.filters = [this.iF2B];
_local9.addChild(_local14);
_local15 = new Bitmap(_local5.iBM);
_local15.blendMode = "screen";
_local15.filters = [this.iF2GG1];
_local14.addChild(_local15);
_local16 = new Bitmap(_local5.iBM);
_local16.blendMode = "erase";
_local16.filters = [this.iF2GG2];
_local14.addChild(_local16);
_local17 = new BitmapData((_local8.width + (this.iBorder * 2)), (_local8.height + (this.iBorder * 2)), true, 0);
_local17.draw(_local8);
return (new OBM(_local17, (-(this.iBorder) + _local5.iX), (-(this.iBorder) + _local5.iY), _local5.iWidth, _local5.iHeight));
}
override public function Init(_arg1:String, _arg2:String, _arg3:Number=1):void{
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:int;
var _local12:Array;
var _local13:Array;
_local4 = this.iColors.GetItem(_arg1);
_local5 = this.iFilters.GetItem(_arg2);
if (_local5 == null){
return;
};
_local6 = (OGlobal.Scale * _arg3);
if (_local4 == null){
_local4 = new Object();
if (_arg1.search(/,/) < 0){
_local4.iCH = Number(_arg1);
if (_local4.iCH == undefined){
return;
};
_local4.iCH = (_local4.iCH % 360);
_local10 = Math.floor((_local4.iCH / 30));
_local11 = ((_local10 + 1) % 12);
_local12 = [50, 50, 60, 60, 50, 50, 40, 40, 30, 30, 40, 40];
_local4.iCS = ((_local12[_local10] + ((_local12[_local11] - _local12[_local10]) * ((_local4.iCH / 30) - _local10))) * 0.01);
_local4.iCB = 1;
_local4.iSH = (((_local10 % 2))==0) ? (_local4.iCH - 15) : (_local4.iCH + 15);
if (_local4.iSH < 0){
_local4.iSH = (_local4.iSH + 360);
};
_local4.iSS = 0.9;
_local4.iSB = 0.6;
} else {
_local13 = _arg1.split(/,/);
_local4.iCH = _local13[0];
_local4.iCS = _local13[1];
_local4.iCB = _local13[2];
_local4.iSH = _local13[3];
_local4.iSS = _local13[4];
_local4.iSB = _local13[5];
};
};
_local7 = ODisplay.HSBToRGB(_local4.iSH, _local4.iSS, _local4.iSB);
this.iF0S = new DropShadowFilter((_local5.iF0SD * _local6), _local5.iAngle, ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, (_local4.iCB * 0.5)), 0.75, (_local5.iF0SB * _local6), (_local5.iF0SB * _local6), 1, 2, false, true, true);
this.iF1S = new DropShadowFilter((_local5.iF1SD * _local6), _local5.iAngle, _local7, 0.85, (_local5.iF1SB * _local6), (_local5.iF1SB * _local6), 1.5, 3, true, true, true);
this.iF1G = new GlowFilter(_local7, _local5.iF1GA, (_local5.iF1GB * _local6), (_local5.iF1GB * _local6), 2, 3, true, true);
_local8 = ((_local6)<1) ? (_local5.iF2GGC1 * _local6) : _local5.iF2GGC1;
this.iF2GG1 = new GradientGlowFilter((_local5.iF2GGD1 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local8, 0xFF], (_local5.iF2GGB1 * _local6), (_local5.iF2GGB1 * _local6), 1, 1, "inner", true);
_local9 = ((_local6)<1) ? (_local5.iF2GGC2 * _local6) : _local5.iF2GGC2;
this.iF2GG2 = new GradientGlowFilter((_local5.iF2GGD2 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local9, 0xFF], (_local5.iF2GGB2 * _local6), (_local5.iF2GGB2 * _local6), 1, 1, "inner", true);
this.iF2B = new BlurFilter((_local5.iF2B * _local6), (_local5.iF2B * _local6));
this.iColor = ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, _local4.iCB);
this.iBorder = Math.ceil((_local5.iBorder * _local6));
}
}
}//package ENGINE.SKIN
Section 44
//OEffectPlastic (ENGINE.SKIN.OEffectPlastic)
package ENGINE.SKIN {
import ENGINE.DISPLAY.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.DISPLAY.EFFECTS.*;
import flash.filters.*;
import ENGINE.CORE.*;
public class OEffectPlastic extends OEffect {
private var iColor:uint;// = 0
private var iF2B:BlurFilter;
private var iF2GG1:GradientGlowFilter;
private var iF2GG2:GradientGlowFilter;
private var iF0S:DropShadowFilter;
private var iF1G:GlowFilter;
private var iBorder:Number;// = 0
private var iF1S:DropShadowFilter;
public function OEffectPlastic(){
iColor = 0;
iBorder = 0;
super();
}
override public function Apply(_arg1:Array, _arg2:Number=1, _arg3:Number=0, _arg4:Number=0):OBM{
var _local5:OBM;
var _local6:Number;
var _local7:Number;
var _local8:Sprite;
var _local9:Sprite;
var _local10:ColorTransform;
var _local11:Bitmap;
var _local12:Bitmap;
var _local13:Bitmap;
var _local14:Sprite;
var _local15:Bitmap;
var _local16:Bitmap;
var _local17:BitmapData;
var _local18:Bitmap;
_local5 = OBM.Make([null, _arg1, _arg2, _arg3, _arg4, 0]);
_local6 = OGlobal.Scale;
_local7 = 1;
_local8 = new Sprite();
_local9 = new Sprite();
_local9.x = iBorder;
_local9.y = iBorder;
_local9.alpha = _local7;
_local8.addChild(_local9);
_local10 = new ColorTransform(0, 0, 0);
_local10.color = this.iColor;
_local11 = new Bitmap(_local5.iBM);
_local11.transform.colorTransform = _local10;
_local9.addChild(_local11);
if (this.iF0S.distance > 0){
_local18 = new Bitmap(_local5.iBM);
_local18.blendMode = "multiply";
_local18.filters = [this.iF0S];
_local9.addChild(_local18);
};
_local12 = new Bitmap(_local5.iBM);
_local12.blendMode = "multiply";
_local12.filters = [this.iF1S];
_local9.addChild(_local12);
_local13 = new Bitmap(_local5.iBM);
_local13.blendMode = "multiply";
_local13.filters = [this.iF1G];
_local9.addChild(_local13);
_local14 = new Sprite();
_local14.blendMode = "layer";
_local14.filters = [this.iF2B];
_local9.addChild(_local14);
_local15 = new Bitmap(_local5.iBM);
_local15.blendMode = "screen";
_local15.filters = [this.iF2GG1];
_local14.addChild(_local15);
_local16 = new Bitmap(_local5.iBM);
_local16.blendMode = "erase";
_local16.filters = [this.iF2GG2];
_local14.addChild(_local16);
_local17 = new BitmapData((_local8.width + (this.iBorder * 2)), (_local8.height + (this.iBorder * 2)), true, 0);
_local17.draw(_local8);
return (new OBM(_local17, (-(this.iBorder) + _local5.iX), (-(this.iBorder) + _local5.iY), _local5.iWidth, _local5.iHeight));
}
override public function Init(_arg1:String, _arg2:String, _arg3:Number=1):void{
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:int;
var _local12:Array;
var _local13:Array;
_local4 = this.iColors.GetItem(_arg1);
_local5 = this.iFilters.GetItem(_arg2);
if (_local5 == null){
return;
};
_local6 = (OGlobal.Scale * _arg3);
if (_local4 == null){
_local4 = new Object();
if (_arg1.search(/,/) < 0){
_local4.iCH = Number(_arg1);
if (_local4.iCH == undefined){
return;
};
_local4.iCH = (_local4.iCH % 360);
_local10 = Math.floor((_local4.iCH / 30));
_local11 = ((_local10 + 1) % 12);
_local12 = [50, 50, 60, 60, 50, 50, 40, 40, 30, 30, 40, 40];
_local4.iCS = ((_local12[_local10] + ((_local12[_local11] - _local12[_local10]) * ((_local4.iCH / 30) - _local10))) * 0.01);
_local4.iCB = 1;
_local4.iSH = (((_local10 % 2))==0) ? (_local4.iCH - 15) : (_local4.iCH + 15);
if (_local4.iSH < 0){
_local4.iSH = (_local4.iSH + 360);
};
_local4.iSS = 0.9;
_local4.iSB = 0.6;
} else {
_local13 = _arg1.split(/,/);
_local4.iCH = _local13[0];
_local4.iCS = _local13[1];
_local4.iCB = _local13[2];
_local4.iSH = _local13[3];
_local4.iSS = _local13[4];
_local4.iSB = _local13[5];
};
};
_local7 = ODisplay.HSBToRGB(_local4.iSH, _local4.iSS, _local4.iSB);
this.iF0S = new DropShadowFilter((_local5.iF0SD * _local6), _local5.iAngle, ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, (_local4.iCB * 0.5)), 0.75, (_local5.iF0SB * _local6), (_local5.iF0SB * _local6), 1, 2, false, true, true);
this.iF1S = new DropShadowFilter((_local5.iF1SD * _local6), _local5.iAngle, _local7, 0.85, (_local5.iF1SB * _local6), (_local5.iF1SB * _local6), 1.5, 3, true, true, true);
this.iF1G = new GlowFilter(_local7, _local5.iF1GA, (_local5.iF1GB * _local6), (_local5.iF1GB * _local6), 2, 3, true, true);
_local8 = ((_local6)<1) ? (_local5.iF2GGC1 * _local6) : _local5.iF2GGC1;
this.iF2GG1 = new GradientGlowFilter((_local5.iF2GGD1 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local8, 0xFF], (_local5.iF2GGB1 * _local6), (_local5.iF2GGB1 * _local6), 1, 1, "inner", true);
_local9 = ((_local6)<1) ? (_local5.iF2GGC2 * _local6) : _local5.iF2GGC2;
this.iF2GG2 = new GradientGlowFilter((_local5.iF2GGD2 * _local6), _local5.iAngle, [0xFFFFFF, 0xFFFFFF, 0xFFFFFF], [0, 0, 1], [0, _local9, 0xFF], (_local5.iF2GGB2 * _local6), (_local5.iF2GGB2 * _local6), 1, 1, "inner", true);
this.iF2B = new BlurFilter((_local5.iF2B * _local6), (_local5.iF2B * _local6));
this.iColor = ODisplay.HSBToRGB(_local4.iCH, _local4.iCS, _local4.iCB);
this.iBorder = Math.ceil((_local5.iBorder * _local6));
}
}
}//package ENGINE.SKIN
Section 45
//OMultiplayer (ENGINE.SMARTFOX.OMultiplayer)
package ENGINE.SMARTFOX {
import it.gotoandplay.smartfoxserver.handlers.*;
import it.gotoandplay.smartfoxserver.data.*;
import it.gotoandplay.smartfoxserver.*;
import it.gotoandplay.smartfoxserver.util.*;
import ENGINE.CORE.*;
import flash.utils.*;
public class OMultiplayer extends SmartFoxClient {
private var iCmd:String;
private var iError:String;
private var iConnection:Boolean;// = false
private var iUsersCount:int;
private var iErrorsCount:int;
private var iPassword:String;
private var iAdress:String;
private var iXTName:String;
private var iTimer:int;
private var iGameParams:Array;
private var iCMessages:Array;
private var iOpponentID:int;
private var iOpponentName:String;
private var iName:String;
private var iTurn:Array;
private var iState:int;
private var iGRoomParams:Array;
private var iZoneName:String;
public static const stInGame:int = 13;
public static const stLogin:int = 3;
public static const cmdJoinGameRoom:String = "jgr";
public static const cmdZoneUsersCount:String = "zuc";
public static const stNone:int = 0;
public static const stMainRoomError:int = 6;
public static const stGameError:int = 12;
public static const cmdJoinGame:String = "jgm";
public static const cmdJoinMainRoom:String = "jmr";
public static const stConnection:int = 1;
public static const stLoginError:int = 4;
public static const cmdMakeTurn:String = "m";
public static const cmdCmd:String = "cmd";
public static const stConnectionError:int = 2;
public static const stInZone:int = 7;
public static const stInGameRoom:int = 10;
public static const cmdChatMessage:String = "c";
public static const stJoinGameRoom:int = 8;
public static const stGameRoomError:int = 9;
public static const stJoinGame:int = 11;
public static const stJoinMainRoom:int = 5;
public function OMultiplayer(_arg1:Boolean=false){
iConnection = false;
super(_arg1);
this.State = stNone;
}
private function OnConnectionLost(_arg1:SFSEvent):void{
this.iConnection = false;
this.State = stNone;
}
public function get prActiveRoomID():int{
return (this.activeRoomId);
}
public function get prErrorsCount():int{
return (this.iErrorsCount);
}
public function get prError():String{
return (this.iError);
}
public function get prChatMessage():String{
return (((this.iCMessages.length)==0) ? null : this.iCMessages.shift());
}
public function ClearChatMessage(_arg1:Boolean=false):void{
if (_arg1){
this.iCMessages = new Array();
} else {
if (this.iCMessages[0]){
this.iCMessages.shift();
};
};
}
public function Init(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String, _arg6:String=""):void{
if (((!(OGlobal.CheckDomain(_arg1))) || (!((this.iState == stNone))))){
return;
};
this.iAdress = _arg2;
this.iZoneName = _arg3;
this.iXTName = _arg4;
this.iName = _arg5;
this.iPassword = _arg6;
this.iTurn = new Array();
this.iCMessages = new Array();
addEventListener(SFSEvent.onConnection, OnConnection);
addEventListener(SFSEvent.onConnectionLost, OnConnectionLost);
addEventListener(SFSEvent.onExtensionResponse, OnExtensionResponse);
this.State = stConnection;
}
private function OnConnection(_arg1:SFSEvent):void{
if (!_arg1.params.success){
this.iError = _arg1.params.error;
this.iErrorsCount++;
this.iConnection = false;
};
this.State = (_arg1.params.success) ? stLogin : stConnectionError;
}
public function set prGRoomParams(_arg1:Array):void{
this.iGRoomParams = _arg1;
}
public function ClearOpponentTurn(_arg1:Boolean=false):void{
if (_arg1){
this.iTurn = new Array();
} else {
if (this.iTurn[0]){
this.iTurn.shift();
};
};
}
private function OnExtensionResponse(_arg1:SFSEvent):void{
var _local2:Array;
if (_arg1.params.type != "str"){
return;
};
_local2 = _arg1.params.dataObj;
if (_local2 == null){
return;
};
switch (_local2[0]){
case "logOK":
this.myUserId = int(_local2[2]);
this.myUserName = _local2[3];
this.amIModerator = (Number(_local2[4]) > 0);
this.State = stJoinMainRoom;
break;
case "logKO":
this.iError = _local2[2];
this.State = stLoginError;
this.iErrorsCount++;
break;
case cmdJoinMainRoom:
if (_local2[2]){
this.activeRoomId = _local2[3];
this.State = stInZone;
} else {
this.State = stMainRoomError;
};
break;
case cmdZoneUsersCount:
this.iUsersCount = _local2[2];
break;
case cmdJoinGameRoom:
if (_local2[2] < 0){
this.activeRoomId = -1;
this.State = OMultiplayer.stGameRoomError;
} else {
this.activeRoomId = _local2[2];
this.State = stInGameRoom;
};
break;
case cmdJoinGame:
if (_local2[2] < 0){
this.activeRoomId = -1;
this.playerId = -1;
this.iOpponentID = -1;
this.iOpponentName = null;
this.State = OMultiplayer.stGameError;
} else {
this.activeRoomId = _local2[2];
this.playerId = _local2[3];
this.iOpponentID = _local2[4];
this.iOpponentName = _local2[5];
this.State = OMultiplayer.stInGame;
};
break;
case cmdMakeTurn:
this.iTurn.push(_local2[2]);
break;
case cmdChatMessage:
this.iCMessages.push(_local2[2]);
break;
case cmdCmd:
this.iCmd = _local2[2];
break;
};
}
public function ChatMessage(_arg1:Array=null):void{
this.sendXtMessage(this.iXTName, OMultiplayer.cmdChatMessage, (_arg1) ? [_arg1.toString()] : ["0"], "str");
}
public function get State():int{
return (this.iState);
}
public function set prGameParams(_arg1:Array):void{
this.iGameParams = _arg1;
}
public function get prUsersCount():int{
return (this.iUsersCount);
}
public function Free():void{
if (this.iConnection){
this.disconnect();
};
this.iConnection = false;
this.iCMessages = null;
removeEventListener(SFSEvent.onConnection, OnConnection);
removeEventListener(SFSEvent.onConnectionLost, OnConnectionLost);
removeEventListener(SFSEvent.onExtensionResponse, OnExtensionResponse);
}
public function Turn(_arg1:Array=null):void{
if (this.iState > stLoginError){
this.sendXtMessage(this.iXTName, OMultiplayer.cmdMakeTurn, (_arg1) ? [_arg1.toString(), this.iOpponentID] : ["0", this.iOpponentID], "str");
};
}
public function get prOpponentTurn():String{
return (((this.iTurn.length)>0) ? this.iTurn[0] : null);
}
public function get prGRoomParams():Array{
return (this.iGRoomParams);
}
public function get prOpponentName():String{
return ((this.iOpponentName) ? this.iOpponentName.slice(0, (this.iOpponentName.length - 3)) : "...");
}
public function get prGameParams():Array{
return (this.iGameParams);
}
public function ClearCmd():void{
this.iCmd = null;
}
public function OnEnterFrame():void{
if (((!(this.isConnected)) && ((this.iState > stConnection)))){
this.iState = stNone;
};
switch (this.iState){
case stInZone:
if ((getTimer() - this.iTimer) > 180000){
this.cmdSend(cmdZoneUsersCount);
this.iTimer = getTimer();
};
break;
};
}
public function get prCmd():String{
return (this.iCmd);
}
public function get prFullOpponentName():String{
return ((this.iOpponentName) ? this.iOpponentName : "...");
}
public function get prPlayerID():int{
return (this.playerId);
}
public function set State(_arg1:int):void{
var aState = _arg1;
if ((((aState > stConnectionError)) && (!(this.isConnected)))){
return;
};
this.iState = aState;
switch (aState){
case stNone:
this.iError = null;
this.iUsersCount = 0;
this.myUserId = -1;
this.myUserName = null;
this.amIModerator = false;
this.playerId = -1;
this.activeRoomId = -1;
this.Free();
break;
case stConnection:
try {
this.connect(this.iAdress, 9339);
this.iConnection = true;
} catch(error:Error) {
OSystem.iUserText2 = "connect error";
this.State = stConnectionError;
};
break;
case stLogin:
this.login(this.iZoneName, this.iName, this.iPassword);
break;
case stJoinMainRoom:
this.cmdSend(cmdJoinMainRoom);
break;
case stInZone:
this.playerId = -1;
this.iOpponentID = -1;
this.iOpponentName = null;
this.iTimer = getTimer();
this.cmdSend(cmdZoneUsersCount);
break;
case stJoinGameRoom:
this.cmdSend(cmdJoinGameRoom, this.iGRoomParams);
break;
case stJoinGame:
this.cmdSend(cmdJoinGame, this.iGameParams);
break;
};
}
public function cmdSend(_arg1:String, _arg2:Array=null):void{
if (this.iState > stLoginError){
this.sendXtMessage(this.iXTName, _arg1, (_arg2) ? _arg2 : [], "str");
};
}
}
}//package ENGINE.SMARTFOX
Section 46
//Room (it.gotoandplay.smartfoxserver.data.Room)
package it.gotoandplay.smartfoxserver.data {
public class Room {
private var maxUsers:int;
private var userList:Array;
private var name:String;
private var userCount:int;
private var specCount:int;
private var id:int;
private var myPlayerIndex:int;
private var priv:Boolean;
private var temp:Boolean;
private var limbo:Boolean;
private var maxSpectators:int;
private var game:Boolean;
private var variables:Array;
public function Room(_arg1:int, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:Boolean, _arg7:Boolean, _arg8:Boolean, _arg9:int=0, _arg10:int=0){
this.id = _arg1;
this.name = _arg2;
this.maxSpectators = _arg4;
this.maxUsers = _arg3;
this.temp = _arg5;
this.game = _arg6;
this.priv = _arg7;
this.limbo = _arg8;
this.userCount = _arg9;
this.specCount = _arg10;
this.userList = [];
this.variables = [];
}
public function getVariable(_arg1:String):Object{
return (variables[_arg1]);
}
public function addUser(_arg1:User, _arg2:int):void{
userList[_arg2] = _arg1;
userCount++;
}
public function getName():String{
return (this.name);
}
public function getId():int{
return (this.id);
}
public function setIsLimbo(_arg1:Boolean):void{
this.limbo = _arg1;
}
public function clearVariables():void{
this.variables = [];
}
public function isTemp():Boolean{
return (this.temp);
}
public function getMaxSpectators():int{
return (this.maxSpectators);
}
public function setVariables(_arg1:Array):void{
this.variables = _arg1;
}
public function isGame():Boolean{
return (this.game);
}
public function getUser(_arg1):User{
var _local2:User;
var _local3:String;
var _local4:User;
_local2 = null;
if (typeof(_arg1) == "number"){
_local2 = userList[_arg1];
} else {
if (typeof(_arg1) == "string"){
for (_local3 in userList) {
_local4 = this.userList[_local3];
if (_local4.getName() == _arg1){
_local2 = _local4;
break;
};
};
};
};
return (_local2);
}
public function setUserCount(_arg1:int):void{
this.userCount = _arg1;
}
public function getVariables():Array{
return (variables);
}
public function getUserCount():int{
return (this.userCount);
}
public function isLimbo():Boolean{
return (this.limbo);
}
public function getSpectatorCount():int{
return (this.specCount);
}
public function setSpectatorCount(_arg1:int):void{
this.specCount = _arg1;
}
public function setMyPlayerIndex(_arg1:int):void{
this.myPlayerIndex = _arg1;
}
public function removeUser(_arg1:int):void{
delete userList[_arg1];
userCount--;
}
public function getMyPlayerIndex():int{
return (this.myPlayerIndex);
}
public function isPrivate():Boolean{
return (this.priv);
}
public function getMaxUsers():int{
return (this.maxUsers);
}
public function getUserList():Array{
return (this.userList);
}
}
}//package it.gotoandplay.smartfoxserver.data
Section 47
//User (it.gotoandplay.smartfoxserver.data.User)
package it.gotoandplay.smartfoxserver.data {
public class User {
private var isSpec:Boolean;
private var name:String;
private var id:int;
private var pId:int;
private var variables:Array;
private var isMod:Boolean;
public function User(_arg1:int, _arg2:String){
this.id = _arg1;
this.name = _arg2;
this.variables = [];
this.isSpec = false;
this.isMod = false;
}
public function setModerator(_arg1:Boolean):void{
this.isMod = _arg1;
}
public function getName():String{
return (this.name);
}
public function getVariables():Array{
return (this.variables);
}
public function getId():int{
return (this.id);
}
public function getPlayerId():int{
return (this.pId);
}
public function setPlayerId(_arg1:int):void{
this.pId = _arg1;
}
public function setIsSpectator(_arg1:Boolean):void{
this.isSpec = _arg1;
}
public function isSpectator():Boolean{
return (this.isSpec);
}
public function clearVariables():void{
this.variables = [];
}
public function getVariable(_arg1:String):Object{
return (this.variables[_arg1]);
}
public function setVariables(_arg1:Array):void{
this.variables = _arg1;
}
public function isModerator():Boolean{
return (this.isMod);
}
}
}//package it.gotoandplay.smartfoxserver.data
Section 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 it.gotoandplay.smartfoxserver.util.*;
import flash.utils.*;
public class SysHandler implements IMessageHandler {
private var sfs:SmartFoxClient;
private var handlersTable:Array;
public function SysHandler(_arg1:SmartFoxClient){
this.sfs = _arg1;
handlersTable = [];
handlersTable["apiOK"] = this.handleApiOK;
handlersTable["apiKO"] = this.handleApiKO;
handlersTable["logOK"] = this.handleLoginOk;
handlersTable["logKO"] = this.handleLoginKo;
handlersTable["rmList"] = this.handleRoomList;
handlersTable["uCount"] = this.handleUserCountChange;
handlersTable["joinOK"] = this.handleJoinOk;
handlersTable["joinKO"] = this.handleJoinKo;
handlersTable["uER"] = this.handleUserEnterRoom;
handlersTable["userGone"] = this.handleUserLeaverRoom;
handlersTable["pubMsg"] = this.handlePublicMessage;
handlersTable["prvMsg"] = this.handlePrivateMessage;
handlersTable["dmnMsg"] = this.handleAdminMessage;
handlersTable["modMsg"] = this.handleModMessage;
handlersTable["dataObj"] = this.handleASObject;
handlersTable["rVarsUpdate"] = this.handleRoomVarsUpdate;
handlersTable["roomAdd"] = this.handleRoomAdded;
handlersTable["roomDel"] = this.handleRoomDeleted;
handlersTable["rndK"] = this.handleRandomKey;
handlersTable["roundTripRes"] = this.handleRoundTripBench;
handlersTable["uVarsUpdate"] = this.handleUserVarsUpdate;
handlersTable["createRmKO"] = this.handleCreateRoomError;
handlersTable["bList"] = this.handleBuddyList;
handlersTable["bUpd"] = this.handleBuddyListUpdate;
handlersTable["bAdd"] = this.handleBuddyAdded;
handlersTable["roomB"] = this.handleBuddyRoom;
handlersTable["leaveRoom"] = this.handleLeaveRoom;
handlersTable["swSpec"] = this.handleSpectatorSwitched;
}
private function handleRoomDeleted(_arg1:Object):void{
var _local2:int;
var _local3:Array;
var _local4:Object;
var _local5:SFSEvent;
_local2 = int(_arg1.body.rm.@id);
_local3 = sfs.getAllRooms();
_local4 = {};
_local4.room = _local3[_local2];
delete _local3[_local2];
_local5 = new SFSEvent(SFSEvent.onRoomDeleted, _local4);
sfs.dispatchEvent(_local5);
}
public function handleMessage(_arg1:Object, _arg2:String):void{
var _local3:XML;
var _local4:String;
var _local5:Function;
_local3 = (_arg1 as XML);
_local4 = _local3.body.@action;
_local5 = handlersTable[_local4];
if (_local5 != null){
_local5.apply(this, [_arg1]);
} else {
trace(("Unknown sys command: " + _local4));
};
}
public function handleUserEnterRoom(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:XMLList;
var _local9:Room;
var _local10:User;
var _local11:Object;
var _local12:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.u.@i);
_local4 = _arg1.body.u.n;
_local5 = (_arg1.body.u.@m == "1");
_local6 = (_arg1.body.u.@s == "1");
_local7 = ((_arg1.body.u.@p)!=null) ? int(_arg1.body.u.@p) : -1;
_local8 = _arg1.body.u.vars["var"];
_local9 = sfs.getRoom(_local2);
_local10 = new User(_local3, _local4);
_local10.setModerator(_local5);
_local10.setIsSpectator(_local6);
_local10.setPlayerId(_local7);
_local9.addUser(_local10, _local3);
if (_arg1.body.u.vars.toString().length > 0){
populateVariables(_local10.getVariables(), _arg1.body.u);
};
_local11 = {};
_local11.roomId = _local2;
_local11.user = _local10;
_local12 = new SFSEvent(SFSEvent.onUserEnterRoom, _local11);
sfs.dispatchEvent(_local12);
}
public function handleUserVarsUpdate(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:User;
var _local5:Array;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = sfs.getRoom(_local2).getUser(_local3);
_local5 = [];
if (_arg1.body.vars.toString().length > 0){
populateVariables(_local4.getVariables(), _arg1.body, _local5);
};
_local6 = {};
_local6.user = _local4;
_local6.changedVars = _local5;
_local7 = new SFSEvent(SFSEvent.onUserVariablesUpdate, _local6);
sfs.dispatchEvent(_local7);
}
public function handleUserLeaverRoom(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:Room;
var _local5:String;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.user.@id);
_local3 = int(_arg1.body.@r);
_local4 = sfs.getRoom(_local3);
_local5 = _local4.getUser(_local2).getName();
_local4.removeUser(_local2);
_local6 = {};
_local6.roomId = _local3;
_local6.userId = _local2;
_local6.userName = _local5;
_local7 = new SFSEvent(SFSEvent.onUserLeaveRoom, _local6);
sfs.dispatchEvent(_local7);
}
public function handlePrivateMessage(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:User;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = _arg1.body.txt;
_local5 = sfs.getRoom(_local2).getUser(_local3);
_local6 = {};
_local6.message = Entities.decodeEntities(_local4);
_local6.sender = _local5;
_local6.roomId = _local2;
_local6.userId = _local3;
_local7 = new SFSEvent(SFSEvent.onPrivateMessage, _local6);
sfs.dispatchEvent(_local7);
}
private function handleCreateRoomError(_arg1:Object):void{
var _local2:String;
var _local3:Object;
var _local4:SFSEvent;
_local2 = _arg1.body.room.@e;
_local3 = {};
_local3.error = _local2;
_local4 = new SFSEvent(SFSEvent.onCreateRoomError, _local3);
sfs.dispatchEvent(_local4);
}
private function handleBuddyRoom(_arg1:Object):void{
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:Object;
var _local6:SFSEvent;
_local2 = _arg1.body.br.@r;
_local3 = _local2.split(",");
_local4 = 0;
while (_local4 < _local3.length) {
_local3[_local4] = int(_local3[_local4]);
_local4++;
};
_local5 = {};
_local5.idList = _local3;
_local6 = new SFSEvent(SFSEvent.onBuddyRoom, _local5);
sfs.dispatchEvent(_local6);
}
private function handleBuddyListUpdate(_arg1:Object):void{
var _local2:Object;
var _local3:SFSEvent;
var _local4:Object;
var _local5:XMLList;
var _local6:Object;
var _local7:Boolean;
var _local8:String;
var _local9:XML;
_local2 = {};
_local3 = null;
if (_arg1.body.b != null){
_local4 = {};
_local4.isOnline = ((_arg1.body.b.@s == "1")) ? true : false;
_local4.name = _arg1.body.b.n.toString();
_local4.id = _arg1.body.b.@i;
_local4.variables = {};
_local5 = _arg1.body.b.vs;
if (_local5.toString().length > 0){
for each (_local9 in _local5.v) {
_local4.variables[_local9.@n.toString()] = _local9.v.toString();
};
};
_local6 = null;
_local7 = false;
for (_local8 in sfs.buddyList) {
_local6 = sfs.buddyList[_local8];
if (_local6.name == _local4.name){
sfs.buddyList[_local8] = _local4;
_local7 = true;
break;
};
};
_local2.buddy = _local4;
_local3 = new SFSEvent(SFSEvent.onBuddyListUpdate, _local2);
sfs.dispatchEvent(_local3);
} else {
_local2.error = _arg1.body.err.toString();
_local3 = new SFSEvent(SFSEvent.onBuddyListError, _local2);
sfs.dispatchEvent(_local3);
};
}
public function handleUserCountChange(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Room;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@u);
_local3 = int(_arg1.body.@s);
_local4 = int(_arg1.body.@r);
_local5 = sfs.getAllRooms()[_local4];
if (_local5 != null){
_local5.setUserCount(_local2);
_local5.setSpectatorCount(_local3);
_local6 = {};
_local6.room = _local5;
_local7 = new SFSEvent(SFSEvent.onUserCountChange, _local6);
sfs.dispatchEvent(_local7);
};
}
private function handleRandomKey(_arg1:Object):void{
var _local2:String;
var _local3:Object;
var _local4:SFSEvent;
_local2 = _arg1.body.k.toString();
_local3 = {};
_local3.key = _local2;
_local4 = new SFSEvent(SFSEvent.onRandomKey, _local3);
sfs.dispatchEvent(_local4);
}
public function handlePublicMessage(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:User;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = _arg1.body.txt;
_local5 = sfs.getRoom(_local2).getUser(_local3);
_local6 = {};
_local6.message = Entities.decodeEntities(_local4);
_local6.sender = _local5;
_local6.roomId = _local2;
_local7 = new SFSEvent(SFSEvent.onPublicMessage, _local6);
sfs.dispatchEvent(_local7);
}
public function handleAdminMessage(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:Object;
var _local6:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = _arg1.body.txt;
_local5 = {};
_local5.message = Entities.decodeEntities(_local4);
_local6 = new SFSEvent(SFSEvent.onAdminMessage, _local5);
sfs.dispatchEvent(_local6);
}
public function dispatchDisconnection():void{
var _local1:SFSEvent;
_local1 = new SFSEvent(SFSEvent.onConnectionLost, null);
sfs.dispatchEvent(_local1);
}
private function handleSpectatorSwitched(_arg1:Object):void{
var _local2:int;
var _local3:Object;
var _local4:SFSEvent;
_local2 = int(_arg1.body.rm.@id);
sfs.playerId = int(_arg1.body.pid.@id);
_local3 = {};
_local3.success = (sfs.playerId > 0);
_local3.newId = sfs.playerId;
_local3.room = sfs.getRoom(_local2);
_local4 = new SFSEvent(SFSEvent.onSpectatorSwitched, _local3);
sfs.dispatchEvent(_local4);
}
public function handleLoginOk(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:Object;
var _local6:SFSEvent;
_local2 = int(_arg1.body.login.@id);
_local3 = int(_arg1.body.login.@mod);
_local4 = _arg1.body.login.@n;
sfs.amIModerator = (_local3 == 1);
sfs.myUserId = _local2;
sfs.myUserName = _local4;
sfs.playerId = -1;
_local5 = {};
_local5.success = true;
_local5.name = _local4;
_local5.error = "";
_local6 = new SFSEvent(SFSEvent.onLogin, _local5);
sfs.dispatchEvent(_local6);
sfs.getRoomList();
}
public function handleRoomVarsUpdate(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:Room;
var _local5:Array;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = sfs.getRoom(_local2);
_local5 = [];
if (_arg1.body.vars.toString().length > 0){
populateVariables(_local4.getVariables(), _arg1.body, _local5);
};
_local6 = {};
_local6.room = _local4;
_local6.changedVars = _local5;
_local7 = new SFSEvent(SFSEvent.onRoomVariablesUpdate, _local6);
sfs.dispatchEvent(_local7);
}
public function handleRoomList(_arg1:Object):void{
var _local2:Array;
var _local3:XML;
var _local4:Object;
var _local5:SFSEvent;
var _local6:int;
var _local7:Room;
_local2 = sfs.getAllRooms();
for each (_local3 in _arg1.body.rmList.rm) {
_local6 = int(_local3.@id);
_local7 = new Room(_local6, _local3.n, int(_local3.@maxu), int(_local3.@maxs), (_local3.@temp == "1"), (_local3.@game == "1"), (_local3.@priv == "1"), (_local3.@lmb == "1"), int(_local3.@ucnt), int(_local3.@scnt));
if (_local3.vars.toString().length > 0){
populateVariables(_local7.getVariables(), _local3);
};
_local2[_local6] = _local7;
};
_local4 = {};
_local4.roomList = _local2;
_local5 = new SFSEvent(SFSEvent.onRoomListUpdate, _local4);
sfs.dispatchEvent(_local5);
}
private function handleBuddyAdded(_arg1:Object):void{
var _local2:Object;
var _local3:XMLList;
var _local4:Object;
var _local5:SFSEvent;
var _local6:XML;
_local2 = {};
_local2.isOnline = ((_arg1.body.b.@s == "1")) ? true : false;
_local2.name = _arg1.body.b.n.toString();
_local2.id = _arg1.body.b.@i;
_local2.variables = {};
_local3 = _arg1.body.b.vs;
if (_local3.toString().length > 0){
for each (_local6 in _local3.v) {
_local2.variables[_local6.@n.toString()] = _local6.v.toString();
};
};
sfs.buddyList.push(_local2);
_local4 = {};
_local4.list = sfs.buddyList;
_local5 = new SFSEvent(SFSEvent.onBuddyList, _local4);
sfs.dispatchEvent(_local5);
}
private function handleRoomAdded(_arg1:Object):void{
var _local2:int;
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Boolean;
var _local10:Room;
var _local11:Array;
var _local12:Object;
var _local13:SFSEvent;
_local2 = int(_arg1.body.rm.@id);
_local3 = _arg1.body.rm.name;
_local4 = int(_arg1.body.rm.@max);
_local5 = int(_arg1.body.rm.@spec);
_local6 = ((_arg1.body.rm.@temp == "1")) ? true : false;
_local7 = ((_arg1.body.rm.@game == "1")) ? true : false;
_local8 = ((_arg1.body.rm.@priv == "1")) ? true : false;
_local9 = ((_arg1.body.rm.@limbo == "1")) ? true : false;
_local10 = new Room(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9);
_local11 = sfs.getAllRooms();
_local11[_local2] = _local10;
if (_arg1.body.rm.vars.toString().length > 0){
populateVariables(_local10.getVariables(), _arg1.body.rm);
};
_local12 = {};
_local12.room = _local10;
_local13 = new SFSEvent(SFSEvent.onRoomAdded, _local12);
sfs.dispatchEvent(_local13);
}
private function populateVariables(_arg1:Array, _arg2:Object, _arg3:Array=null):void{
var _local4:XML;
var _local5:String;
var _local6:String;
var _local7:String;
for each (_local4 in _arg2.vars["var"]) {
_local5 = _local4.@n;
_local6 = _local4.@t;
_local7 = _local4;
if (_arg3 != null){
_arg3.push(_local5);
_arg3[_local5] = true;
};
if (_local6 == "b"){
_arg1[_local5] = Boolean(_local7);
} else {
if (_local6 == "n"){
_arg1[_local5] = Number(_local7);
} else {
if (_local6 == "s"){
_arg1[_local5] = _local7;
} else {
if (_local6 == "x"){
delete _arg1[_local5];
};
};
};
};
};
}
private function handleLeaveRoom(_arg1:Object):void{
var _local2:int;
var _local3:Object;
var _local4:SFSEvent;
_local2 = int(_arg1.body.rm.@id);
_local3 = {};
_local3.roomId = _local2;
_local4 = new SFSEvent(SFSEvent.onRoomLeft, _local3);
sfs.dispatchEvent(_local4);
}
public function handleLoginKo(_arg1:Object):void{
var _local2:Object;
var _local3:SFSEvent;
_local2 = {};
_local2.success = false;
_local2.error = _arg1.body.login.@e;
_local3 = new SFSEvent(SFSEvent.onLogin, _local2);
sfs.dispatchEvent(_local3);
}
public function handleModMessage(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:User;
var _local6:Object;
var _local7:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = _arg1.body.txt;
_local5 = sfs.getRoom(_local2).getUser(_local3);
_local6 = {};
_local6.message = Entities.decodeEntities(_local4);
_local6.sender = _local5;
_local7 = new SFSEvent(SFSEvent.onModeratorMessage, _local6);
sfs.dispatchEvent(_local7);
}
public function handleApiOK(_arg1:Object):void{
var _local2:SFSEvent;
sfs.isConnected = true;
_local2 = new SFSEvent(SFSEvent.onConnection, {success:true});
sfs.dispatchEvent(_local2);
}
private function handleRoundTripBench(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:Object;
var _local5:SFSEvent;
_local2 = getTimer();
_local3 = (_local2 - sfs.getBenchStartTime());
_local4 = {};
_local4.elapsed = _local3;
_local5 = new SFSEvent(SFSEvent.onRoundTripResponse, _local4);
sfs.dispatchEvent(_local5);
}
public function handleJoinOk(_arg1:Object):void{
var _local2:int;
var _local3:XMLList;
var _local4:XMLList;
var _local5:int;
var _local6:Room;
var _local7:XML;
var _local8:Object;
var _local9:SFSEvent;
var _local10:String;
var _local11:int;
var _local12:Boolean;
var _local13:Boolean;
var _local14:int;
var _local15:User;
_local2 = int(_arg1.body.@r);
_local3 = _arg1.body;
_local4 = _arg1.body.uLs.u;
_local5 = int(_arg1.body.pid.@id);
sfs.activeRoomId = _local2;
_local6 = sfs.getRoom(_local2);
sfs.playerId = _local5;
_local6.setMyPlayerIndex(_local5);
if (_local3.vars.toString().length > 0){
_local6.clearVariables();
populateVariables(_local6.getVariables(), _local3);
};
for each (_local7 in _local4) {
_local10 = _local7.n;
_local11 = int(_local7.@i);
_local12 = ((_local7.@m == "1")) ? true : false;
_local13 = ((_local7.@s == "1")) ? true : false;
_local14 = ((_local7.p == undefined)) ? -1 : int(_local7.p);
_local15 = new User(_local11, _local10);
_local15.setModerator(_local12);
_local15.setIsSpectator(_local13);
_local15.setPlayerId(_local14);
if (_local7.vars.toString().length > 0){
populateVariables(_local15.getVariables(), _local7);
};
_local6.addUser(_local15, _local11);
};
sfs.changingRoom = false;
_local8 = {};
_local8.room = _local6;
_local9 = new SFSEvent(SFSEvent.onJoinRoom, _local8);
sfs.dispatchEvent(_local9);
}
public function handleJoinKo(_arg1:Object):void{
var _local2:Object;
var _local3:SFSEvent;
sfs.changingRoom = false;
_local2 = {};
_local2.error = _arg1.body.error.@msg;
_local3 = new SFSEvent(SFSEvent.onJoinRoomError, _local2);
sfs.dispatchEvent(_local3);
}
public function handleASObject(_arg1:Object):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:User;
var _local6:Object;
var _local7:Object;
var _local8:SFSEvent;
_local2 = int(_arg1.body.@r);
_local3 = int(_arg1.body.user.@id);
_local4 = _arg1.body.dataObj;
_local5 = sfs.getRoom(_local2).getUser(_local3);
_local6 = ObjectSerializer.getInstance().deserialize(new XML(_local4));
_local7 = {};
_local7.obj = _local6;
_local7.sender = _local5;
_local8 = new SFSEvent(SFSEvent.onObjectReceived, _local7);
sfs.dispatchEvent(_local8);
}
private function handleBuddyList(_arg1:Object):void{
var _local2:XMLList;
var _local3:Object;
var _local4:Object;
var _local5:SFSEvent;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
_local2 = _arg1.body.bList;
_local4 = {};
_local5 = null;
if (((!((_local2 == null))) && (!((_local2.b.length == null))))){
if (_local2.toString().length > 0){
for each (_local6 in _local2.b) {
_local3 = {};
_local3.isOnline = ((_local6.@s == "1")) ? true : false;
_local3.name = _local6.n.toString();
_local3.id = _local6.@i;
_local3.variables = {};
_local7 = _local6.vs;
if (_local7.toString().length > 0){
for each (_local8 in _local7.v) {
_local3.variables[_local8.@n.toString()] = _local8.v.toString();
};
};
sfs.buddyList.push(_local3);
};
};
_local4.list = sfs.buddyList;
_local5 = new SFSEvent(SFSEvent.onBuddyList, _local4);
sfs.dispatchEvent(_local5);
} else {
_local4.error = _arg1.body.err.toString();
_local5 = new SFSEvent(SFSEvent.onBuddyListError, _local4);
sfs.dispatchEvent(_local5);
};
}
public function handleApiKO(_arg1:Object):void{
var _local2:Object;
var _local3:SFSEvent;
_local2 = {};
_local2.success = false;
_local2.error = "API are obsolete, please upgrade";
_local3 = new SFSEvent(SFSEvent.onConnection, _local2);
sfs.dispatchEvent(_local3);
}
}
}//package it.gotoandplay.smartfoxserver.handlers
Section 51
//JSON (it.gotoandplay.smartfoxserver.json.JSON)
package it.gotoandplay.smartfoxserver.json {
public class JSON {
public static function decode(_arg1:String):Object{
var _local2:JSONDecoder;
_local2 = new JSONDecoder(_arg1);
return (_local2.getObject());
}
public static function encode(_arg1:Object):String{
var _local2:JSONEncoder;
_local2 = new JSONEncoder(_arg1);
return (_local2.getString());
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 52
//JSONDecoder (it.gotoandplay.smartfoxserver.json.JSONDecoder)
package it.gotoandplay.smartfoxserver.json {
public class JSONDecoder {
private var tokenizer:JSONTokenizer;
private var token:JSONToken;
private var obj:Object;
public function JSONDecoder(_arg1:String){
tokenizer = new JSONTokenizer(_arg1);
nextToken();
obj = parseValue();
}
private function parseValue():Object{
switch (token.type){
case JSONTokenType.LEFT_BRACE:
return (parseObject());
case JSONTokenType.LEFT_BRACKET:
return (parseArray());
case JSONTokenType.STRING:
case JSONTokenType.NUMBER:
case JSONTokenType.TRUE:
case JSONTokenType.FALSE:
case JSONTokenType.NULL:
return (token.value);
default:
tokenizer.parseError(("Unexpected " + token.value));
};
return (null);
}
private function nextToken():JSONToken{
return ((token = tokenizer.getNextToken()));
}
private function parseObject():Object{
var _local1:Object;
var _local2:String;
_local1 = new Object();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
while (true) {
if (token.type == JSONTokenType.STRING){
_local2 = String(token.value);
nextToken();
if (token.type == JSONTokenType.COLON){
nextToken();
_local1[_local2] = parseValue();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACE){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting } or , but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting : but found " + token.value));
};
} else {
tokenizer.parseError(("Expecting string but found " + token.value));
};
};
return (null);
}
private function parseArray():Array{
var _local1:Array;
_local1 = new Array();
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
while (true) {
_local1.push(parseValue());
nextToken();
if (token.type == JSONTokenType.RIGHT_BRACKET){
return (_local1);
};
if (token.type == JSONTokenType.COMMA){
nextToken();
} else {
tokenizer.parseError(("Expecting ] or , but found " + token.value));
};
};
return (null);
}
public function getObject():Object{
return (obj);
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 53
//JSONEncoder (it.gotoandplay.smartfoxserver.json.JSONEncoder)
package it.gotoandplay.smartfoxserver.json {
public class JSONEncoder {
private var jsonString:String;
public function JSONEncoder(_arg1:Object){
jsonString = convertToString(_arg1);
}
private function arrayToString(_arg1:Array):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + convertToString(_arg1[_local3]));
_local3++;
};
return ((("[" + _local2) + "]"));
}
private function convertToString(_arg1:Object):String{
if ((_arg1 is String)){
return (escapeString((_arg1 as String)));
};
if ((_arg1 is Number)){
return ((isFinite((_arg1 as Number))) ? _arg1.toString() : "null");
} else {
if ((_arg1 is Boolean)){
return ((_arg1) ? "true" : "false");
} else {
if ((_arg1 is Array)){
return (arrayToString((_arg1 as Array)));
};
if ((((_arg1 is Object)) && (!((_arg1 == null))))){
return (objectToString(_arg1));
};
};
};
return ("null");
}
private function escapeString(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:String;
_local2 = "";
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = _arg1.charAt(_local5);
switch (_local3){
case "\"":
_local2 = (_local2 + "\\\"");
break;
case "\\":
_local2 = (_local2 + "\\\\");
break;
case "\b":
_local2 = (_local2 + "\\b");
break;
case "\f":
_local2 = (_local2 + "\\f");
break;
case "\n":
_local2 = (_local2 + "\\n");
break;
case "\r":
_local2 = (_local2 + "\\r");
break;
case "\t":
_local2 = (_local2 + "\\t");
break;
default:
if (_local3 < " "){
_local6 = _local3.charCodeAt(0).toString(16);
_local7 = ((_local6.length == 2)) ? "00" : "000";
_local2 = (_local2 + (("\\u" + _local7) + _local6));
} else {
_local2 = (_local2 + _local3);
};
};
_local5++;
};
return ((("\"" + _local2) + "\""));
}
private function objectToString(_arg1:Object):String{
var _local2:String;
var _local3:Object;
var _local4:String;
_local2 = "";
for (_local4 in _arg1) {
_local3 = _arg1[_local4];
if ((_local3 is Function)){
} else {
if (_local2.length > 0){
_local2 = (_local2 + ",");
};
_local2 = (_local2 + ((escapeString(_local4) + ":") + convertToString(_local3)));
};
};
return ((("{" + _local2) + "}"));
}
public function getString():String{
return (jsonString);
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 54
//JSONParseError (it.gotoandplay.smartfoxserver.json.JSONParseError)
package it.gotoandplay.smartfoxserver.json {
public class JSONParseError extends Error {
private var _text:String;
private var _location:int;
public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){
super(_arg1);
_location = _arg2;
_text = _arg3;
}
public function get text():String{
return (_text);
}
public function get location():int{
return (_location);
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 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 set value(_arg1:Object):void{
_value = _arg1;
}
public function get value():Object{
return (_value);
}
public function set type(_arg1:int):void{
_type = _arg1;
}
public function get type():int{
return (_type);
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 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 readNumber():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:Number;
_local1 = new JSONToken();
_local1.type = JSONTokenType.NUMBER;
_local2 = "";
if (ch == "-"){
_local2 = (_local2 + "-");
nextChar();
};
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
if (ch == "."){
_local2 = (_local2 + ".");
nextChar();
while (isDigit(ch)) {
_local2 = (_local2 + ch);
nextChar();
};
};
_local3 = Number(_local2);
if (isFinite(_local3)){
_local1.value = _local3;
return (_local1);
};
parseError((("Number " + _local3) + " is not valid!"));
return (null);
}
private function nextChar():String{
return ((ch = jsonString.charAt(loc++)));
}
private function isHexDigit(_arg1:String):Boolean{
var _local2:String;
_local2 = _arg1.toUpperCase();
return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F"))))));
}
public function getNextToken():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:String;
_local1 = new JSONToken();
skipIgnored();
switch (ch){
case "{":
_local1.type = JSONTokenType.LEFT_BRACE;
_local1.value = "{";
nextChar();
break;
case "}":
_local1.type = JSONTokenType.RIGHT_BRACE;
_local1.value = "}";
nextChar();
break;
case "[":
_local1.type = JSONTokenType.LEFT_BRACKET;
_local1.value = "[";
nextChar();
break;
case "]":
_local1.type = JSONTokenType.RIGHT_BRACKET;
_local1.value = "]";
nextChar();
break;
case ",":
_local1.type = JSONTokenType.COMMA;
_local1.value = ",";
nextChar();
break;
case ":":
_local1.type = JSONTokenType.COLON;
_local1.value = ":";
nextChar();
break;
case "t":
_local2 = ((("t" + nextChar()) + nextChar()) + nextChar());
if (_local2 == "true"){
_local1.type = JSONTokenType.TRUE;
_local1.value = true;
nextChar();
} else {
parseError(("Expecting 'true' but found " + _local2));
};
break;
case "f":
_local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar());
if (_local3 == "false"){
_local1.type = JSONTokenType.FALSE;
_local1.value = false;
nextChar();
} else {
parseError(("Expecting 'false' but found " + _local3));
};
break;
case "n":
_local4 = ((("n" + nextChar()) + nextChar()) + nextChar());
if (_local4 == "null"){
_local1.type = JSONTokenType.NULL;
_local1.value = null;
nextChar();
} else {
parseError(("Expecting 'null' but found " + _local4));
};
break;
case "\"":
_local1 = readString();
break;
default:
if (((isDigit(ch)) || ((ch == "-")))){
_local1 = readNumber();
} else {
if (ch == ""){
return (null);
};
parseError((("Unexpected " + ch) + " encountered"));
};
};
return (_local1);
}
private function skipWhite():void{
while (isSpace(ch)) {
nextChar();
};
}
public function parseError(_arg1:String):void{
throw (new JSONParseError(_arg1, loc, jsonString));
}
private function skipIgnored():void{
skipWhite();
skipComments();
skipWhite();
}
private function isSpace(_arg1:String):Boolean{
return ((((_arg1 == " ")) || ((_arg1 == "\t"))));
}
private function readString():JSONToken{
var _local1:JSONToken;
var _local2:String;
var _local3:String;
var _local4:int;
_local1 = new JSONToken();
_local1.type = JSONTokenType.STRING;
_local2 = "";
nextChar();
while (((!((ch == "\""))) && (!((ch == ""))))) {
if (ch == "\\"){
nextChar();
switch (ch){
case "\"":
_local2 = (_local2 + "\"");
break;
case "/":
_local2 = (_local2 + "/");
break;
case "\\":
_local2 = (_local2 + "\\");
break;
case "b":
_local2 = (_local2 + "\b");
break;
case "f":
_local2 = (_local2 + "\f");
break;
case "n":
_local2 = (_local2 + "\n");
break;
case "r":
_local2 = (_local2 + "\r");
break;
case "t":
_local2 = (_local2 + "\t");
break;
case "u":
_local3 = "";
_local4 = 0;
while (_local4 < 4) {
if (!isHexDigit(nextChar())){
parseError((" Excepted a hex digit, but found: " + ch));
};
_local3 = (_local3 + ch);
_local4++;
};
_local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16)));
break;
default:
_local2 = (_local2 + ("\\" + ch));
};
} else {
_local2 = (_local2 + ch);
};
nextChar();
};
if (ch == ""){
parseError("Unterminated string literal");
};
nextChar();
_local1.value = _local2;
return (_local1);
}
}
}//package it.gotoandplay.smartfoxserver.json
Section 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;
_local7 = 0;
_local2 = "";
while (_local7 < _arg1.length) {
_local3 = _arg1.charAt(_local7);
if (_local3 == "&"){
_local4 = _local3;
do {
_local7++;
_local5 = _arg1.charAt(_local7);
_local4 = (_local4 + _local5);
} while (_local5 != ";");
_local6 = ascTabRev[_local4];
if (_local6 != null){
_local2 = (_local2 + _local6);
} else {
_local2 = (_local2 + String.fromCharCode(getCharCode(_local4)));
};
} else {
_local2 = (_local2 + _local3);
};
_local7++;
};
trace(((("DECODE: " + _arg1) + ", ") + _local2));
return (_local2);
}
public static function encodeEntities(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _arg1.charCodeAt(_local3);
if ((((((_local5 == 9)) || ((_local5 == 10)))) || ((_local5 == 13)))){
_local2 = (_local2 + _local4);
} else {
if ((((_local5 >= 32)) && ((_local5 <= 126)))){
if (ascTab[_local4] != null){
_local2 = (_local2 + ascTab[_local4]);
} else {
_local2 = (_local2 + _local4);
};
} else {
_local2 = (_local2 + _local4);
};
};
_local3++;
};
return (_local2);
}
public static function getCharCode(_arg1:String):Number{
var _local2:String;
_local2 = _arg1.substr(3, _arg1.length);
_local2 = _local2.substr(0, (_local2.length - 1));
return (Number(("0x" + _local2)));
}
ascTab[">"] = ">";
ascTab["<"] = "<";
ascTab["&"] = "&";
ascTab["'"] = "'";
ascTab["\""] = """;
ascTabRev[">"] = ">";
ascTabRev["<"] = "<";
ascTabRev["&"] = "&";
ascTabRev["'"] = "'";
ascTabRev["""] = "\"";
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;
_local2 = {};
obj2xml(_arg1, _local2);
return (_local2.xmlStr);
}
private function obj2xml(_arg1:Object, _arg2:Object, _arg3:int=0, _arg4:String=""):void{
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:*;
if (_arg3 == 0){
_arg2.xmlStr = ("<dataObj>" + this.eof);
} else {
if (this.debug){
_arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, _arg3));
};
_local6 = ((_arg1 is Array)) ? "a" : "o";
_arg2.xmlStr = (_arg2.xmlStr + ((((("<obj t='" + _local6) + "' o='") + _arg4) + "'>") + this.eof));
};
for (_local5 in _arg1) {
_local7 = typeof(_arg1[_local5]);
_local8 = _arg1[_local5];
if ((((((((_local7 == "boolean")) || ((_local7 == "number")))) || ((_local7 == "string")))) || ((_local7 == "null")))){
if (_local7 == "boolean"){
_local8 = Number(_local8);
} else {
if (_local7 == "null"){
_local7 = "x";
_local8 = "";
} else {
if (_local7 == "string"){
_local8 = Entities.encodeEntities(_local8);
};
};
};
if (this.debug){
_arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1)));
};
_arg2.xmlStr = (_arg2.xmlStr + ((((((("<var n='" + _local5) + "' t='") + _local7.substr(0, 1)) + "'>") + _local8) + "</var>") + this.eof));
} else {
if (_local7 == "object"){
obj2xml(_local8, _arg2, (_arg3 + 1), _local5);
if (this.debug){
_arg2.xmlStr = (_arg2.xmlStr + this.tabs.substr(0, (_arg3 + 1)));
};
_arg2.xmlStr = (_arg2.xmlStr + ("</obj>" + this.eof));
};
};
};
if (_arg3 == 0){
_arg2.xmlStr = (_arg2.xmlStr + ("</dataObj>" + this.eof));
};
}
private function setDebug(_arg1:Boolean):void{
this.debug = _arg1;
if (this.debug){
this.eof = "\n";
} else {
this.eof = "";
};
}
private function xml2obj(_arg1:XML, _arg2:Object):void{
var _local3:int;
var _local4:XMLList;
var _local5:String;
var _local6:XML;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:String;
var _local11:String;
_local3 = 0;
_local4 = _arg1.children();
for each (_local6 in _local4) {
_local5 = _local6.name().toString();
if (_local5 == "obj"){
_local7 = _local6.@o;
_local8 = _local6.@t;
if (_local8 == "a"){
_arg2[_local7] = [];
} else {
if (_local8 == "o"){
_arg2[_local7] = {};
};
};
xml2obj(_local6, _arg2[_local7]);
} else {
if (_local5 == "var"){
_local9 = _local6.@n;
_local10 = _local6.@t;
_local11 = _local6.toString();
if (_local10 == "b"){
_arg2[_local9] = ((_local11 == "0")) ? false : true;
} else {
if (_local10 == "n"){
_arg2[_local9] = Number(_local11);
} else {
if (_local10 == "s"){
_arg2[_local9] = _local11;
} else {
if (_local10 == "x"){
_arg2[_local9] = null;
};
};
};
};
};
};
};
}
private function encodeEntities(_arg1:String):String{
return (_arg1);
}
public function deserialize(_arg1:String):Object{
var _local2:XML;
var _local3:Object;
_local2 = new XML(_arg1);
_local3 = {};
xml2obj(_local2, _local3);
return (_local3);
}
public static function getInstance(_arg1:Boolean=false):ObjectSerializer{
if (instance == null){
instance = new ObjectSerializer(_arg1);
};
return (instance);
}
}
}//package it.gotoandplay.smartfoxserver.util
Section 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 it.gotoandplay.smartfoxserver.util.*;
import it.gotoandplay.smartfoxserver.json.*;
import flash.utils.*;
import flash.net.*;
public class SmartFoxClient extends EventDispatcher {
private var connected:Boolean;
private var benchStartTime:int;
public var myUserId:int;
private var roomList:Array;
private var minVersion:Number;
public var buddyVars:Array;
public var debug:Boolean;
private var byteBuffer:ByteArray;
private var subVersion:Number;
public var buddyList:Array;
private var messageHandlers:Array;
private var majVersion:Number;
private var socketConnection:Socket;
private var sysHandler:SysHandler;
public var myUserName:String;
public var playerId:int;
public var amIModerator:Boolean;
public var changingRoom:Boolean;
private var extHandler:ExtHandler;
public var activeRoomId:int;
private static const EOM:int = 0;
private static const MSG_JSON:String = "{";
public static const XTMSG_TYPE_STR:String = "str";
public static const MODMSG_TO_USER:String = "u";
public static const MODMSG_TO_ZONE:String = "z";
private static const MSG_STR:String = "%";
private static const MSG_XML:String = "<";
public static const XTMSG_TYPE_JSON:String = "json";
public static const XTMSG_TYPE_XML:String = "xml";
public static const MODMSG_TO_ROOM:String = "r";
public function SmartFoxClient(_arg1:Boolean=false){
this.majVersion = 1;
this.minVersion = 3;
this.subVersion = 4;
this.activeRoomId = -1;
this.debug = _arg1;
this.messageHandlers = [];
setupMessageHandlers();
socketConnection = new Socket();
socketConnection.addEventListener(Event.CONNECT, handleSocketConnection);
socketConnection.addEventListener(Event.CLOSE, handleSocketDisconnection);
socketConnection.addEventListener(ErrorEvent.ERROR, handleSocketError);
socketConnection.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
socketConnection.addEventListener(ProgressEvent.SOCKET_DATA, handleSocketData);
socketConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError);
byteBuffer = new ByteArray();
}
private function getXmlUserVariable(_arg1:Object):String{
var _local2:String;
var _local3:*;
var _local4:String;
var _local5:String;
var _local6:String;
_local2 = "<vars>";
for (_local6 in _arg1) {
_local3 = _arg1[_local6];
_local5 = typeof(_local3);
if (_local5 == "boolean"){
_local4 = "b";
_local3 = (_local3) ? "1" : "0";
} else {
if (_local5 == "number"){
_local4 = "n";
} else {
if (_local5 == "string"){
_local4 = "s";
} else {
if (_local5 == "null"){
_local4 = "x";
};
};
};
};
if (_local4 != null){
_local2 = (_local2 + (((((("<var n='" + _local6) + "' t='") + _local4) + "'><![CDATA[") + _local3) + "]]></var>"));
};
};
_local2 = (_local2 + "</vars>");
return (_local2);
}
private function checkBuddyDuplicates(_arg1:String):Boolean{
var _local2:Boolean;
var _local3:Object;
_local2 = false;
for each (_local3 in buddyList) {
if (_local3.name == _arg1){
_local2 = true;
break;
};
};
return (_local2);
}
public function getBuddyRoom(_arg1:Object):void{
if (_arg1.id != -1){
send({t:"sys", bid:_arg1.id}, "roomB", -1, (("<b id='" + _arg1.id) + "' />"));
};
}
private function handleSocketData(_arg1:Event):void{
var _local2:int;
var _local3:int;
_local2 = socketConnection.bytesAvailable;
while (--_local2 >= 0) {
_local3 = socketConnection.readByte();
if (_local3 != 0){
byteBuffer.writeByte(_local3);
} else {
handleMessage(byteBuffer.toString());
byteBuffer = new ByteArray();
};
};
}
private function handleSocketError(_arg1:Event):void{
trace("SOCKET ERROR!!!");
}
private function getXmlRoomVariable(_arg1:Object):String{
var _local2:String;
var _local3:*;
var _local4:String;
var _local5:String;
var _local6:String;
_local2 = _arg1.name.toString();
_local3 = _arg1.val.toString();
_local4 = (_arg1.priv) ? "1" : "0";
_local5 = (_arg1.persistent) ? "1" : "0";
_local6 = null;
if (typeof(_local3) == "boolean"){
_local6 = "b";
_local3 = (_local3) ? "1" : "0";
} else {
if (typeof(_local3) == "number"){
_local6 = "n";
} else {
if (typeof(_local3) == "string"){
_local6 = "s";
} else {
if (typeof(_local3) == "null"){
_local6 = "x";
};
};
};
};
if (_local6 != null){
return ((((((((((("<var n='" + _local2) + "' t='") + _local6) + "' pr='") + _local4) + "' pe='") + _local5) + "'><![CDATA[") + _local3) + "]]></var>"));
};
return ("");
}
private function handleSocketDisconnection(_arg1:Event):void{
var _local2:SFSEvent;
initialize();
_local2 = new SFSEvent(SFSEvent.onConnectionLost, {});
dispatchEvent(_local2);
}
private function xmlReceived(_arg1:String):void{
var _local2:XML;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:IMessageHandler;
_local2 = new XML(_arg1);
_local3 = _local2.@t;
_local4 = _local2.body.@action;
_local5 = _local2.body.@r;
_local6 = messageHandlers[_local3];
if (_local6 != null){
_local6.handleMessage(_local2, XTMSG_TYPE_XML);
};
}
public function switchSpectator(_arg1:int=-1):void{
if (_arg1 == -1){
_arg1 = activeRoomId;
};
send({t:"sys"}, "swSpec", _arg1, "");
}
public function roundTripBench():void{
this.benchStartTime = getTimer();
send({t:"sys"}, "roundTrip", activeRoomId, "");
}
public function joinRoom(_arg1, _arg2:String="", _arg3:Boolean=false, _arg4:Boolean=false, _arg5:int=-1):void{
var _local6:int;
var _local7:int;
var _local8:Room;
var _local9:Object;
var _local10:String;
var _local11:int;
var _local12:String;
_local6 = -1;
_local7 = (_arg3) ? 1 : 0;
if (!this.changingRoom){
if (typeof(_arg1) == "number"){
_local6 = int(_arg1);
} else {
if (typeof(_arg1) == "string"){
for each (_local8 in roomList) {
if (_local8.getName() == _arg1){
_local6 = _local8.getId();
break;
};
};
};
};
if (_local6 != -1){
_local9 = {t:"sys"};
_local10 = (_arg4) ? "0" : "1";
_local11 = ((_arg5 > -1)) ? _arg5 : activeRoomId;
if (activeRoomId == -1){
_local10 = "0";
_local11 = -1;
};
_local12 = (((((((((("<room id='" + _local6) + "' pwd='") + _arg2) + "' spec='") + _local7) + "' leave='") + _local10) + "' old='") + _local11) + "' />");
send(_local9, "joinRoom", activeRoomId, _local12);
changingRoom = true;
} else {
trace("SmartFoxError: requested room to join does not exist!");
};
};
}
public function getActiveRoom():Room{
return (roomList[activeRoomId]);
}
private function makeXmlHeader(_arg1:Object):String{
var _local2:String;
var _local3:String;
_local2 = "<msg";
for (_local3 in _arg1) {
_local2 = (_local2 + ((((" " + _local3) + "='") + _arg1[_local3]) + "'"));
};
_local2 = (_local2 + ">");
return (_local2);
}
private function strReceived(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:IMessageHandler;
_local2 = _arg1.substr(1, (_arg1.length - 2)).split(MSG_STR);
_local3 = _local2[0];
_local4 = messageHandlers[_local3];
if (_local4 != null){
_local4.handleMessage(_local2.splice(1, (_local2.length - 1)), XTMSG_TYPE_STR);
};
}
public function getRoomByName(_arg1:String):Room{
var _local2:Room;
var _local3:Room;
_local2 = null;
for each (_local3 in roomList) {
if (_local3.getName() == _arg1){
_local2 = _local3;
break;
};
};
return (_local2);
}
public function loadBuddyList():void{
send({t:"sys"}, "loadB", -1, "");
}
public function leaveRoom(_arg1:int):void{
var _local2:Object;
var _local3:String;
_local2 = {t:"sys"};
_local3 = (("<rm id='" + _arg1) + "' />");
send(_local2, "leaveRoom", _arg1, _local3);
}
private function addMessageHandler(_arg1:String, _arg2:IMessageHandler):void{
if (this.messageHandlers[_arg1] == null){
this.messageHandlers[_arg1] = _arg2;
} else {
trace((("Warning, message handler called: " + _arg1) + " already exist!"));
};
}
public function getAllRooms():Array{
return (roomList);
}
public function setBuddyVariables(_arg1:Array):void{
var _local2:Object;
var _local3:String;
var _local4:String;
var _local5:String;
_local2 = {t:"sys"};
_local3 = "<vars>";
for (_local4 in _arg1) {
_local5 = _arg1[_local4];
if (buddyVars[_local4] != _local5){
buddyVars[_local4] = _local5;
_local3 = (_local3 + (((("<var n='" + _local4) + "'><![CDATA[") + _local5) + "]]></var>"));
};
};
_local3 = (_local3 + "</vars>");
this.send(_local2, "setBvars", -1, _local3);
}
public function getRoom(_arg1:int):Room{
return (roomList[_arg1]);
}
private function handleSecurityError(_arg1:Event):void{
trace("SECURITY ERROR!!!");
}
private function handleIOError(_arg1:Event):void{
var _local2:SFSEvent;
var _local3:Object;
if (!connected){
_local3 = {};
_local3.success = false;
_local3.error = "I/O Error";
_local2 = new SFSEvent(SFSEvent.onConnection, _local3);
dispatchEvent(_local2);
} else {
trace("I/O Error during connected session");
};
}
private function setupMessageHandlers():void{
sysHandler = new SysHandler(this);
extHandler = new ExtHandler(this);
addMessageHandler("sys", sysHandler);
addMessageHandler("xt", extHandler);
}
public function login(_arg1:String, _arg2:String, _arg3:String):void{
var _local4:Object;
var _local5:String;
_local4 = {t:"sys"};
_local5 = (((((("<login z='" + _arg1) + "'><nick><![CDATA[") + _arg2) + "]]></nick><pword><![CDATA[") + _arg3) + "]]></pword></login>");
send(_local4, "login", 0, _local5);
}
public function autoJoin():void{
var _local1:Object;
_local1 = {t:"sys"};
this.send(_local1, "autoJoin", (this.activeRoomId) ? this.activeRoomId : -1, "");
}
private function send(_arg1:Object, _arg2:String, _arg3:Number, _arg4:String):void{
var _local5:String;
_local5 = makeXmlHeader(_arg1);
_local5 = (_local5 + ((((((("<body action='" + _arg2) + "' r='") + _arg3) + "'>") + _arg4) + "</body>") + closeHeader()));
if (this.debug){
trace((("[Sending]: " + _local5) + "\n"));
};
writeToSocket(_local5);
}
public function getRoomList():void{
var _local1:Object;
_local1 = {t:"sys"};
send(_local1, "getRmList", activeRoomId, "");
}
private function initialize():void{
this.changingRoom = false;
this.amIModerator = false;
this.playerId = -1;
this.connected = false;
this.roomList = [];
this.buddyList = [];
this.buddyVars = [];
}
public function setRoomVariables(_arg1:Array, _arg2:int=-1, _arg3:Boolean=true):void{
var _local4:Object;
var _local5:String;
var _local6:Object;
if (_arg2 == -1){
_arg2 = activeRoomId;
};
_local4 = {t:"sys"};
if (_arg3){
_local5 = "<vars>";
} else {
_local5 = "<vars so='0'>";
};
for each (_local6 in _arg1) {
_local5 = (_local5 + getXmlRoomVariable(_local6));
};
_local5 = (_local5 + "</vars>");
send(_local4, "setRvars", _arg2, _local5);
}
public function disconnect():void{
socketConnection.close();
connected = false;
sysHandler.dispatchDisconnection();
}
public function sendJson(_arg1:String):void{
if (this.debug){
trace((("[Sending - JSON]: " + _arg1) + "\n"));
};
writeToSocket(_arg1);
}
private function closeHeader():String{
return ("</msg>");
}
public function getVersion():String{
return (((((this.majVersion + ".") + this.minVersion) + ".") + this.subVersion));
}
public function setUserVariables(_arg1:Object, _arg2:int=-1):void{
var _local3:Object;
var _local4:Room;
var _local5:User;
var _local6:String;
if (_arg2 == -1){
_arg2 = activeRoomId;
};
_local3 = {t:"sys"};
_local4 = getActiveRoom();
_local5 = _local4.getUser(myUserId);
_local6 = getXmlUserVariable(_arg1);
send(_local3, "setUvars", _arg2, _local6);
}
public function addBuddy(_arg1:String):void{
var _local2:String;
if (((!((_arg1 == myUserName))) && (!(checkBuddyDuplicates(_arg1))))){
_local2 = (("<n>" + _arg1) + "</n>");
send({t:"sys"}, "addB", -1, _local2);
};
}
public function sendPrivateMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{
var _local4:Object;
var _local5:String;
if (_arg3 == -1){
_arg3 = activeRoomId;
};
_local4 = {t:"sys"};
_local5 = (((("<txt rcp='" + _arg2) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>");
send(_local4, "prvMsg", _arg3, _local5);
}
public function sendPublicMessage(_arg1:String, _arg2:int=-1):void{
var _local3:Object;
var _local4:String;
if (_arg2 == -1){
_arg2 = activeRoomId;
};
_local3 = {t:"sys"};
_local4 = (("<txt><![CDATA[" + Entities.encodeEntities(_arg1)) + "]]></txt>");
send(_local3, "pubMsg", _arg2, _local4);
}
public function clearBuddyList():void{
var _local1:Object;
var _local2:SFSEvent;
buddyList = [];
send({t:"sys"}, "clearB", -1, "");
_local1 = {};
_local1.list = buddyList;
_local2 = new SFSEvent(SFSEvent.onBuddyList, _local1);
dispatchEvent(_local2);
}
public function sendString(_arg1:String):void{
if (this.debug){
trace((("[Sending - STR]: " + _arg1) + "\n"));
};
writeToSocket(_arg1);
}
public function removeBuddy(_arg1:String):void{
var _local2:Boolean;
var _local3:Object;
var _local4:String;
var _local5:Object;
var _local6:String;
var _local7:Object;
var _local8:SFSEvent;
_local2 = false;
for (_local4 in buddyList) {
_local3 = buddyList[_local4];
if (_local3.name == _arg1){
delete buddyList[_local4];
_local2 = true;
break;
};
};
if (_local2){
_local5 = {t:"sys"};
_local6 = (("<n>" + _arg1) + "</n>");
send(_local5, "remB", -1, _local6);
_local7 = {};
_local7.list = buddyList;
_local8 = new SFSEvent(SFSEvent.onBuddyList, _local7);
dispatchEvent(_local8);
};
}
private function handleMessage(_arg1:String):void{
var _local2:String;
if (this.debug){
trace((((("[ RECEIVED ]: " + _arg1) + ", (len: ") + _arg1.length) + ")"));
};
_local2 = _arg1.charAt(0);
if (_local2 == MSG_XML){
if ((((_arg1.substr(0, 4) == "<msg")) && (!((_arg1.substr(-6) == "</msg>"))))){
_arg1 = (_arg1 + "</body></msg>");
};
xmlReceived(_arg1);
} else {
if (_local2 == MSG_STR){
strReceived(_arg1);
} else {
if (_local2 == MSG_JSON){
jsonReceived(_arg1);
};
};
};
}
public function sendXtMessage(_arg1:String, _arg2:String, _arg3, _arg4:String="xml", _arg5:int=-1):void{
var _local6:Object;
var _local7:Object;
var _local8:String;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
var _local13:String;
if (_arg5 == -1){
_arg5 = activeRoomId;
};
if (_arg4 == XTMSG_TYPE_XML){
_local6 = {t:"xt"};
_local7 = {name:_arg1, cmd:_arg2, param:_arg3};
_local8 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_local7)) + "]]>");
send(_local6, "xtReq", _arg5, _local8);
} else {
if (_arg4 == XTMSG_TYPE_STR){
_local9 = (((((("%xt%" + _arg1) + "%") + _arg2) + "%") + _arg5) + "%");
_local10 = 0;
while (_local10 < _arg3.length) {
_local9 = (_local9 + (_arg3[_local10].toString() + "%"));
_local10++;
};
sendString(_local9);
} else {
if (_arg4 == XTMSG_TYPE_JSON){
_local11 = {};
_local11.x = _arg1;
_local11.c = _arg2;
_local11.r = _arg5;
_local11.p = _arg3;
_local12 = {};
_local12.t = "xt";
_local12.b = _local11;
_local13 = JSON.encode(_local12);
sendJson(_local13);
};
};
};
}
private function writeToSocket(_arg1:String):void{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeMultiByte(_arg1, "utf-8");
_local2.writeByte(0);
socketConnection.writeBytes(_local2);
socketConnection.flush();
}
public function sendObjectToGroup(_arg1:Object, _arg2:Array, _arg3:int):void{
var _local4:String;
var _local5:String;
var _local6:Object;
var _local7:String;
if (_arg3 == -1){
_arg3 = activeRoomId;
};
_local4 = "";
for (_local5 in _arg2) {
if (!isNaN(_arg2[_local5])){
_local4 = (_local4 + (_arg2[_local5] + ","));
};
};
_local4 = _local4.substr(0, (_local4.length - 1));
_arg1._$$_ = _local4;
_local6 = {t:"sys"};
_local7 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>");
send(_local6, "asObjG", _arg3, _local7);
}
public function getRandomKey():void{
send({t:"sys"}, "rndK", -1, "");
}
public function sendObject(_arg1:Object, _arg2:int=-1):void{
var _local3:String;
var _local4:Object;
if (_arg2 == -1){
_arg2 = activeRoomId;
};
_local3 = (("<![CDATA[" + ObjectSerializer.getInstance().serialize(_arg1)) + "]]>");
_local4 = {t:"sys"};
send(_local4, "asObj", _arg2, _local3);
}
private function jsonReceived(_arg1:String):void{
var _local2:Object;
var _local3:String;
var _local4:IMessageHandler;
_local2 = JSON.decode(_arg1);
_local3 = _local2["t"];
_local4 = messageHandlers[_local3];
if (_local4 != null){
_local4.handleMessage(_local2["b"], XTMSG_TYPE_JSON);
};
}
public function connect(_arg1:String, _arg2:int):void{
if (!connected){
initialize();
socketConnection.connect(_arg1, _arg2);
} else {
trace("*** ALREADY CONNECTED ***");
};
}
public function sendModeratorMessage(_arg1:String, _arg2:int, _arg3:int=-1):void{
var _local4:Object;
var _local5:String;
_local4 = {t:"sys"};
_local5 = (((((("<txt t='" + _arg2) + "' id='") + _arg3) + "'><![CDATA[") + Entities.encodeEntities(_arg1)) + "]]></txt>");
send(_local4, "modMsg", activeRoomId, _local5);
}
public function getBenchStartTime():int{
return (this.benchStartTime);
}
public function createRoom(_arg1:Object, _arg2:int=-1):void{
var _local3:Object;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:String;
if (_arg2 == -1){
_arg2 = activeRoomId;
};
_local3 = {t:"sys"};
_local4 = (_arg1.isGame) ? "1" : "0";
_local5 = "1";
_local6 = ((_arg1.maxUsers == null)) ? "0" : String(_arg1.maxUsers);
_local7 = ((_arg1.maxSpectators == null)) ? "0" : String(_arg1.maxSpectators);
if (((_arg1.isGame) && (!((_arg1.exitCurrent == null))))){
_local5 = (_arg1.exitCurrent) ? "1" : "0";
};
_local8 = (((((("<room tmp='1' gam='" + _local4) + "' spec='") + _local7) + "' exit='") + _local5) + "'>");
_local8 = (_local8 + (("<name><![CDATA[" + ((_arg1.name == null)) ? "" : _arg1.name) + "]]></name>"));
_local8 = (_local8 + (("<pwd><![CDATA[" + ((_arg1.password == null)) ? "" : _arg1.password) + "]]></pwd>"));
_local8 = (_local8 + (("<max>" + _local6) + "</max>"));
if (_arg1.uCount != null){
_local8 = (_local8 + (("<uCnt>" + (_arg1.uCount) ? "1" : "0") + "</uCnt>"));
};
if (_arg1.extension != null){
_local8 = (_local8 + ("<xt n='" + _arg1.extension.name));
_local8 = (_local8 + (("' s='" + _arg1.extension.script) + "' />"));
};
if (_arg1.vars == null){
_local8 = (_local8 + "<vars></vars>");
} else {
_local8 = (_local8 + "<vars>");
for (_local9 in _arg1.vars) {
_local8 = (_local8 + getXmlRoomVariable(_arg1.vars[_local9]));
};
_local8 = (_local8 + "</vars>");
};
_local8 = (_local8 + "</room>");
send(_local3, "createRoom", _arg2, _local8);
}
private function handleSocketConnection(_arg1:Event):void{
var _local2:Object;
var _local3:String;
_local2 = {t:"sys"};
_local3 = (((("<ver v='" + this.majVersion.toString()) + this.minVersion.toString()) + this.subVersion.toString()) + "' />");
send(_local2, "verChk", 0, _local3);
}
public function set isConnected(_arg1:Boolean):void{
this.connected = _arg1;
}
public function get isConnected():Boolean{
return (this.connected);
}
}
}//package it.gotoandplay.smartfoxserver
Section 62
//FlexSprite (mx.core.FlexSprite)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexSprite extends Sprite {
mx_internal static const VERSION:String = "2.0.1.0";
public function FlexSprite(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 63
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 64
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function set height(_arg1:Number):void;
function get scaleY():Number;
function move(_arg1:Number, _arg2:Number):void;
function get scaleX():Number;
function set mask(_arg1:DisplayObject):void;
function set scaleX(_arg1:Number):void;
function set name(_arg1:String):void;
function set scaleY(_arg1:Number):void;
function get visible():Boolean;
function get measuredWidth():Number;
function set visible(_arg1:Boolean):void;
function get alpha():Number;
function get height():Number;
function get width():Number;
function get parent():DisplayObjectContainer;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set y(_arg1:Number):void;
function get x():Number;
function get y():Number;
function set alpha(_arg1:Number):void;
}
}//package mx.core
Section 65
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function get repeaters():Array;
function get instanceIndices():Array;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 66
//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 67
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "2.0.1.0";
}
}//package mx.core
Section 68
//SpriteAsset (mx.core.SpriteAsset)
package mx.core {
public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject {
private var _measuredWidth:Number;
private var _measuredHeight:Number;
mx_internal static const VERSION:String = "2.0.1.0";
public function SpriteAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 69
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import flash.utils.*;
import mx.core.*;
public class NameUtil {
mx_internal static const VERSION:String = "2.0.1.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local3:DisplayObject;
var _local4:String;
var _local5:Array;
_local3 = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
var _local2:String;
var _local3:int;
var _local4:int;
if (!_arg1){
return (null);
};
_local2 = getQualifiedClassName(_arg1);
_local3 = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
_local4 = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 70
//OWLevelSender (RES.EDITOR.WINDOWS.OWLevelSender)
package RES.EDITOR.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import flash.utils.*;
import ENGINE.SMARTFOX.*;
public class OWLevelSender extends ODialog {
private var iDAlpha:Number;// = 0.025
private var iTimer:int;
public var iCancel:OButton;
private var iInfo:OIObject;
public static const stFailedConnect:int = 3;
public static const stLevelSent:int = 2;
public static const stInitGraphics:int = 0;
public static const stConnection:int = 1;
public function OWLevelSender(){
iDAlpha = 0.025;
super(WellMahjong2L.OWLevelSender, ODialog.iDefAnimators);
}
override public function Init():void{
super.Init();
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg2 == this.iCancel){
this.prActive = false;
this.prVisible = false;
return;
};
}
public function SplashInfoMessage():Boolean{
var _local1:Boolean;
_local1 = false;
if (this.iInfo.prAnimation){
return (false);
};
this.iInfo.alpha = (this.iInfo.alpha + this.iDAlpha);
if ((((this.iDAlpha > 0)) && ((this.iInfo.alpha >= 1)))){
this.iInfo.alpha = 1;
this.iDAlpha = (this.iDAlpha * -1);
};
if ((((this.iDAlpha < 0)) && ((this.iInfo.alpha <= 0)))){
this.iInfo.alpha = 0;
this.iDAlpha = (this.iDAlpha * -1);
_local1 = true;
};
return (_local1);
}
override public function Free():void{
iCancel.Free();
iCancel = null;
super.Free();
}
private function AddInfo(_arg1:OIObject, _arg2:Boolean=true):void{
if (this.iInfo){
this.removeChild(this.iInfo);
this.iInfo.Free();
this.iInfo = null;
};
if (_arg1){
this.iInfo = _arg1;
this.iInfo.Pos(((540 - this.iInfo.prWidth) / 2), (136 - (this.iInfo.prHeight / 2)));
if (_arg2){
this.iInfo.SetVisible(false);
this.iInfo.prVisible = true;
};
this.addChild(this.iInfo);
};
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
var _local3:Boolean;
super.OnEnterFrame(_arg1);
switch (this.iState){
case stInitGraphics:
if (!this.prAnimation){
this.State = stConnection;
};
break;
case stConnection:
_local2 = getTimer();
_local3 = this.SplashInfoMessage();
if (((((_local2 - this.iTimer) > 10000)) && (_local3))){
this.State = stFailedConnect;
};
if (((((_local2 - this.iTimer) > 2000)) && ((WellMahjong2L.iMP.State == OMultiplayer.stInZone)))){
this.State = stLevelSent;
};
break;
};
}
override public function set State(_arg1:int):void{
super.State = _arg1;
switch (this.iState){
case stConnection:
this.iTimer = getTimer();
this.AddInfo(WellMahjong2S.ColorText(WellMahjong2L.OWSendLevelConnection), true);
iInfo.prX = (iInfo.prX + WellMahjong2L.OWSendLevelConnection[5]);
if (WellMahjong2L.iMP.State == OMultiplayer.stInZone){
this.State = stLevelSent;
} else {
WellMahjong2L.iMP.State = OMultiplayer.stNone;
WellMahjong2L.iMP.Init(WellMahjong2L.sDomain, WellMahjong2L.sServer, WellMahjong2L.sZone, WellMahjong2L.sXTName, WellMahjong2L.iGAME.prPlayerName);
};
break;
case stLevelSent:
this.AddInfo(WellMahjong2S.ColorText(WellMahjong2L.OWSendLevelSent), true);
if (WellMahjong2L.SendLevel != ""){
WellMahjong2L.iMP.Turn(["wrf", 1, 1, WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.SendLevel]);
};
break;
case stFailedConnect:
this.AddInfo(WellMahjong2S.ColorText(WellMahjong2L.OWSendLevelFailed), true);
break;
};
}
}
}//package RES.EDITOR.WINDOWS
Section 71
//OWReader (RES.EDITOR.WINDOWS.OWReader)
package RES.EDITOR.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import RES.EDITOR.*;
import RES.GAME.*;
public class OWReader extends OWindow {
public var strTiles:OIObject;
public var iWL:OButton;
public var iWR:OButton;
private var MCells:Array;
public var iCount:OCounter;
public var iBTest:OButton;
private var iField:SEdField;
public var iLayer:OCounter;
public var iBClose:OButton;
public var iResize:OButton;
public var strLayer:OIObject;
public var iBPublish:OButton;
public var iBClear:OButton;
private static const st_Resize:int = 0;
private static const st_Error:int = 2;
private static const st_Clear:int = 1;
public function OWReader(){
super(WellMahjong2L.OWReaderParam, ODialog.iDefAnimators);
}
private function showElements(_arg1:Boolean):void{
if (this.iField != null){
this.iField.prVisible = _arg1;
};
if (this.iResize != null){
this.iResize.prVisible = _arg1;
};
if (this.strLayer != null){
this.strLayer.prVisible = _arg1;
};
if (this.iBClear != null){
this.iBClear.prVisible = _arg1;
};
if (this.iBPublish != null){
if (_arg1 == true){
if (this.contains(this.iBPublish) == true){
this.removeChild(this.iBPublish);
};
this.iBPublish.Free();
this.iBPublish = null;
this.iBPublish = WellMahjong2S.MakeTextButton(WellMahjong2L.OWReaderParam[1]);
this.addChild(this.iBPublish);
this.iBPublish.alpha = 0;
};
this.iBPublish.prVisible = _arg1;
};
if (this.iWL != null){
this.iWL.prVisible = _arg1;
};
if (this.iLayer != null){
this.iLayer.prVisible = _arg1;
};
if (this.iWR != null){
this.iWR.prVisible = _arg1;
};
if (this.strTiles != null){
this.strTiles.prVisible = _arg1;
};
if (this.iCount != null){
this.iCount.prVisible = _arg1;
};
if (this.iBTest != null){
if (_arg1 == true){
if (this.contains(this.iBTest) == true){
this.removeChild(this.iBTest);
};
this.iBTest.Free();
this.iBTest = null;
this.iBTest = WellMahjong2S.MakeTextButton(WellMahjong2L.OWReaderParam[2]);
this.addChild(this.iBTest);
this.iBTest.alpha = 0;
};
this.iBTest.prVisible = _arg1;
};
if (this.iBClose != null){
this.iBClose.prVisible = _arg1;
};
}
override public function Init():void{
super.Init();
this.createField(null);
this.iLayer.prValue = 0;
this.iCount.prValue = 0;
}
override public function set prActive(_arg1:Boolean):void{
this.showElements(_arg1);
super.prActive = _arg1;
if ((((this.iState == st_Resize)) && ((_arg1 == true)))){
this.State = this.iState;
};
}
private function createField(_arg1:Array):void{
if (this.iField != null){
if (this.contains(this.iField) == true){
this.removeChild(this.iField);
};
this.iField.Free();
this.iField = null;
};
this.iField = new SEdField(WellMahjong2L.F_W, WellMahjong2L.F_H, WellMahjong2L.M_W, WellMahjong2L.M_H, _arg1);
this.addChild(this.iField);
this.setChildIndex(this.iField, 0);
this.centrField();
}
override public function OnPress(_arg1:Event, _arg2):void{
switch (_arg2){
case this.iBClear:
this.State = st_Clear;
break;
case this.iResize:
(this.parent as OWindow).OnPress(null, WellMahjong2L.miResize);
this.iState = st_Resize;
this.prActive = false;
break;
case this.iBPublish:
if (this.iCount.prValue == 0){
return;
};
WellMahjong2L.SendLevel = getLevel(this.iField.MFishki);
if (this.calcError() == true){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miPublish);
this.prActive = false;
} else {
this.State = st_Error;
return;
};
break;
case this.iWL:
if (this.iLayer.prValue > 0){
this.iLayer.prValue--;
this.iField.indexLayer = this.iLayer.prValue;
this.centrField();
};
break;
case this.iWR:
if (this.iLayer.prValue < (this.iField.layerCount - 1)){
this.iLayer.prValue++;
this.iField.indexLayer = this.iLayer.prValue;
this.centrField();
};
break;
case this.iBClose:
(this.parent as OWindow).OnPress(null, WellMahjong2L.miMenu);
this.prActive = false;
this.prVisible = false;
break;
case this.iBTest:
if (this.iCount.prValue == 0){
return;
};
this.prActive = false;
if (this.calcError() == true){
WellMahjong2L.TestLevel = getLevel(this.iField.MFishki);
(this.parent as OWindow).OnPress(null, WellMahjong2L.miTest);
} else {
this.State = st_Error;
return;
};
break;
};
}
override public function Free():void{
super.Free();
}
private function calcError():Boolean{
if (this.iCount.prValue == 0){
return (false);
};
if ((this.iCount.prValue - (Math.floor((this.iCount.prValue / 2)) * 2)) > 0){
return (false);
};
return (true);
}
private function centrField():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = this.iField.RealWidth;
_local2 = this.iField.RealHeight;
_local3 = (this.iField.dX * this.iLayer.prValue);
_local4 = (this.iField.dY * this.iLayer.prValue);
this.iField.prX = (((600 - _local1) / 2) + _local3);
this.iField.prY = (((600 - _local2) / 2) + _local4);
}
override public function set State(_arg1:int):void{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
this.iState = _arg1;
switch (this.iState){
case st_Resize:
WellMahjong2L.OWReaderParam[0][6] = ((WellMahjong2L.M_W.toString() + " x ") + WellMahjong2L.M_H.toString());
this.removeChild(this.iResize);
this.iResize.Free();
this.iResize = null;
this.iResize = WellMahjong2S.MakeTextButton(WellMahjong2L.OWReaderParam[0]);
this.addChild(this.iResize);
_local2 = this.iField.MFishki;
if ((((WellMahjong2L.M_W == _local2[0][0].length)) && ((WellMahjong2L.M_H == _local2[0].length)))){
return;
};
this.State = st_Clear;
break;
case st_Clear:
this.iLayer.prValue = 0;
this.iCount.prValue = 0;
this.createField(null);
break;
case st_Error:
(this.parent as OWindow).OnPress(null, WellMahjong2L.miNeChet);
this.prActive = false;
break;
};
}
private static function getLevel(_arg1:Array):String{
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:Array;
var _local16:Array;
_local2 = "";
_local3 = -1;
_local4 = -1;
_local5 = -1;
_local6 = -1;
_local7 = -1;
_local8 = -1;
_local11 = 0;
while (_local11 < _arg1.length) {
_local9 = 0;
while (_local9 < _arg1[0].length) {
_local10 = 0;
while (_local10 < _arg1[0][0].length) {
if (_arg1[_local11][_local9][_local10] == SEdCell.TYPE_NOR){
if (_local3 == -1){
_local3 = _local11;
};
if (_local7 == -1){
_local7 = _local9;
};
if (_local5 == -1){
_local5 = _local10;
};
if (_local11 < _local3){
_local3 = _local11;
};
if (_local11 > _local4){
_local4 = _local11;
};
if (_local9 < _local7){
_local7 = _local9;
};
if (_local9 > _local8){
_local8 = _local9;
};
if (_local10 < _local5){
_local5 = _local10;
};
if (_local10 > _local6){
_local6 = _local10;
};
};
_local10++;
};
_local9++;
};
_local11++;
};
if ((((((((_local5 == -1)) || ((_local6 == -1)))) || ((_local7 == -1)))) || ((_local8 == -1)))){
return ("");
};
_local12 = ((_local6 - _local5) + 2);
_local13 = ((_local8 - _local7) + 2);
_local14 = ((_local4 - _local3) + 1);
_local2 = (_local2 + SConvert.getStr(_local12));
_local2 = (_local2 + SConvert.getStr(_local13));
_local2 = (_local2 + SConvert.getStr(_local14));
_local15 = new Array();
_local11 = _local3;
while (_local11 <= _local4) {
_local9 = _local7;
while (_local9 <= _local8) {
_local16 = new Array();
_local10 = _local5;
while (_local10 <= _local6) {
if (_arg1[_local11][_local9][_local10] == SEdCell.TYPE_NOR){
_local16.push((_local10 - _local5));
};
_local10++;
};
if (_local16.length > 0){
_local15.push((_local11 - _local3), (_local9 - _local7), _local16.length);
_local10 = 0;
while (_local10 < _local16.length) {
_local15.push(_local16[_local10]);
_local10++;
};
};
_local9++;
};
_local11++;
};
_local9 = 0;
while (_local9 < _local15.length) {
_local2 = (_local2 + SConvert.getStr(_local15[_local9]));
_local9++;
};
return (_local2);
}
}
}//package RES.EDITOR.WINDOWS
Section 72
//OWResize (RES.EDITOR.WINDOWS.OWResize)
package RES.EDITOR.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
public class OWResize extends OWindow {
public var iWL:OButton;
public var iWR:OButton;
public var iHL:OButton;
public var iClose:OButton;
public var iHR:OButton;
public var iWidth:OCounter;
public var iHeight:OCounter;
public function OWResize(){
super(WellMahjong2L.OWResizeParam);
}
override public function Init():void{
super.Init();
this.iWidth.prValue = WellMahjong2L.M_W;
this.iHeight.prValue = WellMahjong2L.M_H;
this.PosCenter();
}
override public function OnPress(_arg1:Event, _arg2):void{
switch (_arg2){
case this.iClose:
WellMahjong2L.M_W = this.iWidth.prValue;
WellMahjong2L.M_H = this.iHeight.prValue;
this.prVisible = false;
break;
case this.iWL:
if (this.iWidth.prValue > 2){
this.iWidth.prValue = (this.iWidth.prValue - 2);
};
break;
case this.iWR:
if (this.iWidth.prValue <= (54 - 2)){
this.iWidth.prValue = (this.iWidth.prValue + 2);
};
break;
case this.iHL:
if (this.iHeight.prValue > 2){
this.iHeight.prValue = (this.iHeight.prValue - 2);
};
break;
case this.iHR:
if (this.iHeight.prValue <= (54 - 2)){
this.iHeight.prValue = (this.iHeight.prValue + 2);
};
break;
};
}
override public function Free():void{
this.iClose = null;
super.Free();
}
}
}//package RES.EDITOR.WINDOWS
Section 73
//SEdCell (RES.EDITOR.SEdCell)
package RES.EDITOR {
import ENGINE.DISPLAY.*;
import flash.display.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
public class SEdCell extends OIObject {
private var cellD:OBitmap;
private var L:Number;
private var cell:OBitmap;
private var cellL:OBitmap;
private var iLayer:int;
private var iCol:int;
private var iDrawL:int;// = -1
private var iDrawD:int;// = -1
private var iRow:int;
private var SHit:Sprite;
public static const DRAW_ALL:int = 2;
public static const DRAW_NONE:int = -1;
public static const TYPE_FON:int = -1;
public static const TYPE_NOR:int = 0;
public static const DRAW_0:int = 0;
public static const DRAW_1:int = 1;
private static var PcCellD_1:OBitmap;
private static var PcCellL_0:OBitmap;
private static var cL:Number = 0;
private static var Asp:Number = 0;
private static var PcCellD:OBitmap;
private static var PcCellL:OBitmap;
private static var PcCellL_1:OBitmap;
private static var cCell:OBitmap;
private static var PcCellD_0:OBitmap;
public function SEdCell(_arg1:Number, _arg2:int, _arg3:int, _arg4:int){
iDrawD = DRAW_NONE;
iDrawL = DRAW_NONE;
SHit = new Sprite();
this.L = _arg1;
this.iLayer = _arg2;
this.iRow = _arg3;
this.iCol = _arg4;
super(null);
}
public function showFishka(_arg1:Boolean):void{
this.visible = _arg1;
}
override public function Init():void{
redrawCache(this.L);
super.Init();
}
public function get Layer():int{
return (this.iLayer);
}
public function get flagDrawD():int{
return (this.iDrawD);
}
public function get flagDrawL():int{
return (this.iDrawL);
}
public function get Col():int{
return (this.iCol);
}
override public function Free():void{
if (this.cell != null){
if (this.contains(this.cell) == true){
this.removeChild(this.cell);
};
this.cell = null;
};
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.removeChild(this.cellL);
};
this.cellL = null;
};
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.removeChild(this.cellD);
};
this.cellD = null;
};
super.Free();
}
public function drawD(_arg1:int):void{
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.removeChild(this.cellD);
};
this.cellD = null;
};
switch (_arg1){
case DRAW_0:
this.cellD = PcCellD_0.Clone();
this.cellD.x = PcCellD_0.x;
this.cellD.y = PcCellD_0.y;
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
case DRAW_1:
this.cellD = PcCellD_1.Clone();
this.cellD.x = PcCellD_1.x;
this.cellD.y = PcCellD_1.y;
this.cellD.x = (this.cellD.x + ((this.L * OGlobal.Scale) / 2));
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
case DRAW_ALL:
this.cellD = PcCellD.Clone();
this.cellD.x = PcCellD.x;
this.cellD.y = PcCellD.y;
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
case DRAW_NONE:
this.iDrawD = _arg1;
return;
};
this.addChild(this.cellD);
this.iDrawD = _arg1;
}
public function get Row():int{
return (this.iRow);
}
public function drawL(_arg1:int):void{
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.removeChild(this.cellL);
};
this.cellL = null;
};
switch (_arg1){
case DRAW_0:
this.cellL = PcCellL_0.Clone();
this.cellL.x = PcCellL_0.x;
this.cellL.y = PcCellL_0.y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
break;
case DRAW_1:
this.cellL = PcCellL_1.Clone();
this.cellL.x = PcCellL_1.x;
this.cellL.y = PcCellL_1.y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
this.cellL.y = (this.cellL.y + (((this.L * WellMahjong2L.hL) * OGlobal.Scale) / 2));
break;
case DRAW_ALL:
this.cellL = PcCellL.Clone();
this.cellL.x = PcCellL.x;
this.cellL.y = PcCellL.y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
break;
case DRAW_NONE:
this.iDrawL = _arg1;
return;
};
this.addChild(this.cellL);
this.iDrawL = _arg1;
}
private function createHitAreaL():void{
if (this.SHit != null){
if (this.contains(this.SHit) == true){
this.removeChild(this.SHit);
};
};
this.SHit.graphics.clear();
this.SHit.graphics.beginFill(0);
this.SHit.graphics.drawRect(((this.L * WellMahjong2L.dLx) * OGlobal.Scale), ((this.L * WellMahjong2L.dLy) * OGlobal.Scale), ((this.L * OGlobal.Scale) / 2), (((this.L * WellMahjong2L.hL) * OGlobal.Scale) / 2));
this.SHit.graphics.endFill();
this.hitArea = this.SHit;
this.SHit.visible = false;
this.addChild(this.SHit);
}
private function createHitAreaAll():void{
if (this.SHit != null){
if (this.contains(this.SHit) == true){
this.removeChild(this.SHit);
};
};
this.SHit.graphics.clear();
this.SHit.graphics.beginFill(0);
this.SHit.graphics.drawRect(0, 0, (this.L * OGlobal.Scale), ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
this.SHit.graphics.endFill();
this.hitArea = this.SHit;
this.SHit.visible = false;
this.addChild(this.SHit);
}
override public function set State(_arg1:int):void{
this.iState = _arg1;
this.graphics.clear();
if (this.cell != null){
if (this.contains(this.cell) == true){
this.removeChild(this.cell);
};
};
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.removeChild(this.cellL);
};
this.cellL = null;
this.iDrawL = DRAW_NONE;
};
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.removeChild(this.cellD);
};
this.cellD = null;
this.iDrawD = DRAW_NONE;
};
switch (this.iState){
case TYPE_NOR:
this.cell = cCell.Clone();
this.cell.x = cCell.x;
this.cell.y = cCell.y;
this.addChild(this.cell);
this.drawD(DRAW_ALL);
this.drawL(DRAW_ALL);
this.createHitAreaAll();
break;
};
}
private static function redrawCache(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Sprite;
var _local8:Sprite;
var _local9:Sprite;
var _local10:Sprite;
if ((((cL == _arg1)) && ((Asp == OGlobal.Scale)))){
return;
};
cL = _arg1;
Asp = OGlobal.Scale;
_local3 = (cL * WellMahjong2L.dLx);
_local4 = (cL * WellMahjong2L.dLy);
_local2 = WellMahjong2L.cellFiltrP;
cCell = WellMahjong2S.Fishka([null, cL, (cL * WellMahjong2L.hL), WellMahjong2L.cellColor[0], _local2, 0, 0]);
_local2 = WellMahjong2L.cellDFiltrP;
_local5 = new Sprite();
_local5.graphics.beginFill(0);
_local5.graphics.moveTo(0, 0);
_local5.graphics.lineTo((cL * OGlobal.Scale), 0);
_local5.graphics.lineTo(((cL + _local3) * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local5.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local5.graphics.lineTo(0, 0);
_local5.graphics.endFill();
PcCellD = WellMahjong2S.MakeForm([null, (cL + _local3), _local4, WellMahjong2L.cellDColor[0], _local5, _local2, 0, 0]);
_local6 = new Sprite();
_local6.graphics.beginFill(0);
_local6.graphics.moveTo(0, 0);
_local6.graphics.lineTo(((cL * OGlobal.Scale) / 2), 0);
_local6.graphics.lineTo(((cL * OGlobal.Scale) / 2), (_local4 * OGlobal.Scale));
_local6.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local6.graphics.lineTo(0, 0);
_local6.graphics.endFill();
PcCellD_0 = WellMahjong2S.MakeForm([null, (cL / 2), _local4, WellMahjong2L.cellDColor[0], _local6, _local2, 0, 0]);
_local7 = new Sprite();
_local7.graphics.beginFill(0);
_local7.graphics.moveTo(0, 0);
_local7.graphics.lineTo(((cL * OGlobal.Scale) / 2), 0);
_local7.graphics.lineTo((((cL / 2) + _local3) * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local7.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local7.graphics.lineTo(0, 0);
_local7.graphics.endFill();
PcCellD_1 = WellMahjong2S.MakeForm([null, ((cL / 2) + _local3), _local4, WellMahjong2L.cellDColor[0], _local7, _local2, 0, 0]);
_local2 = WellMahjong2L.cellLFiltrP;
_local8 = new Sprite();
_local8.graphics.beginFill(0);
_local8.graphics.moveTo(0, 0);
_local8.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local8.graphics.lineTo((_local3 * OGlobal.Scale), ((_local4 + (cL * WellMahjong2L.hL)) * OGlobal.Scale));
_local8.graphics.lineTo(0, ((cL * WellMahjong2L.hL) * OGlobal.Scale));
_local8.graphics.lineTo(0, 0);
_local8.graphics.endFill();
PcCellL = WellMahjong2S.MakeForm([null, _local3, ((cL * WellMahjong2L.hL) + _local4), WellMahjong2L.cellLColor[0], _local8, _local2, 0, 0]);
_local9 = new Sprite();
_local9.graphics.beginFill(0);
_local9.graphics.moveTo(0, 0);
_local9.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local9.graphics.lineTo((_local3 * OGlobal.Scale), (((cL * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local9.graphics.lineTo(0, (((cL * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local9.graphics.lineTo(0, 0);
_local9.graphics.endFill();
PcCellL_0 = WellMahjong2S.MakeForm([null, _local3, ((cL * WellMahjong2L.hL) / 2), WellMahjong2L.cellLColor[0], _local9, _local2, 0, 0]);
_local10 = new Sprite();
_local10.graphics.beginFill(0);
_local10.graphics.moveTo(0, 0);
_local10.graphics.lineTo((_local3 * OGlobal.Scale), (_local4 * OGlobal.Scale));
_local10.graphics.lineTo((_local3 * OGlobal.Scale), ((_local4 + ((cL * WellMahjong2L.hL) / 2)) * OGlobal.Scale));
_local10.graphics.lineTo(0, (((cL * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local10.graphics.lineTo(0, 0);
_local10.graphics.endFill();
PcCellL_1 = WellMahjong2S.MakeForm([null, _local3, (((cL * WellMahjong2L.hL) / 2) + _local4), WellMahjong2L.cellLColor[0], _local10, _local2, 0, 0]);
}
}
}//package RES.EDITOR
Section 74
//SEdField (RES.EDITOR.SEdField)
package RES.EDITOR {
import ENGINE.DISPLAY.*;
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
import RES.EDITOR.WINDOWS.*;
public class SEdField extends OIObject {
private const cFragX:int = 5;
private const cFragY:int = 5;
public var dX:Number;
public var dY:Number;
private var MKoord:Array;
private var iSelect:OSprite;
private var selCol:int;// = -1
private var iWidth:Number;
private var iHeight:Number;
private var iL:Number;
private var MCells:Array;
private var selLayer:int;// = -1
private var selRow:int;// = -1
private var iGrid:OSprite;
private var mGrids:Array;
private var MF:Array;
private var activeLayer:int;// = 0
public static const stAdd:int = 0;
public static const stDelete:int = 1;
public function SEdField(_arg1:Number, _arg2:Number, _arg3:int, _arg4:int, _arg5:Array){
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Array;
var _local10:Array;
selLayer = -1;
selRow = -1;
selCol = -1;
activeLayer = 0;
this.iWidth = _arg1;
this.iHeight = _arg2;
this.MF = new Array();
if (_arg5 == null){
_local9 = new Array();
_local6 = 0;
while (_local6 < _arg4) {
_local10 = new Array();
_local7 = 0;
while (_local7 < _arg3) {
_local10.push(SEdCell.TYPE_FON);
_local7++;
};
_local9.push(_local10);
_local6++;
};
this.MF.push(_local9);
} else {
_local8 = 0;
while (_local8 < (_arg5.length + 1)) {
_local9 = new Array();
_local6 = 0;
while (_local6 < _arg5[0].length) {
_local10 = new Array();
_local7 = 0;
while (_local7 < _arg5[0][0].length) {
if (_local8 < _arg5.length){
_local10.push(_arg5[_local8][_local6][_local7]);
} else {
_local10.push(SEdCell.TYPE_FON);
};
_local7++;
};
_local9.push(_local10);
_local6++;
};
this.MF.push(_local9);
_local8++;
};
};
super(null);
}
private function reDrawGrid(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
_local3 = Math.floor((_arg1 / this.cFragX));
_local4 = Math.floor((_arg2 / this.cFragY));
this.drawFragGrid(_local3, _local4);
if (_arg1 < (this.MF[0][0].length - 1)){
if (Math.floor(((_arg1 + 1) / this.cFragX)) != _local3){
this.drawFragGrid((_local3 + 1), _local4);
};
};
if (_arg2 < (this.MF[0].length - 1)){
if (Math.floor(((_arg2 + 1) / this.cFragY)) != _local4){
this.drawFragGrid(_local3, (_local4 + 1));
};
};
if (_arg1 < (this.MF[0][0].length - 1)){
if (_arg2 < (this.MF[0].length - 1)){
if (((!((Math.floor(((_arg1 + 1) / this.cFragX)) == _local3))) && (!((Math.floor(((_arg2 + 1) / this.cFragY)) == _local4))))){
this.drawFragGrid((_local3 + 1), (_local4 + 1));
};
};
};
}
private function drawCellD(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Boolean;
_local8 = false;
_local9 = false;
_local4 = (_arg3 + 2);
if (_local4 < MF[0].length){
_local5 = (_arg2 - 1);
_local6 = _arg2;
_local7 = (_arg2 + 1);
if (_local5 < 0){
_local5 = -1;
};
if (_local7 >= MF[0][0].length){
_local7 = -1;
};
if (this.MF[_arg1][_local4][_local6] != SEdCell.TYPE_FON){
this.MCells[_arg1][_arg3][_arg2].drawD(SEdCell.DRAW_NONE);
return;
};
if (_local5 >= 0){
if (this.MF[_arg1][_local4][_local5] == SEdCell.TYPE_FON){
_local8 = true;
};
} else {
_local8 = true;
};
if (_local7 >= 0){
if (this.MF[_arg1][_local4][_local7] == SEdCell.TYPE_FON){
_local9 = true;
};
} else {
_local9 = true;
};
} else {
_local8 = true;
_local9 = true;
};
if ((((_local8 == true)) && ((_local9 == true)))){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SEdCell.DRAW_ALL){
this.MCells[_arg1][_arg3][_arg2].drawD(SEdCell.DRAW_ALL);
};
return;
};
if ((((_local8 == false)) && ((_local9 == false)))){
this.MCells[_arg1][_arg3][_arg2].drawD(SEdCell.DRAW_NONE);
};
if (_local8 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SEdCell.DRAW_0){
this.MCells[_arg1][_arg3][_arg2].drawD(SEdCell.DRAW_0);
};
};
if (_local9 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SEdCell.DRAW_1){
this.MCells[_arg1][_arg3][_arg2].drawD(SEdCell.DRAW_1);
};
};
}
public function get layerCount():int{
return (this.MF.length);
}
private function drawCellL(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Boolean;
_local8 = false;
_local9 = false;
_local4 = (_arg2 + 2);
if (_local4 < MF[0][0].length){
_local5 = (_arg3 - 1);
_local6 = _arg3;
_local7 = (_arg3 + 1);
if (_local5 < 0){
_local5 = -1;
};
if (_local7 >= MF[0].length){
_local7 = -1;
};
if (this.MF[_arg1][_local6][_local4] != SEdCell.TYPE_FON){
this.MCells[_arg1][_arg3][_arg2].drawL(SEdCell.DRAW_NONE);
return;
};
if (_local5 >= 0){
if (this.MF[_arg1][_local5][_local4] == SEdCell.TYPE_FON){
_local8 = true;
};
} else {
_local8 = true;
};
if (_local7 >= 0){
if (this.MF[_arg1][_local7][_local4] == SEdCell.TYPE_FON){
_local9 = true;
};
} else {
_local9 = true;
};
} else {
_local8 = true;
_local9 = true;
};
if ((((_local8 == true)) && ((_local9 == true)))){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SEdCell.DRAW_ALL){
this.MCells[_arg1][_arg3][_arg2].drawL(SEdCell.DRAW_ALL);
};
return;
};
if ((((_local8 == false)) && ((_local9 == false)))){
this.MCells[_arg1][_arg3][_arg2].drawL(SEdCell.DRAW_NONE);
};
if (_local8 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SEdCell.DRAW_0){
this.MCells[_arg1][_arg3][_arg2].drawL(SEdCell.DRAW_0);
};
};
if (_local9 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SEdCell.DRAW_1){
this.MCells[_arg1][_arg3][_arg2].drawL(SEdCell.DRAW_1);
};
};
}
public function get MFishki():Array{
return (this.MF);
}
private function deleteLayer():void{
this.MF.pop();
this.MKoord.pop();
this.MCells.pop();
}
override public function Free():void{
var _local1:int;
var _local2:int;
var _local3:int;
this.removeEventListener(MouseEvent.MOUSE_MOVE, this.onMouseMove);
this.removeEventListener(MouseEvent.MOUSE_MOVE, this.OnMouseDown);
if (this.MF != null){
_local1 = 0;
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] == SEdCell.TYPE_NOR){
if (this.MCells[_local1][_local2][_local3] != null){
if (this.contains(this.MCells[_local1][_local2][_local3]) == true){
this.removeChild(this.MCells[_local1][_local2][_local3]);
};
this.MCells[_local1][_local2][_local3].Free();
this.MCells[_local1][_local2][_local3] = null;
};
};
_local3++;
};
_local2++;
};
_local1++;
};
};
if (this.contains(this.iGrid) == true){
this.removeChild(this.iGrid);
};
if (this.contains(this.iSelect) == true){
this.removeChild(this.iSelect);
};
super.Free();
}
public function get RealHeight():int{
return ((this.dY + (((this.iL * WellMahjong2L.hL) * this.MF[0].length) / 2)));
}
public function get RealWidth():int{
return ((this.dX + ((this.iL * this.MF[0][0].length) / 2)));
}
private function drawGrid():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:Array;
var _local8:OSprite;
_local3 = ((this.iL * OGlobal.Scale) / 2);
_local4 = (((this.iL * WellMahjong2L.hL) * OGlobal.Scale) / 2);
_local5 = this.MF[0][0].length;
_local6 = this.MF[0].length;
this.iGrid.graphics.clear();
this.iGrid.graphics.beginFill(0, 0);
this.iGrid.graphics.drawRect(-(_local3), -(_local4), ((_local3 * _local5) + ((2 * _local3) * OGlobal.Scale)), ((_local4 * _local6) + ((2 * _local4) * OGlobal.Scale)));
this.iGrid.graphics.endFill();
this.mGrids = new Array();
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local7 = new Array();
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
_local8 = new OSprite();
_local7.push(_local8);
_local8.Pos(this.MKoord[0][_local1][_local2][0], this.MKoord[0][_local1][_local2][1]);
this.iGrid.addChild(_local8);
_local2 = (_local2 + this.cFragX);
};
this.mGrids.push(_local7);
_local1 = (_local1 + this.cFragY);
};
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
this.reDrawGrid(_local2, _local1);
_local2 = (_local2 + this.cFragX);
};
_local1 = (_local1 + this.cFragY);
};
}
private function onMouseMove(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = this.iGrid.mouseX;
_local3 = this.iGrid.mouseY;
if ((((_local2 < 0)) || ((_local3 < 0)))){
this.clearSelect();
return;
};
_local4 = this.activeLayer;
_local5 = ((2 * _local2) / (this.iL * OGlobal.Scale));
_local6 = ((2 * _local3) / ((this.iL * WellMahjong2L.hL) * OGlobal.Scale));
if ((((((((_local5 < 0)) || ((_local5 >= (this.MF[0][0].length - 1))))) || ((_local6 < 0)))) || ((_local6 >= (this.MF[0].length - 1))))){
this.clearSelect();
return;
};
if ((((((_local4 == this.selLayer)) && ((_local6 == this.selRow)))) && ((_local5 == this.selCol)))){
return;
};
if (this.liberty(_local4, _local5, _local6) == false){
this.clearSelect();
return;
};
this.calcSelect(_local5, _local6);
}
override public function Init():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Array;
var _local5:Array;
var _local6:SEdCell;
this.iL = calcL(this.MF.length, this.MF[0][0].length, this.MF[0].length, this.iWidth, this.iHeight);
this.dX = (this.iL * WellMahjong2L.dLx);
this.dY = (this.iL * WellMahjong2L.dLy);
this.MKoord = this.calcKoord(this.iL, this.MF[0][0].length, this.MF[0].length, this.MF.length);
this.MCells = new Array();
_local3 = 0;
while (_local3 < this.MF.length) {
_local4 = new Array();
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local5 = new Array();
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
if (this.MF[_local3][_local1][_local2] == SEdCell.TYPE_NOR){
_local6 = new SEdCell(this.iL, _local3, _local1, _local2);
this.addChild(_local6);
_local6.Pos(this.MKoord[_local3][_local1][_local2][0], this.MKoord[_local3][_local1][_local2][1]);
_local6.State = this.MF[_local3][_local1][_local2];
_local5.push(_local6);
} else {
_local5.push(null);
};
_local2++;
};
_local4.push(_local5);
_local1++;
};
this.MCells.push(_local4);
_local3++;
};
this.iGrid = new OSprite();
this.iSelect = new OSprite();
this.drawGrid();
this.addChild(this.iSelect);
this.addChild(this.iGrid);
this.calcGrid(this.activeLayer);
super.Init();
this.addEventListener(MouseEvent.MOUSE_MOVE, this.onMouseMove);
}
private function addLayer():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Array;
var _local7:Array;
_local4 = this.MF[0].length;
_local5 = this.MF[0][0].length;
_local6 = new Array();
_local1 = 0;
while (_local1 < _local4) {
_local7 = new Array();
_local2 = 0;
while (_local2 < _local5) {
_local7.push(SEdCell.TYPE_FON);
_local2++;
};
_local6.push(_local7);
_local1++;
};
this.MF.push(_local6);
_local3 = (this.MF.length - 1);
this.MKoord = calcKoord(this.iL, this.MF[0][0].length, this.MF[0].length, this.MF.length);
_local6 = new Array();
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local7 = new Array();
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
_local7.push(null);
_local2++;
};
_local6.push(_local7);
_local1++;
};
this.MCells.push(_local6);
}
public function sortFishki():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = this.activeLayer;
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] != SEdCell.TYPE_FON){
this.drawCellL(_local1, _local3, _local2);
this.drawCellD(_local1, _local3, _local2);
};
_local3++;
};
_local2++;
};
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] >= 0){
if (this.MCells[_local1][_local2][_local3].parent != null){
this.setChildIndex(this.MCells[_local1][_local2][_local3], (this.numChildren - 1));
};
};
_local3++;
};
_local2++;
};
_local1 = (this.activeLayer + 1);
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] == SEdCell.TYPE_NOR){
if (this.contains(this.MCells[_local1][_local2][_local3]) == true){
this.removeChild(this.MCells[_local1][_local2][_local3]);
};
};
_local3++;
};
_local2++;
};
_local1++;
};
}
private function calcGrid(_arg1:int):void{
this.iGrid.Pos((this.MKoord[_arg1][0][0][0] + this.dX), (this.MKoord[_arg1][0][0][1] + this.dY));
this.iSelect.Pos(this.iGrid.prX, this.iGrid.prY);
}
public function set indexLayer(_arg1:int):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Boolean;
this.setChildIndex(this.iGrid, (this.numChildren - 1));
this.setChildIndex(this.iSelect, (this.numChildren - 1));
if (_arg1 > this.activeLayer){
_local4 = _arg1;
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local4][_local2][_local3] == SEdCell.TYPE_NOR){
if (this.contains(this.MCells[_local4][_local2][_local3]) == false){
this.addChild(this.MCells[_local4][_local2][_local3]);
};
};
_local3++;
};
_local2++;
};
} else {
_local4 = this.activeLayer;
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local4][_local2][_local3] == SEdCell.TYPE_NOR){
if (this.contains(this.MCells[_local4][_local2][_local3]) == true){
this.removeChild(this.MCells[_local4][_local2][_local3]);
};
};
_local3++;
};
_local2++;
};
_local5 = false;
_local4 = _arg1;
while (_local4 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local4][_local2][_local3] != SEdCell.TYPE_FON){
_local5 = true;
};
_local3++;
};
_local2++;
};
_local4++;
};
if (_local5 == false){
this.deleteLayer();
};
};
this.activeLayer = _arg1;
this.calcGrid(this.activeLayer);
this.sortFishki();
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
this.reDrawGrid(_local3, _local2);
_local3 = (_local3 + this.cFragX);
};
_local2 = (_local2 + this.cFragY);
};
}
private function aSEdCell(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local5 = (_arg3 - 1);
_local6 = _arg3;
_local8 = (_arg2 - 1);
_local9 = _arg2;
if (_local5 < 0){
_local5 = 0;
};
if (_local8 < 0){
_local8 = 0;
};
if (_local6 > (this.MF[0].length - 1)){
_local6 = (this.MF[0].length - 1);
};
if (_local9 > (this.MF[0][0].length - 1)){
_local9 = (this.MF[0][0].length - 1);
};
_local4 = _local5;
while (_local4 <= _local6) {
_local7 = _local8;
while (_local7 <= _local9) {
if (this.MF[_arg1][_local4][_local7] == SEdCell.TYPE_NOR){
return (true);
};
_local7++;
};
_local4++;
};
return (false);
}
private function calcFishkiCount():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local4 = 0;
_local3 = 0;
while (_local3 < this.MF.length) {
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
if (this.MF[_local3][_local1][_local2] == SEdCell.TYPE_NOR){
_local4++;
};
_local2++;
};
_local1++;
};
_local3++;
};
if ((this.parent is OWReader)){
(this.parent as OWReader).iCount.prValue = _local4;
};
}
private function clearSelect():void{
this.iSelect.graphics.clear();
this.selLayer = -1;
this.selRow = -1;
this.selCol = -1;
}
private function calcSelect(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
_local3 = _arg2;
_local4 = (_local3 + 1);
_local5 = _arg1;
_local6 = (_local5 + 1);
if ((((_local4 >= this.MF[0].length)) || ((_local6 >= this.MF[0][0].length)))){
this.selLayer = -1;
this.selRow = -1;
this.selCol = -1;
this.iSelect.graphics.clear();
return;
};
this.iSelect.graphics.clear();
this.iSelect.graphics.lineStyle(0, 0xFF);
this.iSelect.graphics.beginFill(0xFFFF00);
_local9 = ((this.iL * OGlobal.Scale) / 2);
_local10 = (((this.iL * WellMahjong2L.hL) * OGlobal.Scale) / 2);
_local7 = _local3;
while (_local7 <= _local4) {
_local8 = _local5;
while (_local8 <= _local6) {
this.iSelect.graphics.drawRect((_local8 * _local9), (_local7 * _local10), _local9, _local10);
_local8++;
};
_local7++;
};
this.iSelect.graphics.endFill();
this.selLayer = this.activeLayer;
this.selRow = _arg2;
this.selCol = _arg1;
}
override public function OnMouseDown(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:SEdCell;
if ((_arg1.target is SEdCell)){
_local4 = (_arg1.target as SEdCell).Layer;
_local3 = (_arg1.target as SEdCell).Row;
_local2 = (_arg1.target as SEdCell).Col;
if (_local4 != this.activeLayer){
return;
};
this.MF[_local4][_local3][_local2] = SEdCell.TYPE_FON;
if (this.MCells[_local4][_local3][_local2] != null){
if (this.contains(this.MCells[_local4][_local3][_local2]) == true){
this.removeChild(this.MCells[_local4][_local3][_local2]);
};
this.MCells[_local4][_local3][_local2].Free();
this.MCells[_local4][_local3][_local2] = null;
};
this.sortFishki();
this.calcFishkiCount();
this.reDrawGrid(_local2, _local3);
this.calcSelect(_local2, _local3);
if (_local4 == (this.MF.length - 2)){
_local5 = _local4;
while (_local5 < this.MF.length) {
_local6 = 0;
while (_local6 < this.MF[0].length) {
_local7 = 0;
while (_local7 < this.MF[0][0].length) {
if (this.MF[_local5][_local6][_local7] != SEdCell.TYPE_FON){
return;
};
_local7++;
};
_local6++;
};
_local5++;
};
this.deleteLayer();
};
return;
};
if (this.selLayer > -1){
_local2 = this.selCol;
_local3 = this.selRow;
_local4 = this.selLayer;
this.clearSelect();
_local8 = new SEdCell(this.iL, _local4, _local3, _local2);
this.addChild(_local8);
_local8.Pos(this.MKoord[_local4][_local3][_local2][0], this.MKoord[_local4][_local3][_local2][1]);
this.MF[_local4][_local3][_local2] = SEdCell.TYPE_NOR;
_local8.State = this.MF[_local4][_local3][_local2];
this.MCells[_local4][_local3][_local2] = _local8;
this.sortFishki();
this.calcFishkiCount();
this.reDrawGrid(_local2, _local3);
if (_local4 == (this.MF.length - 1)){
this.addLayer();
};
};
}
private function drawFragGrid(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Number;
var _local11:Number;
_local3 = this.activeLayer;
_local4 = (_arg1 * this.cFragX);
_local5 = ((_local4 + this.cFragX) - 1);
_local6 = (_arg2 * this.cFragY);
_local7 = ((_local6 + this.cFragY) - 1);
if (_local7 >= this.MF[0].length){
_local7 = (this.MF[0].length - 1);
};
if (_local5 >= this.MF[0][0].length){
_local5 = (this.MF[0][0].length - 1);
};
_local10 = ((this.iL * OGlobal.Scale) / 2);
_local11 = (((this.iL * WellMahjong2L.hL) * OGlobal.Scale) / 2);
this.mGrids[_arg2][_arg1].graphics.clear();
this.mGrids[_arg2][_arg1].graphics.lineStyle(0, 0xFF);
this.mGrids[_arg2][_arg1].graphics.beginFill(0, 0);
_local8 = _local6;
while (_local8 <= _local7) {
_local9 = _local4;
while (_local9 <= _local5) {
if (this.MF[_local3][_local8][_local9] == SEdCell.TYPE_NOR){
} else {
if (_local9 > 0){
//unresolved if
} else {
if (_local8 > 0){
//unresolved if
} else {
if ((((_local9 > 0)) && ((_local8 > 0)))){
//unresolved if
} else {
this.mGrids[_arg2][_arg1].graphics.drawRect(((_local9 - _local4) * _local10), ((_local8 - _local6) * _local11), _local10, _local11);
};
};
};
};
_local9++;
};
_local8++;
};
this.mGrids[_arg2][_arg1].graphics.endFill();
}
private function calcKoord(_arg1:Number, _arg2:int, _arg3:int, _arg4:int):Array{
var _local5:Array;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Array;
var _local12:Array;
_local5 = new Array();
_local8 = 0;
while (_local8 < _arg4) {
_local11 = new Array();
_local6 = 0;
while (_local6 < _arg3) {
_local12 = new Array();
_local7 = 0;
while (_local7 < _arg2) {
_local9 = (((_arg1 * _local7) / 2) - (_local8 * this.dX));
_local10 = ((((_arg1 * WellMahjong2L.hL) * _local6) / 2) - (_local8 * this.dY));
_local12.push([_local9, _local10]);
_local7++;
};
_local11.push(_local12);
_local6++;
};
_local5.push(_local11);
_local8++;
};
return (_local5);
}
private function liberty(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local5 = (_arg3 - 1);
_local6 = (_arg3 + 1);
_local8 = (_arg2 - 1);
_local9 = (_arg2 + 1);
if (_local5 < 0){
_local5 = 0;
};
if (_local8 < 0){
_local8 = 0;
};
_local4 = _local5;
while (_local4 <= _local6) {
_local7 = _local8;
while (_local7 <= _local9) {
if (this.MF[_arg1][_local4][_local7] == SEdCell.TYPE_NOR){
return (false);
};
_local7++;
};
_local4++;
};
return (true);
}
private static function calcL(_arg1:int, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number):Number{
var _local6:Number;
var _local7:Number;
_local7 = (_arg5 / ((_arg1 * WellMahjong2L.dLy) + ((_arg3 * WellMahjong2L.hL) / 2)));
_local6 = (_arg4 / ((_arg1 * WellMahjong2L.dLx) + (_arg2 / 2)));
if (_local7 < _local6){
return (_local7);
};
return (_local6);
}
}
}//package RES.EDITOR
Section 75
//SCell (RES.GAME.SCell)
package RES.GAME {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
public class SCell extends OIObject {
private var CacheCellL0:Array;
private var CacheCellL1:Array;
private var L:Number;
private var iCol:int;
private var iLayer:int;
private var iDrawL:int;// = -1
private var iDrawD:int;// = -1
private var iRow:int;
private var CacheCellD:Array;
private var CacheCellL:Array;
private var figr:Sprite;
private var CacheSelCell:Array;
private var cellD:OBitmap;
private var cellL:OBitmap;
private var iID:int;
private var CacheCellD1:Array;
private var signMove:int;// = 1
private var CacheCellD0:Array;
private var cell:OBitmap;
private var mode:int;
private var CacheCell:Array;
public static const DRAW_ALL:int = 2;
public static const TYPE_FON:int = -2;
private static const stNormal:int = 0;
public static const TYPE_NOR:int = -1;
private static const stSelect:int = 3;
private static const stDeselect:int = 4;
private static const stHide:int = 1;
private static const stInvisible:int = 2;
public static const DRAW_NONE:int = -1;
public static const DRAW_0:int = 0;
public static const DRAW_1:int = 1;
private static var CacheOCellD:Array;
private static var CacheOCellL_0:Array;
private static var CachePCellD:Array;
private static var CachePCellL:Array;
private static var cLP:Number = 0;
private static var cLO:Number = 0;
private static var CacheOCell:Array;
private static var CachePCell:Array;
private static var AspO:Number = 0;
private static var AspP:Number = 0;
private static var CachePCellD_0:Array;
private static var CachePCellD_1:Array;
private static var CachePCellL_0:Array;
private static var CachePSelCell:Array;
private static var CachePCellL_1:Array;
private static var CacheOCellD_0:Array;
private static var CacheOCellD_1:Array;
private static var CacheOSelCell:Array;
private static var CacheOCellL:Array;
private static var CacheOCellL_1:Array;
public function SCell(_arg1:int, _arg2:Number, _arg3:int, _arg4:int, _arg5:int, _arg6:int){
iDrawD = DRAW_NONE;
iDrawL = DRAW_NONE;
signMove = 1;
this.mode = _arg1;
this.L = _arg2;
this.iLayer = _arg3;
this.iRow = _arg4;
this.iCol = _arg5;
this.iID = _arg6;
switch (this.mode){
case WellMahjong2L.MODE_PLAYER:
CacheCell = CachePCell;
CacheSelCell = CachePSelCell;
CacheCellD = CachePCellD;
CacheCellD0 = CachePCellD_0;
CacheCellD1 = CachePCellD_1;
CacheCellL = CachePCellL;
CacheCellL0 = CachePCellL_0;
CacheCellL1 = CachePCellL_1;
break;
case WellMahjong2L.MODE_OPPONENT:
CacheCell = CacheOCell;
CacheSelCell = CacheOSelCell;
CacheCellD = CacheOCellD;
CacheCellD0 = CacheOCellD_0;
CacheCellD1 = CacheOCellD_1;
CacheCellL = CacheOCellL;
CacheCellL0 = CacheOCellL_0;
CacheCellL1 = CacheOCellL_1;
break;
};
super(null);
}
private function createHitArea():void{
var _local1:Sprite;
_local1 = new Sprite();
_local1.graphics.beginFill(0);
_local1.graphics.drawRect(0, 0, (this.L * OGlobal.Scale), ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
_local1.graphics.endFill();
this.hitArea = _local1;
_local1.visible = false;
this.addChild(_local1);
}
private function sortBitmap():void{
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.setChildIndex(this.cellL, (this.numChildren - 1));
};
};
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.setChildIndex(this.cellD, (this.numChildren - 1));
};
};
if (this.figr != null){
if (this.contains(this.figr) == true){
this.setChildIndex(this.figr, (this.numChildren - 1));
};
};
}
override public function Free():void{
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
if (this.cell != null){
if (this.contains(this.cell) == true){
this.removeChild(this.cell);
};
this.cell = null;
};
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.removeChild(this.cellL);
};
this.cellL = null;
};
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.removeChild(this.cellD);
};
this.cellD = null;
};
super.Free();
}
public function moveHide(_arg1:Boolean):void{
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.OnMouseDown);
if (_arg1 == true){
this.signMove = 1;
} else {
this.signMove = -1;
};
this.State = stHide;
}
public function useHand():void{
if (this.mode == WellMahjong2L.MODE_PLAYER){
this.buttonMode = true;
this.focusRect = null;
this.useHandCursor;
};
}
private function onEnterFrame(_arg1:Event):void{
this.prX = (this.prX + ((WellMahjong2L.dXHide * this.L) * this.signMove));
this.alpha = (this.alpha - WellMahjong2L.tHide);
if (this.alpha <= 0){
this.State = stInvisible;
};
}
override public function set State(_arg1:int):void{
this.iState = _arg1;
switch (this.iState){
case stHide:
this.buttonMode = false;
this.addEventListener(Event.ENTER_FRAME, this.onEnterFrame);
break;
case stInvisible:
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
if ((this.parent is SField)){
(this.parent as SField).deleteFishka(this.iLayer, this.iCol, this.iRow);
};
break;
case stSelect:
if (this.cell != null){
if (this.contains(this.cell) == true){
this.removeChild(this.cell);
};
this.cell = null;
};
this.cell = this.CacheSelCell[this.iLayer].Clone();
this.cell.x = this.CacheSelCell[this.iLayer].x;
this.cell.y = this.CacheSelCell[this.iLayer].y;
this.addChild(this.cell);
this.sortBitmap();
break;
case stDeselect:
if (this.cell != null){
if (this.contains(this.cell) == true){
this.removeChild(this.cell);
};
this.cell = null;
};
this.cell = this.CacheCell[this.iLayer].Clone();
this.cell.x = this.CacheCell[this.iLayer].x;
this.cell.y = this.CacheCell[this.iLayer].y;
this.addChild(this.cell);
this.sortBitmap();
break;
};
}
public function select(_arg1:Boolean):void{
if (_arg1 == true){
this.State = stSelect;
} else {
this.State = stDeselect;
};
}
public function showFishka(_arg1:Boolean):void{
this.cell.visible = _arg1;
if (this.figr != null){
this.figr.visible = _arg1;
};
}
override public function Init():void{
var _local1:Number;
this.cell = this.CacheCell[this.iLayer].Clone();
this.cell.x = this.CacheCell[this.iLayer].x;
this.cell.y = this.CacheCell[this.iLayer].y;
this.addChild(this.cell);
if (this.mode == WellMahjong2L.MODE_PLAYER){
this.figr = new (WellMahjong2L.FIGURES[this.iID]);
_local1 = ((this.L * OGlobal.Scale) / this.figr.width);
this.figr.width = (this.figr.width * _local1);
this.figr.height = (this.figr.height * _local1);
this.addChild(this.figr);
};
this.createHitArea();
this.iState = stNormal;
super.Init();
if (this.mode == WellMahjong2L.MODE_OPPONENT){
this.removeEventListener(MouseEvent.MOUSE_DOWN, this.OnMouseDown);
};
}
public function get flagDrawD():int{
return (this.iDrawD);
}
public function get flagDrawL():int{
return (this.iDrawL);
}
public function drawD(_arg1:int):void{
if (this.cellD != null){
if (this.contains(this.cellD) == true){
this.removeChild(this.cellD);
};
this.cellD = null;
};
switch (_arg1){
case DRAW_0:
this.cellD = this.CacheCellD0[this.iLayer].Clone();
this.cellD.x = this.CacheCellD0[this.iLayer].x;
this.cellD.y = this.CacheCellD0[this.iLayer].y;
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
case DRAW_1:
this.cellD = this.CacheCellD1[this.iLayer].Clone();
this.cellD.x = this.CacheCellD1[this.iLayer].x;
this.cellD.y = this.CacheCellD1[this.iLayer].y;
this.cellD.x = (this.cellD.x + ((this.L * OGlobal.Scale) / 2));
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
case DRAW_ALL:
this.cellD = this.CacheCellD[this.iLayer].Clone();
this.cellD.x = this.CacheCellD[this.iLayer].x;
this.cellD.y = this.CacheCellD[this.iLayer].y;
this.cellD.y = (this.cellD.y + ((this.L * WellMahjong2L.hL) * OGlobal.Scale));
break;
};
this.addChild(this.cellD);
this.iDrawD = _arg1;
}
public function drawL(_arg1:int):void{
if (this.cellL != null){
if (this.contains(this.cellL) == true){
this.removeChild(this.cellL);
};
this.cellL = null;
};
switch (_arg1){
case DRAW_0:
this.cellL = this.CacheCellL0[this.iLayer].Clone();
this.cellL.x = this.CacheCellL0[this.iLayer].x;
this.cellL.y = this.CacheCellL0[this.iLayer].y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
break;
case DRAW_1:
this.cellL = this.CacheCellL1[this.iLayer].Clone();
this.cellL.x = this.CacheCellL1[this.iLayer].x;
this.cellL.y = this.CacheCellL1[this.iLayer].y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
this.cellL.y = (this.cellL.y + (((this.L * WellMahjong2L.hL) * OGlobal.Scale) / 2));
break;
case DRAW_ALL:
this.cellL = this.CacheCellL[this.iLayer].Clone();
this.cellL.x = this.CacheCellL[this.iLayer].x;
this.cellL.y = this.CacheCellL[this.iLayer].y;
this.cellL.x = (this.cellL.x + (this.L * OGlobal.Scale));
break;
};
this.addChild(this.cellL);
this.iDrawL = _arg1;
}
override public function OnMouseDown(_arg1:MouseEvent):void{
if ((this.parent is SField)){
(this.parent as SField).clickFishka(this.iLayer, this.iCol, this.iRow);
};
super.OnMouseDown(_arg1);
}
public static function redrawCache(_arg1:Number, _arg2:int, _arg3:int):void{
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local12:int;
var _local13:OBitmap;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Sprite;
var _local21:Sprite;
var _local22:Sprite;
var _local23:Sprite;
var _local24:Sprite;
var _local25:Sprite;
switch (_arg2){
case WellMahjong2L.MODE_PLAYER:
CachePCell = new Array();
CachePSelCell = new Array();
CachePCellD = new Array();
CachePCellD_0 = new Array();
CachePCellD_1 = new Array();
CachePCellL = new Array();
CachePCellL_0 = new Array();
CachePCellL_1 = new Array();
_local4 = CachePCell;
_local5 = CachePSelCell;
_local9 = CachePCellD;
_local10 = CachePCellD_0;
_local11 = CachePCellD_1;
_local6 = CachePCellL;
_local7 = CachePCellL_0;
_local8 = CachePCellL_1;
_local14 = WellMahjong2L.cellFiltrP;
_local16 = WellMahjong2L.cellDFiltrP;
_local15 = WellMahjong2L.cellLFiltrP;
break;
case WellMahjong2L.MODE_OPPONENT:
CacheOCell = new Array();
CacheOSelCell = new Array();
CacheOCellD = new Array();
CacheOCellD_0 = new Array();
CacheOCellD_1 = new Array();
CacheOCellL = new Array();
CacheOCellL_0 = new Array();
CacheOCellL_1 = new Array();
_local4 = CacheOCell;
_local5 = CacheOSelCell;
_local9 = CacheOCellD;
_local10 = CacheOCellD_0;
_local11 = CacheOCellD_1;
_local6 = CacheOCellL;
_local7 = CacheOCellL_0;
_local8 = CacheOCellL_1;
_local14 = WellMahjong2L.cellFiltrO;
_local16 = WellMahjong2L.cellDFiltrO;
_local15 = WellMahjong2L.cellLFiltrO;
break;
};
_local18 = (_arg1 * WellMahjong2L.dLx);
_local19 = (_arg1 * WellMahjong2L.dLy);
_local12 = 0;
while (_local12 < _arg3) {
_local13 = WellMahjong2S.Fishka([null, _arg1, (_arg1 * WellMahjong2L.hL), WellMahjong2L.cellColor[_local12], _local14, 0, 0]);
_local4.push(_local13);
_local13 = WellMahjong2S.Fishka([null, _arg1, (_arg1 * WellMahjong2L.hL), WellMahjong2L.selColor[_local12], _local14, 0, 0]);
_local5.push(_local13);
_local20 = new Sprite();
_local20.graphics.beginFill(0);
_local20.graphics.moveTo(0, 0);
_local20.graphics.lineTo((_arg1 * OGlobal.Scale), 0);
_local20.graphics.lineTo(((_arg1 + _local18) * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local20.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local20.graphics.lineTo(0, 0);
_local20.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, (_arg1 + _local18), _local19, WellMahjong2L.cellDColor[_local12], _local20, _local16, 0, 0]);
_local9.push(_local13);
_local21 = new Sprite();
_local21.graphics.beginFill(0);
_local21.graphics.moveTo(0, 0);
_local21.graphics.lineTo(((_arg1 * OGlobal.Scale) / 2), 0);
_local21.graphics.lineTo(((_arg1 * OGlobal.Scale) / 2), (_local19 * OGlobal.Scale));
_local21.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local21.graphics.lineTo(0, 0);
_local21.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, (_arg1 / 2), _local19, WellMahjong2L.cellDColor[_local12], _local21, _local16, 0, 0]);
_local10.push(_local13);
_local22 = new Sprite();
_local22.graphics.beginFill(0);
_local22.graphics.moveTo(0, 0);
_local22.graphics.lineTo(((_arg1 * OGlobal.Scale) / 2), 0);
_local22.graphics.lineTo((((_arg1 / 2) + _local18) * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local22.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local22.graphics.lineTo(0, 0);
_local22.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, ((_arg1 / 2) + _local18), _local19, WellMahjong2L.cellDColor[_local12], _local22, _local16, 0, 0]);
_local11.push(_local13);
_local23 = new Sprite();
_local23.graphics.beginFill(0);
_local23.graphics.moveTo(0, 0);
_local23.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local23.graphics.lineTo((_local18 * OGlobal.Scale), ((_local19 + (_arg1 * WellMahjong2L.hL)) * OGlobal.Scale));
_local23.graphics.lineTo(0, ((_arg1 * WellMahjong2L.hL) * OGlobal.Scale));
_local23.graphics.lineTo(0, 0);
_local23.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, _local18, ((_arg1 * WellMahjong2L.hL) + _local19), WellMahjong2L.cellLColor[_local12], _local23, _local15, 0, 0]);
_local6.push(_local13);
_local24 = new Sprite();
_local24.graphics.beginFill(0);
_local24.graphics.moveTo(0, 0);
_local24.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local24.graphics.lineTo((_local18 * OGlobal.Scale), (((_arg1 * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local24.graphics.lineTo(0, (((_arg1 * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local24.graphics.lineTo(0, 0);
_local24.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, _local18, ((_arg1 * WellMahjong2L.hL) / 2), WellMahjong2L.cellLColor[_local12], _local24, _local15, 0, 0]);
_local7.push(_local13);
_local25 = new Sprite();
_local25.graphics.beginFill(0);
_local25.graphics.moveTo(0, 0);
_local25.graphics.lineTo((_local18 * OGlobal.Scale), (_local19 * OGlobal.Scale));
_local25.graphics.lineTo((_local18 * OGlobal.Scale), ((_local19 + ((_arg1 * WellMahjong2L.hL) / 2)) * OGlobal.Scale));
_local25.graphics.lineTo(0, (((_arg1 * WellMahjong2L.hL) * OGlobal.Scale) / 2));
_local25.graphics.lineTo(0, 0);
_local25.graphics.endFill();
_local13 = WellMahjong2S.MakeForm([null, _local18, (((_arg1 * WellMahjong2L.hL) / 2) + _local19), WellMahjong2L.cellLColor[_local12], _local25, _local15, 0, 0]);
_local8.push(_local13);
_local12++;
};
}
}
}//package RES.GAME
Section 76
//SConvert (RES.GAME.SConvert)
package RES.GAME {
public class SConvert {
private static var RecC:Array = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U"];
public static function LevelsToArray(_arg1:Array):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:Array;
var _local16:Array;
_local2 = new Array();
_local6 = _arg1[0][0];
_local7 = _arg1[0][1];
_local8 = (_arg1.length - 1);
_local13 = _arg1[1][0][1][0];
_local14 = _arg1[1][0][0];
_local5 = 1;
while (_local5 <= _local8) {
_local9 = _arg1[_local5].length;
_local3 = 0;
while (_local3 < _local9) {
_local10 = _arg1[_local5][_local3][0];
if (_local10 < _local14){
_local14 = _local10;
};
_local11 = _arg1[_local5][_local3][1].length;
_local4 = 0;
while (_local4 < _local11) {
if (_arg1[_local5][_local3][1][_local4] < _local13){
_local13 = _arg1[_local5][_local3][1][_local4];
};
_local4++;
};
_local3++;
};
_local5++;
};
_local5 = 0;
while (_local5 < _local8) {
_local15 = new Array();
_local3 = 0;
while (_local3 < _local7) {
_local16 = new Array();
_local4 = 0;
while (_local4 < _local6) {
_local16.push(SCell.TYPE_FON);
_local4++;
};
_local15.push(_local16);
_local3++;
};
_local2.push(_local15);
_local5++;
};
_local5 = 1;
while (_local5 <= _local8) {
_local9 = _arg1[_local5].length;
_local3 = 0;
while (_local3 < _local9) {
_local10 = (_arg1[_local5][_local3][0] - _local14);
_local11 = _arg1[_local5][_local3][1].length;
_local4 = 0;
while (_local4 < _local11) {
_local12 = (_arg1[_local5][_local3][1][_local4] - _local14);
_local2[(_local5 - 1)][_local10][_local12] = SCell.TYPE_NOR;
_local4++;
};
_local3++;
};
_local5++;
};
return (_local2);
}
public static function calcTime(_arg1:int):String{
var _local2:int;
var _local3:String;
var _local4:int;
var _local5:int;
_local2 = Math.floor((_arg1 / 10));
_local4 = Math.floor((_local2 / 50));
_local5 = (_local2 - (_local4 * 50));
if (_local2 > (50 * 50)){
_local3 = (getStr(50) + getStr(50));
} else {
_local3 = (getStr(_local4) + getStr(_local5));
};
return (_local3);
}
public static function calcIntTime(_arg1:String):int{
var _local2:int;
_local2 = ((getNumber(_arg1.charAt(0)) * 50) + getNumber(_arg1.charAt(1)));
return ((_local2 * 10));
}
public static function createLevel(_arg1:String):Array{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:Array;
var _local12:Array;
_local5 = new Array();
_local9 = 0;
_local10 = _arg1.split(",");
if (_local10.length >= 2){
_arg1 = _local10[1];
};
_local6 = SConvert.getNumber(_arg1.charAt(0));
_local7 = SConvert.getNumber(_arg1.charAt(1));
_local8 = SConvert.getNumber(_arg1.charAt(2));
_local4 = 0;
while (_local4 < _local8) {
_local11 = new Array();
_local2 = 0;
while (_local2 < _local7) {
_local12 = new Array();
_local3 = 0;
while (_local3 < _local6) {
_local12.push(SCell.TYPE_FON);
_local3++;
};
_local11.push(_local12);
_local2++;
};
_local5.push(_local11);
_local4++;
};
_local9 = 3;
while (_local9 < _arg1.length) {
_local8 = SConvert.getNumber(_arg1.charAt(_local9));
_local9++;
_local7 = SConvert.getNumber(_arg1.charAt(_local9));
_local9++;
_local6 = SConvert.getNumber(_arg1.charAt(_local9));
_local9++;
_local2 = 0;
while (_local2 < _local6) {
_local3 = SConvert.getNumber(_arg1.charAt(_local9));
_local9++;
_local5[_local8][_local7][_local3] = SCell.TYPE_NOR;
_local2++;
};
--_local9;
_local9++;
};
return (_local5);
}
public static function getNameLevel(_arg1:String):String{
var _local2:Array;
_local2 = _arg1.split(",");
if (_local2.length >= 2){
return (_local2[0]);
};
return ("Player");
}
public static function getStr(_arg1:int):String{
if (_arg1 >= 0){
return (RecC[_arg1]);
};
switch (_arg1){
case -1:
return ("V");
case -2:
return ("W");
case -3:
return ("X");
case -4:
return ("Y");
case -5:
return ("Z");
};
return (null);
}
public static function LevelsToArrayEditor(_arg1:Array, _arg2:int, _arg3:int):Array{
var _local4:Array;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:Array;
var _local18:Array;
_local4 = new Array();
_local8 = _arg1[0][0];
_local9 = _arg1[0][1];
_local10 = (_arg1.length - 1);
_local15 = _arg1[1][0][1][0];
_local16 = _arg1[1][0][0];
_local7 = 1;
while (_local7 <= _local10) {
_local11 = _arg1[_local7].length;
_local5 = 0;
while (_local5 < _local11) {
_local12 = _arg1[_local7][_local5][0];
if (_local12 < _local16){
_local16 = _local12;
};
_local13 = _arg1[_local7][_local5][1].length;
_local6 = 0;
while (_local6 < _local13) {
if (_arg1[_local7][_local5][1][_local6] < _local15){
_local15 = _arg1[_local7][_local5][1][_local6];
};
_local6++;
};
_local5++;
};
_local7++;
};
_local7 = 0;
while (_local7 < _local10) {
_local17 = new Array();
_local5 = 0;
while (_local5 < (_local9 + (_arg3 * 2))) {
_local18 = new Array();
_local6 = 0;
while (_local6 < (_local8 + (_arg2 * 2))) {
_local18.push(SCell.TYPE_FON);
_local6++;
};
_local17.push(_local18);
_local5++;
};
_local4.push(_local17);
_local7++;
};
_local7 = 1;
while (_local7 <= _local10) {
_local11 = _arg1[_local7].length;
_local5 = 0;
while (_local5 < _local11) {
_local12 = (_arg1[_local7][_local5][0] - _local16);
_local13 = _arg1[_local7][_local5][1].length;
_local6 = 0;
while (_local6 < _local13) {
_local14 = (_arg1[_local7][_local5][1][_local6] - _local16);
_local4[(_local7 - 1)][(_local12 + _arg3)][(_local14 + _arg2)] = SCell.TYPE_NOR;
_local6++;
};
_local5++;
};
_local7++;
};
return (_local4);
}
public static function IntToStr(_arg1:int):String{
return (getStr(_arg1));
}
public static function getNumber(_arg1:String):int{
var _local2:int;
switch (_arg1){
case "V":
_local2 = -1;
break;
case "W":
_local2 = -2;
break;
case "X":
_local2 = -3;
break;
case "Y":
_local2 = -4;
break;
case "Z":
_local2 = -5;
break;
case "0":
_local2 = 0;
break;
case "1":
_local2 = 1;
break;
case "2":
_local2 = 2;
break;
case "3":
_local2 = 3;
break;
case "4":
_local2 = 4;
break;
case "5":
_local2 = 5;
break;
case "6":
_local2 = 6;
break;
case "7":
_local2 = 7;
break;
case "8":
_local2 = 8;
break;
case "9":
_local2 = 9;
break;
case "a":
_local2 = 10;
break;
case "b":
_local2 = 11;
break;
case "c":
_local2 = 12;
break;
case "d":
_local2 = 13;
break;
case "e":
_local2 = 14;
break;
case "f":
_local2 = 15;
break;
case "g":
_local2 = 16;
break;
case "h":
_local2 = 17;
break;
case "i":
_local2 = 18;
break;
case "j":
_local2 = 19;
break;
case "k":
_local2 = 20;
break;
case "l":
_local2 = 21;
break;
case "m":
_local2 = 22;
break;
case "n":
_local2 = 23;
break;
case "o":
_local2 = 24;
break;
case "p":
_local2 = 25;
break;
case "q":
_local2 = 26;
break;
case "r":
_local2 = 27;
break;
case "s":
_local2 = 28;
break;
case "t":
_local2 = 29;
break;
case "u":
_local2 = 30;
break;
case "v":
_local2 = 31;
break;
case "w":
_local2 = 32;
break;
case "x":
_local2 = 33;
break;
case "y":
_local2 = 34;
break;
case "z":
_local2 = 35;
break;
case "A":
_local2 = 36;
break;
case "B":
_local2 = 37;
break;
case "C":
_local2 = 38;
break;
case "D":
_local2 = 39;
break;
case "E":
_local2 = 40;
break;
case "F":
_local2 = 41;
break;
case "G":
_local2 = 42;
break;
case "H":
_local2 = 43;
break;
case "I":
_local2 = 44;
break;
case "J":
_local2 = 45;
break;
case "K":
_local2 = 46;
break;
case "L":
_local2 = 47;
break;
case "M":
_local2 = 48;
break;
case "N":
_local2 = 49;
break;
case "O":
_local2 = 50;
break;
case "P":
_local2 = 51;
break;
case "Q":
_local2 = 52;
break;
case "R":
_local2 = 53;
break;
case "S":
_local2 = 54;
break;
case "T":
_local2 = 55;
break;
case "U":
_local2 = 56;
break;
};
return (_local2);
}
}
}//package RES.GAME
Section 77
//SField (RES.GAME.SField)
package RES.GAME {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.geom.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
import flash.utils.*;
import RES.WINDOWS.*;
import RES.OBJECTS.*;
public class SField extends OIObject {
private var HintZ1:int;
private var HintZ2:int;
private var MKoord:Array;
private var iDelScore:Array;
private var iWidth:Number;
private var iHeight:Number;
private var iL:Number;
private var MCells:Array;
private var sign_blick:int;
private var iPause:Boolean;
private var c_blick:int;
private var selX:int;
private var selZ:int;
private var selY:int;
private var sRec:String;
private var iTimerR:int;
private var iRazbor:Boolean;
private var iTimerNoMoves:int;
private var iTimerScore:int;
private var MF:Array;
private var mode:int;
private var iScore:int;
private var HintX1:int;
private var HintX2:int;
private var playHint:Boolean;
private var HintY1:int;
private var HintY2:int;
private var iHods:Array;
private static const stNoMovedComp:int = 4;
private static const stHint:int = 1;
private static const stPauseNoMoves:int = 2;
private static const stNoMoved:int = 3;
private static const stPlay:int = 0;
private static var iGroup:Array;
private static var iOnes:Array;
public function SField(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Array, _arg5:int, _arg6:Boolean){
this.mode = _arg1;
this.iWidth = _arg2;
this.iHeight = _arg3;
this.MF = _arg4;
this.iScore = _arg5;
this.iTimerScore = getTimer();
this.iPause = false;
this.playHint = false;
this.iRazbor = _arg6;
super(null);
}
public function startHint():void{
var _local1:Array;
var _local2:int;
_local1 = this.getSokr();
if (this.mode == WellMahjong2L.MODE_PLAYER){
if (this.playHint == true){
stopHint();
};
if (_local1.length == 0){
return;
};
_local2 = Math.floor((Math.random() * _local1.length));
if (_local2 >= _local1.length){
_local2 = (_local1.length - 1);
};
this.HintX1 = _local1[_local2][0][1];
this.HintY1 = _local1[_local2][0][2];
this.HintZ1 = _local1[_local2][0][0];
this.HintX2 = _local1[_local2][1][1];
this.HintY2 = _local1[_local2][1][2];
this.HintZ2 = _local1[_local2][1][0];
this.playHint = true;
this.c_blick = 0;
this.sign_blick = -1;
this.addEventListener(Event.ENTER_FRAME, this.onEnterFrameHint);
this.getRec(-1, -1, -1);
};
this.iState = stHint;
this.calcScore();
this.iState = stPlay;
}
private function calcSize():Rectangle{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Boolean;
var _local9:Rectangle;
_local8 = false;
_local1 = 0;
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] >= 0){
if (_local8 == false){
_local4 = this.MKoord[_local1][_local2][_local3][0];
_local5 = this.MKoord[_local1][_local2][_local3][1];
_local6 = this.MKoord[_local1][_local2][_local3][0];
_local7 = this.MKoord[_local1][_local2][_local3][1];
_local8 = true;
};
if (this.MKoord[_local1][_local2][_local3][0] < _local4){
_local4 = this.MKoord[_local1][_local2][_local3][0];
};
if (this.MKoord[_local1][_local2][_local3][1] < _local5){
_local5 = this.MKoord[_local1][_local2][_local3][1];
};
if (this.MKoord[_local1][_local2][_local3][0] > _local6){
_local6 = this.MKoord[_local1][_local2][_local3][0];
};
if (this.MKoord[_local1][_local2][_local3][1] > _local7){
_local7 = this.MKoord[_local1][_local2][_local3][1];
};
};
_local3++;
};
_local2++;
};
_local1++;
};
_local6 = (_local6 + (this.iL + (this.iL * WellMahjong2L.dLx)));
_local7 = (_local7 + ((this.iL * WellMahjong2L.hL) + (this.iL * WellMahjong2L.dLy)));
_local9 = new Rectangle();
_local9.left = _local4;
_local9.right = _local6;
_local9.top = _local5;
_local9.bottom = _local7;
return (_local9);
}
public function koordCell(_arg1:int, _arg2:int, _arg3:int):Point{
return (new Point(this.MKoord[_arg1][_arg3][_arg2][0], this.MKoord[_arg1][_arg3][_arg2][1]));
}
public function get Hods():Array{
return (this.iHods);
}
private function drawCellD(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Boolean;
_local8 = false;
_local9 = false;
_local4 = (_arg3 + 2);
if (_local4 < MF[0].length){
_local5 = (_arg2 - 1);
_local6 = _arg2;
_local7 = (_arg2 + 1);
if (_local5 < 0){
_local5 = -1;
};
if (_local7 >= MF[0][0].length){
_local7 = -1;
};
if (this.MF[_arg1][_local4][_local6] != SCell.TYPE_FON){
return;
};
if (_local5 >= 0){
if (this.MF[_arg1][_local4][_local5] == SCell.TYPE_FON){
_local8 = true;
};
} else {
_local8 = true;
};
if (_local7 >= 0){
if (this.MF[_arg1][_local4][_local7] == SCell.TYPE_FON){
_local9 = true;
};
} else {
_local9 = true;
};
} else {
_local8 = true;
_local9 = true;
};
if ((((_local8 == true)) && ((_local9 == true)))){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SCell.DRAW_ALL){
this.MCells[_arg1][_arg3][_arg2].drawD(SCell.DRAW_ALL);
};
return;
};
if (_local8 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SCell.DRAW_0){
this.MCells[_arg1][_arg3][_arg2].drawD(SCell.DRAW_0);
};
};
if (_local9 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawD != SCell.DRAW_1){
this.MCells[_arg1][_arg3][_arg2].drawD(SCell.DRAW_1);
};
};
}
private function drawCellL(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Boolean;
_local8 = false;
_local9 = false;
_local4 = (_arg2 + 2);
if (_local4 < MF[0][0].length){
_local5 = (_arg3 - 1);
_local6 = _arg3;
_local7 = (_arg3 + 1);
if (_local5 < 0){
_local5 = -1;
};
if (_local7 >= MF[0].length){
_local7 = -1;
};
if (this.MF[_arg1][_local6][_local4] != SCell.TYPE_FON){
return;
};
if (_local5 >= 0){
if (this.MF[_arg1][_local5][_local4] == SCell.TYPE_FON){
_local8 = true;
};
} else {
_local8 = true;
};
if (_local7 >= 0){
if (this.MF[_arg1][_local7][_local4] == SCell.TYPE_FON){
_local9 = true;
};
} else {
_local9 = true;
};
} else {
_local8 = true;
_local9 = true;
};
if ((((_local8 == true)) && ((_local9 == true)))){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SCell.DRAW_ALL){
this.MCells[_arg1][_arg3][_arg2].drawL(SCell.DRAW_ALL);
};
return;
};
if (_local8 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SCell.DRAW_0){
this.MCells[_arg1][_arg3][_arg2].drawL(SCell.DRAW_0);
};
};
if (_local9 == true){
if (this.MCells[_arg1][_arg3][_arg2].flagDrawL != SCell.DRAW_1){
this.MCells[_arg1][_arg3][_arg2].drawL(SCell.DRAW_1);
};
};
}
public function get Rec():String{
return (this.sRec);
}
private function onEnterFrameNotMoves(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Boolean;
var _local9:Array;
var _local10:OBitmap;
var _local11:Boolean;
switch (this.iState){
case stPauseNoMoves:
if (this.iTimerNoMoves < WellMahjong2L.timePauseNoMoves){
this.iTimerNoMoves++;
return;
};
this.iTimerNoMoves = 0;
if ((this.parent is OWGame)){
(this.parent as OWGame).notMoved();
};
if ((this.parent is OOpponentField)){
(this.parent as OOpponentField).notMoved();
};
this.iState = stNoMoved;
break;
case stNoMoved:
if (this.iTimerNoMoves < WellMahjong2L.timeNoMoves){
this.iTimerNoMoves++;
break;
} else {
this.iTimerNoMoves = 0;
};
_local9 = new Array();
_local2 = 0;
while (_local2 < this.MF.length) {
_local3 = 0;
while (_local3 < this.MF[0].length) {
_local4 = 0;
while (_local4 < this.MF[0][0].length) {
if (this.MF[_local2][_local3][_local4] >= 0){
if (this.liberty(_local2, _local4, _local3) == true){
_local9.push([_local2, _local4, _local3]);
};
};
_local4++;
};
_local3++;
};
_local2++;
};
if (_local9.length > 0){
_local4 = Math.floor((Math.random() * _local9.length));
if (_local4 >= _local9.length){
_local4 = (_local9.length - 1);
};
_local5 = _local9[_local4][0];
_local6 = _local9[_local4][1];
_local7 = _local9[_local4][2];
(this.MCells[_local5][_local7][_local6] as SCell).drawD(SCell.DRAW_ALL);
(this.MCells[_local5][_local7][_local6] as SCell).drawL(SCell.DRAW_ALL);
_local8 = this.vectorR(_local5, _local6, _local7);
this.setChildIndex(this.MCells[_local5][_local7][_local6], (this.numChildren - 1));
this.MCells[_local5][_local7][_local6].moveHide(_local8);
this.MF[_local5][_local7][_local6] = SCell.TYPE_FON;
this.drawStoron();
if (this.mode == WellMahjong2L.MODE_PLAYER){
if (this.iDelScore == null){
this.iDelScore = new Array();
};
_local10 = WellMahjong2S.Text([null, WellMahjong2L.szDelScore, WellMahjong2L.clDelScore, -(WellMahjong2L.delScoreNoMv).toString(), (WellMahjong2L.delScoreX - this.prX), (WellMahjong2L.delScoreY - this.prY)]);
this.addChild(_local10);
this.iDelScore.push(_local10);
};
this.calcScore();
} else {
if ((this.parent is OWGame)){
(this.parent as OWGame).noMoviesComplete();
};
if ((this.parent is OOpponentField)){
(this.parent as OOpponentField).noMoviesComplete();
};
this.iState = stNoMovedComp;
};
break;
case stNoMovedComp:
if (this.iDelScore == null){
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameNotMoves);
} else {
_local11 = false;
_local3 = 0;
while (_local3 < this.iDelScore.length) {
if (this.iDelScore[_local3] != null){
_local11 = true;
};
_local3++;
};
if (_local11 == false){
this.iDelScore = null;
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameNotMoves);
};
};
break;
};
if (this.mode == WellMahjong2L.MODE_PLAYER){
if (this.iDelScore != null){
_local3 = 0;
while (_local3 < this.iDelScore.length) {
if (this.iDelScore[_local3] != null){
if (this.iDelScore[_local3].alpha <= 0){
if (this.contains(this.iDelScore[_local3]) == true){
this.removeChild(this.iDelScore[_local3]);
};
this.iDelScore[_local3] = null;
} else {
this.iDelScore[_local3].alpha = (this.iDelScore[_local3].alpha - WellMahjong2L.delAlphaScore);
this.iDelScore[_local3].prY = (this.iDelScore[_local3].prY - WellMahjong2L.delScoredY);
};
};
_local3++;
};
};
};
}
override public function Free():void{
if (this.playHint == true){
this.stopHint();
};
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameNotMoves);
super.Free();
}
private function parsSork(_arg1:int, _arg2:int):Boolean{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (_arg1 == _arg2){
return (true);
};
_local5 = 0;
while (_local5 < SField.iGroup.length) {
_local3 = false;
_local4 = 0;
while (_local4 < SField.iGroup[_local5].length) {
if ((((_arg1 == SField.iGroup[_local5][_local4])) || ((_arg2 == SField.iGroup[_local5][_local4])))){
//unresolved if
_local3 = true;
} else {
if ((((_arg1 == SField.iGroup[_local5][_local4])) || ((_arg2 == SField.iGroup[_local5][_local4])))){
return (true);
};
};
_local4++;
};
if (_local3 == true){
return (false);
};
_local5++;
};
return (false);
}
private function useHand():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local3 = 0;
while (_local3 < this.MF.length) {
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
if (this.MF[_local3][_local1][_local2] >= 0){
if (this.liberty(_local3, _local2, _local1) == true){
this.MCells[_local3][_local1][_local2].useHand();
};
};
_local2++;
};
_local1++;
};
_local3++;
};
}
public function startPause(_arg1:Boolean):void{
if (this.iPause == _arg1){
return;
};
this.iPause = _arg1;
if (_arg1 == true){
this.iTimerScore = (getTimer() - this.iTimerScore);
this.iTimerR = (getTimer() - this.iTimerR);
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
} else {
this.iTimerScore = (getTimer() - this.iTimerScore);
this.iTimerR = (getTimer() - this.iTimerR);
this.addEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
};
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - this.iTimerScore) >= WellMahjong2L.timeScore){
this.iTimerScore = _local2;
this.calcScore();
if (this.iScore <= 0){
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
this.iScore = 0;
if ((this.parent is OWGame)){
(this.parent as OWGame).Score = this.iScore;
(this.parent as OWGame).notTime();
};
if ((this.parent is OOpponentField)){
(this.parent as OOpponentField).Score = this.iScore;
(this.parent as OOpponentField).notTime();
};
};
};
}
private function levelComplete():Boolean{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 0;
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[_local1].length) {
_local3 = 0;
while (_local3 < this.MF[_local1][_local2].length) {
if (this.MF[_local1][_local2][_local3] != SCell.TYPE_FON){
return (false);
};
_local3++;
};
_local2++;
};
_local1++;
};
return (true);
}
public function stopGame():void{
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameHint);
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
}
public function UseExternalNoTime():void{
this.iScore = WellMahjong2L.delScore;
this.calcScore();
}
private function calcSokrField():void{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:Array;
var _local17:Array;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:int;
var _local23:int;
_local1 = new Array();
_local15 = 0;
this.iHods = new Array();
_local5 = false;
while (_local5 == false) {
_local16 = this.getSokr();
_local6 = false;
if (_local16.length > 0){
switch (this.mode){
case WellMahjong2L.MODE_PLAYER:
_local4 = WellMahjong2L.RandP.RandOnInterval(0, (_local16.length - 1));
break;
case WellMahjong2L.MODE_OPPONENT:
_local4 = WellMahjong2L.RandO.RandOnInterval(0, (_local16.length - 1));
break;
};
_local7 = _local16[_local4][0][0];
_local8 = _local16[_local4][0][1];
_local9 = _local16[_local4][0][2];
_local10 = _local16[_local4][1][0];
_local11 = _local16[_local4][1][1];
_local12 = _local16[_local4][1][2];
this.iHods.push([_local7, _local8, _local9, this.MF[_local7][_local9][_local8]]);
this.iHods.push([_local10, _local11, _local12, this.MF[_local10][_local12][_local11]]);
this.MF[_local7][_local9][_local8] = SCell.TYPE_FON;
this.MF[_local10][_local12][_local11] = SCell.TYPE_FON;
_local19 = 0;
_local2 = 0;
while (_local2 < this.MF.length) {
_local3 = 0;
while (_local3 < this.MF[0].length) {
_local4 = 0;
while (_local4 < this.MF[0][0].length) {
if (this.MF[_local2][_local3][_local4] >= 0){
_local19++;
};
_local4++;
};
_local3++;
};
_local2++;
};
if (_local19 == 0){
_local5 = true;
};
} else {
if (this.shufle() == false){
break;
};
};
};
_local3 = 0;
while (_local3 < this.iHods.length) {
_local7 = this.iHods[_local3][0];
_local8 = this.iHods[_local3][1];
_local9 = this.iHods[_local3][2];
_local13 = this.iHods[_local3][3];
this.MF[_local7][_local9][_local8] = _local13;
_local3++;
};
if (this.iRazbor == true){
_local19 = 0;
_local2 = 0;
while (_local2 < this.MF.length) {
_local3 = 0;
while (_local3 < this.MF[0].length) {
_local4 = 0;
while (_local4 < this.MF[0][0].length) {
if (this.MF[_local2][_local3][_local4] >= 0){
_local19++;
};
_local4++;
};
_local3++;
};
_local2++;
};
_local20 = Math.round((_local19 / WellMahjong2L.verRazbor));
_local19 = 0;
_local2 = 0;
while (_local2 < (this.MF.length - 2)) {
_local3 = 0;
while (_local3 < this.MF[0].length) {
_local4 = 0;
while (_local4 < this.MF[0][0].length) {
if (this.MF[_local2][_local3][_local4] >= 0){
_local19++;
};
_local4++;
};
_local3++;
};
_local2++;
};
if (_local20 == 0){
_local20 = 1;
};
if (_local19 > 2){
while (_local20 > 0) {
switch (this.mode){
case WellMahjong2L.MODE_PLAYER:
_local21 = WellMahjong2L.RandP.RandOnInterval(1, _local19);
_local22 = WellMahjong2L.RandP.RandOnInterval(1, _local19);
break;
case WellMahjong2L.MODE_OPPONENT:
_local21 = WellMahjong2L.RandO.RandOnInterval(1, _local19);
_local22 = WellMahjong2L.RandO.RandOnInterval(1, _local19);
break;
};
if (_local22 == _local21){
_local22++;
};
if (_local22 > _local19){
_local22 = 1;
};
_local23 = 0;
_local2 = 0;
while (_local2 < (this.MF.length - 2)) {
_local3 = 0;
while (_local3 < this.MF[0].length) {
_local4 = 0;
while (_local4 < this.MF[0][0].length) {
if (this.MF[_local2][_local3][_local4] >= 0){
_local23++;
if (_local21 == _local23){
_local7 = _local2;
_local8 = _local4;
_local9 = _local3;
};
if (_local22 == _local23){
_local10 = _local2;
_local11 = _local4;
_local12 = _local3;
};
};
_local4++;
};
_local3++;
};
_local2++;
};
_local18 = this.MF[_local7][_local9][_local8];
this.MF[_local7][_local9][_local8] = this.MF[_local10][_local12][_local11];
this.MF[_local10][_local12][_local11] = _local18;
_local20--;
};
};
};
if (this.getSokr().length == 0){
this.shufle();
};
}
override public function Init():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:SCell;
var _local5:Rectangle;
var _local6:Array;
var _local7:Array;
this.iL = calcL(this.MF, this.iWidth, this.iHeight);
SCell.redrawCache(this.iL, this.mode, this.MF.length);
this.MKoord = calcKoord(this.iL, this.MF[0][0].length, this.MF[0].length, this.MF.length);
this.iHods = new Array();
this.generateID();
this.MCells = new Array();
_local3 = 0;
while (_local3 < this.MF.length) {
_local6 = new Array();
_local1 = 0;
while (_local1 < this.MF[0].length) {
_local7 = new Array();
_local2 = 0;
while (_local2 < this.MF[0][0].length) {
if (this.MF[_local3][_local1][_local2] == SCell.TYPE_FON){
_local7.push(null);
} else {
_local4 = new SCell(this.mode, this.iL, _local3, _local1, _local2, this.MF[_local3][_local1][_local2]);
this.addChild(_local4);
_local4.Pos(this.MKoord[_local3][_local1][_local2][0], this.MKoord[_local3][_local1][_local2][1]);
_local7.push(_local4);
};
_local2++;
};
_local6.push(_local7);
_local1++;
};
this.MCells.push(_local6);
_local3++;
};
this.drawStoron();
_local5 = this.calcSize();
this.prX = ((this.iWidth / 2) - ((_local5.right - _local5.left) / 2));
this.prY = ((this.iHeight / 2) - ((_local5.bottom - _local5.top) / 2));
this.prX = (this.prX - _local5.left);
this.prY = (this.prY - _local5.top);
this.selZ = -1;
this.selX = -1;
this.selY = -1;
this.sRec = "";
this.iTimerR = getTimer();
this.useHand();
this.iState = stPlay;
super.Init();
if (this.getSokr().length == 0){
this.noMoves();
};
}
public function get TimerRec():int{
return (this.iTimerR);
}
private function calcScore():void{
var _local1:int;
_local1 = 0;
if (this.iScore == 0){
return;
};
switch (this.iState){
case stPlay:
_local1 = WellMahjong2L.delScore;
break;
case stNoMoved:
_local1 = WellMahjong2L.delScoreNoMv;
break;
case stNoMovedComp:
_local1 = 0;
break;
case stHint:
_local1 = WellMahjong2L.delScoreHint;
break;
};
this.iScore = (this.iScore - _local1);
if (this.iScore < 0){
this.iScore = 0;
};
if ((this.parent is OWGame)){
(this.parent as OWGame).Score = this.iScore;
};
if ((this.parent is OOpponentField)){
(this.parent as OOpponentField).Score = this.iScore;
};
}
private function getRec(_arg1:int, _arg2:int, _arg3:int):void{
this.sRec = (this.sRec + (((SConvert.calcTime((getTimer() - this.iTimerR)) + SConvert.getStr(_arg1)) + SConvert.getStr(_arg2)) + SConvert.getStr(_arg3)));
this.iTimerR = getTimer();
}
public function getSokr():Array{
var _local1:Array;
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local1 = new Array();
_local2 = new Array();
_local3 = 0;
while (_local3 < this.MF.length) {
_local4 = 0;
while (_local4 < this.MF[_local3].length) {
_local5 = 0;
while (_local5 < this.MF[_local3][_local4].length) {
if (this.MF[_local3][_local4][_local5] != SCell.TYPE_FON){
if (this.liberty(_local3, _local5, _local4) == true){
_local2.push([this.MF[_local3][_local4][_local5], _local3, _local5, _local4]);
};
};
_local5++;
};
_local4++;
};
_local3++;
};
_local4 = 0;
while (_local4 < _local2.length) {
_local5 = (_local4 + 1);
while (_local5 < _local2.length) {
if (this.parsSork(_local2[_local4][0], _local2[_local5][0]) == true){
_local1.push([[_local2[_local4][1], _local2[_local4][2], _local2[_local4][3]], [_local2[_local5][1], _local2[_local5][2], _local2[_local5][3]]]);
};
_local5++;
};
_local4++;
};
return (_local1);
}
public function clickFishka(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:Boolean;
var _local5:Array;
if (this.playHint == true){
stopHint();
};
if (this.liberty(_arg1, _arg2, _arg3) == false){
return;
};
this.getRec(_arg1, _arg2, _arg3);
if (this.selZ == -1){
this.MCells[_arg1][_arg3][_arg2].select(true);
this.selX = _arg2;
this.selY = _arg3;
this.selZ = _arg1;
if (this.mode == WellMahjong2L.MODE_PLAYER){
OSound.PlaySoundInd(0);
};
} else {
if ((((((_arg1 == this.selZ)) && ((_arg2 == this.selX)))) && ((_arg3 == this.selY)))){
this.MCells[_arg1][_arg3][_arg2].select(false);
this.selZ = -1;
this.selX = -1;
this.selY = -1;
if (this.mode == WellMahjong2L.MODE_PLAYER){
OSound.PlaySoundInd(1);
};
} else {
if (this.parsSork(this.MF[_arg1][_arg3][_arg2], this.MF[this.selZ][this.selY][this.selX]) == true){
if (this.mode == WellMahjong2L.MODE_PLAYER){
OSound.PlaySoundInd(2);
};
this.MCells[_arg1][_arg3][_arg2].select(false);
this.MCells[this.selZ][this.selY][this.selX].select(false);
(this.MCells[_arg1][_arg3][_arg2] as SCell).drawD(SCell.DRAW_ALL);
(this.MCells[_arg1][_arg3][_arg2] as SCell).drawL(SCell.DRAW_ALL);
(this.MCells[this.selZ][this.selY][this.selX] as SCell).drawD(SCell.DRAW_ALL);
(this.MCells[this.selZ][this.selY][this.selX] as SCell).drawL(SCell.DRAW_ALL);
_local4 = this.vectorR(_arg1, _arg2, _arg3);
this.setChildIndex(this.MCells[_arg1][_arg3][_arg2], (this.numChildren - 1));
this.MCells[_arg1][_arg3][_arg2].moveHide(_local4);
_local4 = this.vectorR(this.selZ, this.selX, this.selY);
this.setChildIndex(this.MCells[this.selZ][this.selY][this.selX], (this.numChildren - 1));
this.MCells[this.selZ][this.selY][this.selX].moveHide(_local4);
this.MF[_arg1][_arg3][_arg2] = SCell.TYPE_FON;
this.MF[this.selZ][this.selY][this.selX] = SCell.TYPE_FON;
this.selZ = -1;
this.selX = -1;
this.selY = -1;
this.useHand();
if (this.levelComplete() == true){
if ((this.parent is OWGame)){
(this.parent as OWGame).levelComplete();
};
if ((this.parent is OOpponentField)){
(this.parent as OOpponentField).levelComplete();
};
} else {
_local5 = this.getSokr();
if (_local5.length == 0){
this.noMoves();
};
};
this.drawStoron();
} else {
if (this.mode == WellMahjong2L.MODE_PLAYER){
OSound.PlaySoundInd(0);
};
this.MCells[this.selZ][this.selY][this.selX].select(false);
this.MCells[_arg1][_arg3][_arg2].select(true);
this.selZ = _arg1;
this.selX = _arg2;
this.selY = _arg3;
};
};
};
}
private function generateID():Boolean{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Boolean;
var _local12:int;
var _local13:Class;
_local7 = WellMahjong2L.ONES.length;
_local3 = 0;
while (_local3 < 3) {
_local4 = 0;
while (_local4 < _local7) {
_local12 = Math.floor((Math.random() * _local7));
_local13 = WellMahjong2L.ONES[_local12];
WellMahjong2L.ONES[_local12] = WellMahjong2L.ONES[_local4];
WellMahjong2L.ONES[_local4] = _local13;
_local4++;
};
_local3++;
};
_local3 = 0;
while (_local3 < 3) {
_local2 = 0;
while (_local2 < WellMahjong2L.GROUPS.length) {
_local7 = WellMahjong2L.GROUPS[_local2].length;
_local4 = 0;
while (_local4 < _local7) {
_local12 = Math.floor((Math.random() * _local7));
_local13 = WellMahjong2L.GROUPS[_local2][_local12];
WellMahjong2L.GROUPS[_local2][_local12] = WellMahjong2L.GROUPS[_local2][_local4];
WellMahjong2L.GROUPS[_local2][_local4] = _local13;
_local4++;
};
_local2++;
};
_local3++;
};
_local1 = 0;
_local2 = 0;
while (_local2 < this.MF.length) {
_local3 = 0;
while (_local3 < this.MF[_local2].length) {
_local4 = 0;
while (_local4 < this.MF[_local2][_local3].length) {
if (this.MF[_local2][_local3][_local4] != SCell.TYPE_FON){
_local1++;
};
_local4++;
};
_local3++;
};
_local2++;
};
SField.iGroup = SField.getGroupID();
SField.iOnes = SField.getOnesID();
_local5 = new Array();
_local6 = 0;
_local8 = 0;
_local9 = 0;
_local10 = 0;
_local11 = false;
while ((_local1 - _local5.length) > 0) {
if (_local11 == true){
_local5.push(SField.iGroup[_local9][_local8]);
_local5.push(SField.iGroup[_local9][(_local8 + 1)]);
_local9++;
if (_local9 > 1){
_local9 = 0;
_local8 = (_local8 + 2);
};
_local11 = false;
} else {
_local5.push(SField.iOnes[_local10]);
_local5.push(SField.iOnes[_local10]);
_local10++;
if (_local10 == (SField.iOnes.length / 2)){
_local11 = true;
};
};
if (_local8 >= SField.iGroup[0].length){
_local8 = 0;
};
if (_local10 >= SField.iOnes.length){
_local10 = 0;
_local11 = true;
};
};
_local2 = 0;
while (_local2 < 5) {
_local3 = 0;
while (_local3 < _local1) {
switch (this.mode){
case WellMahjong2L.MODE_PLAYER:
_local4 = WellMahjong2L.RandP.RandOnInterval(0, (_local1 - 1));
break;
case WellMahjong2L.MODE_OPPONENT:
_local4 = WellMahjong2L.RandO.RandOnInterval(0, (_local1 - 1));
break;
};
_local6 = _local5[_local3];
_local5[_local3] = _local5[_local4];
_local5[_local4] = _local6;
_local3++;
};
_local2++;
};
_local1 = 0;
_local2 = 0;
while (_local2 < this.MF.length) {
_local3 = 0;
while (_local3 < this.MF[_local2].length) {
_local4 = 0;
while (_local4 < this.MF[_local2][_local3].length) {
if (this.MF[_local2][_local3][_local4] == SCell.TYPE_NOR){
this.MF[_local2][_local3][_local4] = _local5[_local1];
_local1++;
};
_local4++;
};
_local3++;
};
_local2++;
};
this.calcSokrField();
return (true);
}
private function onEnterFrameHint(_arg1:Event):void{
if (this.c_blick < WellMahjong2L.c_blick){
if (this.sign_blick < 0){
if (this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha > WellMahjong2L.min_alpha){
this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha = (this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha - WellMahjong2L.dBlick);
this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha = (this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha - WellMahjong2L.dBlick);
} else {
this.sign_blick = 1;
this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha = WellMahjong2L.min_alpha;
this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha = WellMahjong2L.min_alpha;
};
} else {
if (this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha < 1){
this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha = (this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha + WellMahjong2L.dBlick);
this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha = (this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha + WellMahjong2L.dBlick);
} else {
this.sign_blick = -1;
this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha = 1;
this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha = 1;
this.c_blick++;
};
};
} else {
this.stopHint();
};
}
public function deleteFishka(_arg1:int, _arg2:int, _arg3:int):void{
this.removeChild(this.MCells[_arg1][_arg3][_arg2]);
this.MCells[_arg1][_arg3][_arg2].Free();
this.MCells[_arg1][_arg3][_arg2] = null;
}
protected function drawStoron():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Boolean;
var _local5:Boolean;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Array;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:Array;
_local1 = 0;
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] != SCell.TYPE_FON){
this.drawCellL(_local1, _local3, _local2);
this.drawCellD(_local1, _local3, _local2);
};
_local3++;
};
_local2++;
};
_local1++;
};
_local1 = 0;
while (_local1 < (this.MF.length - 1)) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] != SCell.TYPE_FON){
if (this.MF[(_local1 + 1)][_local2][_local3] != SCell.TYPE_FON){
this.MCells[_local1][_local2][_local3].showFishka(false);
} else {
_local8 = new Array();
_local13 = 0;
_local9 = 0;
while (_local9 < 4) {
_local16 = new Array();
_local10 = 0;
while (_local10 < 4) {
_local16.push(0);
_local10++;
};
_local8.push(_local16);
_local9++;
};
_local14 = (_local2 - 1);
_local15 = (_local3 - 1);
_local9 = 0;
while (_local9 < 3) {
_local10 = 0;
while (_local10 < 3) {
if (((((_local14 + _local9) >= 0)) && (((_local14 + _local9) < this.MF[0].length)))){
if (((((_local15 + _local10) >= 0)) && (((_local15 + _local10) < this.MF[0][0].length)))){
if (this.MF[(_local1 + 1)][(_local14 + _local9)][(_local15 + _local10)] != SCell.TYPE_FON){
_local11 = _local9;
while (_local11 < 2) {
_local12 = _local10;
while (_local12 < 2) {
_local8[_local11][_local12] = 1;
_local12++;
};
_local11++;
};
};
};
};
_local10++;
};
_local9++;
};
_local9 = 1;
while (_local9 <= 2) {
_local10 = 1;
while (_local10 <= 2) {
_local13 = (_local13 + _local8[_local9][_local10]);
_local10++;
};
_local9++;
};
if (_local13 < 4){
this.MCells[_local1][_local2][_local3].showFishka(true);
};
};
};
_local3++;
};
_local2++;
};
_local1++;
};
}
private function vectorR(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Boolean;
var _local12:Boolean;
var _local13:Boolean;
_local11 = true;
_local12 = true;
_local13 = true;
_local9 = (_arg2 + 2);
if (_local9 < MF[0][0].length){
_local6 = (_arg3 - 1);
_local7 = (_arg3 + 1);
if (_local6 < 0){
_local6 = 0;
};
if (_local7 >= MF[0].length){
_local7 = (MF[0].length - 1);
};
_local5 = _local6;
while (_local5 <= _local7) {
if (this.MF[_arg1][_local5][_local9] != SCell.TYPE_FON){
_local12 = false;
break;
};
_local5++;
};
};
_local9 = (_arg2 - 2);
if (_local9 >= 0){
_local6 = (_arg3 - 1);
_local7 = (_arg3 + 1);
if (_local6 < 0){
_local6 = 0;
};
if (_local7 >= MF[0].length){
_local7 = (MF[0].length - 1);
};
_local5 = _local6;
while (_local5 <= _local7) {
if (this.MF[_arg1][_local5][_local9] != SCell.TYPE_FON){
_local11 = false;
break;
};
_local5++;
};
};
if ((((_local11 == true)) && ((_local12 == true)))){
if (_arg2 > (this.MF[0][0].length / 2)){
_local13 = true;
} else {
_local13 = false;
};
} else {
if (_local11 == true){
_local13 = false;
} else {
_local13 = true;
};
};
return (_local13);
}
public function startGame():void{
this.iTimerScore = getTimer();
}
public function resetTimerRec():void{
this.iTimerR = getTimer();
}
public function noMoves():void{
this.stopGame();
this.iState = stPauseNoMoves;
this.iTimerNoMoves = 0;
this.addEventListener(Event.ENTER_FRAME, this.onEnterFrameNotMoves);
}
private function shufle():Boolean{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Boolean;
var _local11:int;
var _local12:int;
var _local13:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < this.MF.length) {
_local11 = 0;
while (_local11 < this.MF[0].length) {
_local12 = 0;
while (_local12 < this.MF[0][0].length) {
if (this.MF[_local2][_local11][_local12] >= 0){
if (this.liberty(_local2, _local12, _local11) == true){
_local1.push([_local2, _local12, _local11]);
};
};
_local12++;
};
_local11++;
};
_local2++;
};
if (_local1.length < 2){
return (false);
};
switch (this.mode){
case WellMahjong2L.MODE_PLAYER:
_local12 = WellMahjong2L.RandP.RandOnInterval(0, (_local1.length - 1));
_local11 = WellMahjong2L.RandP.RandOnInterval(0, (_local1.length - 1));
break;
case WellMahjong2L.MODE_OPPONENT:
_local12 = WellMahjong2L.RandO.RandOnInterval(0, (_local1.length - 1));
_local11 = WellMahjong2L.RandO.RandOnInterval(0, (_local1.length - 1));
break;
};
if (_local11 == _local12){
_local11++;
if (_local11 >= _local1.length){
_local11 = 0;
};
};
_local3 = _local1[_local12][0];
_local4 = _local1[_local12][1];
_local5 = _local1[_local12][2];
_local6 = this.MF[_local3][_local5][_local4];
_local7 = _local1[_local11][0];
_local8 = _local1[_local11][1];
_local9 = _local1[_local11][2];
_local10 = false;
if (SField.calcOnes(_local6) == true){
_local2 = 0;
while (_local2 < this.MF.length) {
_local11 = 0;
while (_local11 < this.MF[0].length) {
_local12 = 0;
for (;_local12 < this.MF[0][0].length;_local12++) {
if (this.MF[_local2][_local11][_local12] == _local6){
if ((((((_local3 == _local2)) && ((_local5 == _local11)))) && ((_local4 == _local12)))){
continue;
} else {
this.MF[_local2][_local11][_local12] = this.MF[_local7][_local9][_local8];
this.MF[_local7][_local9][_local8] = _local6;
_local10 = true;
break;
};
};
};
if (_local10 == true){
break;
};
_local11++;
};
if (_local10 == true){
break;
};
_local2++;
};
} else {
_local13 = SField.calcGroups(_local6);
if (_local13 != -1){
_local2 = 0;
while (_local2 < this.MF.length) {
_local11 = 0;
while (_local11 < this.MF[0].length) {
_local12 = 0;
while (_local12 < this.MF[0][0].length) {
if (this.MF[_local2][_local11][_local12] >= 0){
if (SField.calcGroups(this.MF[_local2][_local11][_local12]) == _local13){
_local6 = this.MF[_local2][_local11][_local12];
this.MF[_local2][_local11][_local12] = this.MF[_local7][_local9][_local8];
this.MF[_local7][_local9][_local8] = _local6;
_local10 = true;
break;
};
};
_local12++;
};
if (_local10 == true){
break;
};
_local11++;
};
if (_local10 == true){
break;
};
_local2++;
};
} else {
return (false);
};
};
return (true);
}
public function noMoviesComplete():void{
var _local1:int;
var _local2:int;
var _local3:int;
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameNotMoves);
_local1 = 0;
while (_local1 < this.MF.length) {
_local2 = 0;
while (_local2 < this.MF[0].length) {
_local3 = 0;
while (_local3 < this.MF[0][0].length) {
if (this.MF[_local1][_local2][_local3] >= 0){
this.iScore = (this.iScore - WellMahjong2L.delScoreNoMv);
};
_local3++;
};
_local2++;
};
_local1++;
};
this.iState = stNoMovedComp;
this.calcScore();
}
private function stopHint():void{
this.removeEventListener(Event.ENTER_FRAME, this.onEnterFrameHint);
this.MCells[this.HintZ1][this.HintY1][this.HintX1].alpha = 1;
this.MCells[this.HintZ2][this.HintY2][this.HintX2].alpha = 1;
if (this.selZ > -1){
this.MCells[this.selZ][this.selY][this.selX].select(false);
};
this.playHint = false;
}
private function liberty(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Boolean;
var _local12:Boolean;
_local11 = true;
_local12 = true;
_local6 = (_arg3 - 1);
_local7 = (_arg3 + 1);
if (_local6 < 0){
_local6 = 0;
};
if (_local7 >= this.MF[0].length){
_local7 = (this.MF[0].length - 1);
};
_local9 = (_arg2 - 1);
_local10 = (_arg2 + 1);
if (_local9 < 0){
_local9 = 0;
};
if (_local10 >= this.MF[0][0].length){
_local10 = (this.MF[0][0].length - 1);
};
_local4 = (_arg1 + 1);
while (_local4 < this.MF.length) {
_local5 = _local6;
while (_local5 <= _local7) {
_local8 = _local9;
while (_local8 <= _local10) {
if (this.MF[_local4][_local5][_local8] >= 0){
return (false);
};
_local8++;
};
_local5++;
};
_local4++;
};
_local9 = (_arg2 + 2);
if (_local9 < this.MF[0][0].length){
_local6 = (_arg3 - 1);
_local7 = (_arg3 + 1);
if (_local6 < 0){
_local6 = 0;
};
if (_local7 >= this.MF[0].length){
_local7 = (this.MF[0].length - 1);
};
_local5 = _local6;
while (_local5 <= _local7) {
if (this.MF[_arg1][_local5][_local9] >= 0){
_local12 = false;
break;
};
_local5++;
};
};
_local9 = (_arg2 - 2);
if (_local9 >= 0){
_local6 = (_arg3 - 1);
_local7 = (_arg3 + 1);
if (_local6 < 0){
_local6 = 0;
};
if (_local7 >= this.MF[0].length){
_local7 = (this.MF[0].length - 1);
};
_local5 = _local6;
while (_local5 <= _local7) {
if (this.MF[_arg1][_local5][_local9] >= 0){
_local11 = false;
break;
};
_local5++;
};
};
if ((((_local11 == true)) || ((_local12 == true)))){
return (true);
};
return (false);
}
private static function calcGroups(_arg1:int):int{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < SField.iGroup.length) {
_local3 = 0;
while (_local3 < SField.iGroup[_local2].length) {
if (SField.iGroup[_local2][_local3] == _arg1){
return (_local2);
};
_local3++;
};
_local2++;
};
return (-1);
}
public static function getGroupID():Array{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Array;
_local1 = new Array();
_local2 = 0;
while (_local2 < WellMahjong2L.GROUPS.length) {
_local5 = new Array();
_local3 = 0;
while (_local3 < WellMahjong2L.GROUPS[_local2].length) {
_local4 = 0;
while (_local4 < WellMahjong2L.FIGURES.length) {
if (WellMahjong2L.FIGURES[_local4] == WellMahjong2L.GROUPS[_local2][_local3]){
_local5.push(_local4);
};
_local4++;
};
_local3++;
};
_local1.push(_local5);
_local2++;
};
return (_local1);
}
protected static function calcKoord(_arg1:Number, _arg2:int, _arg3:int, _arg4:int):Array{
var _local5:Array;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Array;
var _local14:Array;
_local5 = new Array();
_local11 = (_arg1 * WellMahjong2L.dLx);
_local12 = (_arg1 * WellMahjong2L.dLy);
_local8 = 0;
while (_local8 < _arg4) {
_local13 = new Array();
_local6 = 0;
while (_local6 < _arg3) {
_local14 = new Array();
_local7 = 0;
while (_local7 < _arg2) {
_local9 = (((_arg1 * _local7) / 2) - (_local8 * _local11));
_local10 = ((((_arg1 * WellMahjong2L.hL) * _local6) / 2) - (_local8 * _local12));
_local14.push([_local9, _local10]);
_local7++;
};
_local13.push(_local14);
_local6++;
};
_local5.push(_local13);
_local8++;
};
return (_local5);
}
protected static function calcL(_arg1:Array, _arg2:Number, _arg3:Number):Number{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
_local6 = 0;
_local7 = 0;
_local11 = 0;
_local12 = _arg1.length;
_local13 = _arg1[0][0].length;
_local14 = _arg1[0].length;
_local9 = 0;
while (_local9 < _arg1[0].length) {
_local10 = 0;
_local8 = 0;
while (_local8 < _arg1.length) {
if (_arg1[_local8][_local9][_local10] == SCell.TYPE_NOR){
if ((_local8 + 1) > _local11){
_local11 = (_local8 + 1);
};
};
_local8++;
};
_local9++;
};
_local6 = (_local11 * WellMahjong2L.dLx);
_local11 = 0;
_local10 = 0;
while (_local10 < _arg1[0][0].length) {
_local9 = 0;
_local8 = 0;
while (_local8 < _arg1.length) {
if (_arg1[_local8][_local9][_local10] == SCell.TYPE_NOR){
if ((_local8 + 1) > _local11){
_local11 = (_local8 + 1);
};
};
_local8++;
};
_local10++;
};
_local7 = (_local11 * WellMahjong2L.dLy);
_local5 = (_arg3 / (_local7 + ((_local14 * WellMahjong2L.hL) / 2)));
_local4 = (_arg2 / (_local6 + (_local13 / 2)));
if (_local5 < _local4){
return (_local5);
};
return (_local4);
}
private static function calcOnes(_arg1:int):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < SField.iOnes.length) {
if (SField.iOnes[_local2] == _arg1){
return (true);
};
_local2++;
};
return (false);
}
private static function getOnesID():Array{
var _local1:Array;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = new Array();
_local2 = 0;
while (_local2 < WellMahjong2L.ONES.length) {
_local4 = 0;
while (_local4 < WellMahjong2L.FIGURES.length) {
if (WellMahjong2L.FIGURES[_local4] == WellMahjong2L.ONES[_local2]){
_local1.push(_local4);
};
_local4++;
};
_local2++;
};
return (_local1);
}
}
}//package RES.GAME
Section 78
//SLevels (RES.GAME.SLevels)
package RES.GAME {
public class SLevels {
public static const Levels:Array = ["IKKE,gc40061469be0261469be0461469be0661469be0861469be0a61469be1060258ad1260258ad1460258ad1660258ad1860258ad1a60258ad2061469ce2261469ce2461469ce2661469ce2861469ce2a61469ce3060258ad3260258ad3460258ad3660258ad3860258ad3a60258ad", "KKKK,gg400802468ace02713579bd0462468ac0653579b0853579b0a62468ac0c713579bd0e802468ace10713579bd1262468ac1453579b164468a184468a1a53579b1c62468ac1e713579bd2062468ac2253579b244468a2635792835792a4468a2c53579b2e62468ac3417361738173a17", "OLCHIK,gc400802468ace02307e04307e05424ac06307e08307e0a802468ace10802468ace12307e14307e15424ac16307e18307e1a802468ace20802468ace22307e24307e25424ac26307e28307e2a802468ace30802468ace32307e34307e35424ac36307e38307e3a802468ace", "ANNABEL,mg200b02468acegik0290468acegk0322i0430ak0522i0630ak0782468cegi0830ak0922i0a30ak0b22i0c90468acegk0eb02468acegik10b02468acegik1290468acegk1322i1430ak1522i1630ak1782468cegi1830ak1922i1a30ak1b22i1c90468acegk1eb02468acegik", "NICK JONAS,fc6005468bd01202025468bd03202045468bd0510065357bd07100837bd0931350a479bd1025711313c122571321c142571520c1633571720c1817194135c1a28a2016211322316c2426c26304c2717281c292242a1931163326c351c371c39134216441c461c551c", "SWEETIE,ii400902468aceg0270268aeg04308g0670268aeg08902468aceg0a70268aeg0c308g0e70268aeg0g902468aceg105468ac121814308g165068ag18902468aceg1a5068ag1c308g1e181g5468ac20368a22182418265068ag28902468aceg2a5068ag2c182e182g368a3818", "BB,kk2007026acfi012480240cfi03326a0440cfi05248067026acfi09902479begi0b6047bei0c329g0d6047bei0f902479begi0ia02468acegi107026acfi112481240cfi13326a1440cfi15248167026acfi19902479begi1b6047bei1c329g1d6047bei1f902479begi1ia02468acegi", "ETOILE1120,gc90070247ace0270247ace0470247ace0670247ace0870247ace0a70247ace101711413bd121713413bd141715413bd161717413bd181719413bd1a17201722327c24327c26327c28327c2a173117331735173717391742174417461748175317551757176417661775178517", "JESS,kk40171379bfh0371379bfh056468ace0781468aceh09a02468acegi0b81468aceh0d6468ace0f71379bfh0h71379bfh1020i12428ag1420i156468ace176468ace1821h196468ace1a21h1b6468ace1d6468ace1f24e1g428ag1i24e2221h27468ac296168ach2b468ac2g23f3928a", "KK,ec50060257ac0260257ac0460257ac0660257ac0860257ac0a60257ac1060257ac1260257ac1460257ac1660257ac1860257ac1a60257ac20239222392423926239282392a239304248a324248a344248a364248a384248a3a4248a40239422394423946239482394a239", "KKKK,gg500702468ce0270246ace0460248ac0660268ae0860468ce0a6246ace0c70248ace0e70268ace1040246111d123024131b14202151916101717181e19151a2ce1b131c3ace1d111e48ace20302422202241027172a1e2c2ce2e3ace3020232103c1e3e2ce40104e1e", "FRANCESC,gc400802468ace02713579bd04713579bd06802468ace08802468ace0a713579bd10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace20802468ace22802468ace24802468ace26802468ace28802468ace2a802468ace30416ac32368e331a341235347a361d3724938317b3924e3a19", "ANNA,ga500802468ace02802468ace04802468ace06802468ace08802468ace10802468ace12802468ace14802468ace16802468ace18802468ace206024ace226024ace24802468ace266024ace286024ace30402ce32402ce34802468ace36402ce38402ce4020e4220e44802468ace4620e4820e", "POOPY,gc40062468ae011c0250369e031c044258e051c064269e071c0852579e091c0a4258e1043579111e1250369c131e14328c1526e1622c17369e1822c19368e1a12203468211e224269c231e24328c2526e2622c27369e2822c29368e2a123025732313d33183422d35173622d3727a3822d39173a12", "ROSA NEGRA,gc400403ae01368c02313a0328e0426c0560248ae061c07702468ae094158c0a33ae1021411479bd12224135068ad1550358b161e17602468c182ae19327c1a405ae20503579212bd22402462339ce241125346826402ad27346828302c2938ae2a4025c30802468ace3220e332683420e352683620e372683820e3a802468ace", "WHEREDID,gca0020e01170320e0720e09170a20e10317d124168d184168d1a317d2022c212682222c231727172822c292682a22c314359b3322c341736173722c394359b4124a4422c45174622c4924a5224a54337b56337b5824a6224a631767176824a73259741776177725984268862689517", "SAB,gc40040479011b023047031a0430470522b062790724d0828b09346e0a28c1040479111b123047131a1430471522b162791724d1828b19346e1a28c2040479211b223047231a2430472522b262792724d2828b29346e2a28c3040479311b323047331a3430473522b362793724d3828b39346e3a28c", "740,gc500404ae01327c0224a034068e0422c054068e0624a0722c084068e0922c0a347a1161359bd135247ac1420e154368b1620e1752579c1961468ad206024ace21268226024ace23172461359bd2517266024ace2861368bd2a52579c301731413bd3225933327c3551579d3760368be394068e3a424ac4235794426846357948268", "MIRI,ca600326a02602468a04602468a06602468a08326a10326a12602468a14602468a16602468a18326a20326a22602468a24602468a26602468a28326a30326a32602468a34602468a36602468a38326a40326a42602468a44602468a46602468a48326a50326a52602468a54602468a56602468a58326a", "KKKK,gg4005027ce0260268ce043579064468a0853579b0a62468ac0c713579bd0e802468ace10402ce111712402ce13268153579174468a1953579b1b62468ac1d713579bd20402ce225027ce24268263579284468a2a53579b2c62468ac30402ce32402ce331735268373579394468a3b53579b", "OKSANA,gc800802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10713579bd1262468ac1453579b164468a1835791a2682062468ac2253579b244468a263579282682a173053579b324468a343579362683817404468a42357944268461750357952268541760268621770177217", "ANGIE,gb800802468ace03802468ace06802468ace09802468ace10713579bd13713579bd16713579bd19713579bd2062468ac2362468ac2662468ac2962468ac3053579b3353579b3653579b3953579b404468a434468a464468a494468a503579533579563579593579602686326866268692687017731776177917", "MIMI,gca00802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace1062468ac1262468ac1462468ac1662468ac1862468ac1a62468ac204468a224468a244468a264468a284468a2a4468a30268322683426836268382683a26842268442684626848268542685626864268662687426876268842688626894179617", "ALEKSEI,ii7004579b025468ac0463579bd0672468ace0720g0872468ace0920g0a72468ace0c63579bd0e5468ac0g4579b11368a134579b155468ac1763579bd1821f1963579bd1b5468ac1d4579b1f368a2227924368a264579b285468ac2a4579b2c368a2e27933183527937368a39368a3b2793d18451847279492794b18561858185a186818", "OMT,ee600702468ac02160416051206468ac0712081609120a160c702468ac10602468a12161416165268ac182261a161c62468ac204246822162416251226468ac2712281629122a162c4468a30324632163416365268ac382263a163c368a4024642164416451246468ac4712481649124a164c2685024652165416564268a582265a165c268", "KATE,gc700802468ace0220e0335790420e0535790620e0735790820e0a802468ace10802468ace1220e1335791420e152681620e1735791820e1a802468ace20802468ace2220e2420e25172620e2820e2a802468ace3062468ac3220e3420e3620e3820e3a62468ac404468a4420e4620e4a4468a502685520e5a26860176a17", "ILINCA,ec400180126a02348c03120460468ac0650248c0726a0820409328c0a306a10181126a12348c13121460468ac1650248c1726a1820419328c1a306a20182126a22348c23122460468ac2650248c2726a2820429328c2a306a30183126a32348c33123460468ac3650248c3726a3820439328c3a306a", "KENIE,gc500802468ace0220e0353579b0420e0553579b0620e0753579b0820e0a802468ace10802468ace1220e1460468ae1660468ae1820e1a802468ace20802468ace2220e2420e2535792620e2820e2a802468ace30802468ace3220e3420e352683620e3820e3a802468ace404159d4220e45307e4820e4a5147ad", "MIZZY,kg400902468cegi0230ci0430ci0630ci08902468cegi0a308i0c308i0e902468cegi10902468cegi1230ci1430ci1630ci18902468cegi1a308i1c308i1e902468cegi20902468cegi2230ci2430ci2630ci28902468cegi2a308i2c308i2e902468cegi30902468cegi3230ci3430ci3630ci38902468cegi3a308i3c308i3e902468cegi", "ANETA,gc700802468ace02802468ace04802468ace06602468a0860246ce0a6028ace10702468ac12702468ae14602468c1650246a185024ce1a6028ace20602468a22502468231d2440246251b26302428202291d2a209305024683240246344024c3620238104040246423024442024610503024522025410602026210", "LYSSA,gg500402ce02402ce0317062680723b082680b170c402ce0e402ce11413bd121713413bd14171626817424ac182681a171b413bd1c171d413bd211722424ac24424ac2517274159d29172a424ac2c424ac2d173017334359b354359b3720e394359b3b4359b3e174017444468a464468a4720e484468a4a4468a4e17", "P,ii400180126a02348c03426ae045048cg05426ae065048cg07426ae085048cg09426ae0a5048cg0b426ae0c5048cg0d426ae0e348c0f26a0g1812181326a14348c15426ae16348c17426ae18348c19426ae1a348c1b426ae1c348c1d26a1e1824182526a26348c2726a28348c2926a2a348c2b26a2c1836183726a38183926a3a18", "LA ROSE,gi500368a02348c044268e0630680860468ae0a5468ae0c4168e0e336c0g368a10368a12348c144268e1630681860468ae1a5468ae1c4168e1e336c1g368a20368a22348c244268e2630682860468ae2a5468ae2c4168e2e336c2g368a30368a3224c344268e3630683860468ae3a5468ae3c4168e3e23c3g368a4018482684a2684g18", "YESSICA,aa8014135703413570541357074135710502468122081430481620818502468214135723413572541357274135730502468322083430483620838502468414135743413574541357474135750502468522085430485620858502468614135763413576541357674135770502468722087430487620878502468", "GARY,ii50070248ceg02308g04308g0870248ceg0c308g0e308g0g70248ceg1060579bg13181520g1720g184579b1920g1b20g1d181g60579bg205148cf23182520g2861479cf2b20g2d182g5148cf30802579beg33183520g3871468acf3b20g3d183g802579beg405168af4318484579b4d184g5168af", "SYSKO,fc50050369c0250369c0450369c0650369c0850369c0a50369c105147ad125147ad145147ad165147ad185147ad1a5147ad2050369c2250369c2450369c2650369c2850369c2a50369c305147ad325147ad345147ad365147ad385147ad3a5147ad4060257ac4260257ac4460257ac4660257ac4860257ac4a60257ac", "SYSKO,fi400408ac02308c04308c0660248ac0a5069bd0c31590d1b0e32490g439bd10408ac12308c14308c1660248ac1a5069bd1c31591d1b1e32491g439bd20408ac22308c24308c2660248ac2a5069bd2c31592d1b2e32492g439bd30408ac32308c34308c3660248ac3a5069bd3c31593d1b3e32493g439bd", "SANDRA,ecc0016021604160560248ac061608160a161016121614161560248ac161618161a162016221624162560248ac261628162a163016321634163560248ac361638163a164016421644164560248ac461648164a165016521654165560248ac561658165a16601665306c6a16701675306c7a16801685306c8a169516a516b516", "HJH,ke500903579bdfi02403fi03468ac04403fi0526c06403fi0726c08403fi09468ac0a403fi0c903579bdfi1220i13468ac1420i1526c1620i1726c1820i19468ac1a20i23468ac2420i2526c2620i2726c2820i29468ac33468ac3526c3620i3726c39468ac43468ac4526c4726c49468ac", "TUYT,gc4001001279025035bd03279041005279065035bd0727908100a802468ace101111446ce12318a13446ce141115446ce16318a17446ce18111963579bd1a11201021279225035bd23279241025279265035bd2727928102a802468ace301131446ce32318a33446ce341135446ce36318a37446ce38113963579bd3a11", "CHIC,ec500160224803326a044048c0526a0650248c08304c0a60468ac10161224813326a144048c1526a1650248c18304c1a60468ac20162224823326a244048c2526a2650248c28304c2a60468ac30163224833326a344048c3526a3650248c38304c3a60468ac40164224843326a444048c4526a4650248c48304c4a60468ac", "465765,gc400802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace146024ace166024ace18802468ace1a802468ace20802468ace22402ce24402ce26402ce28402ce2a802468ace30802468ace3220e3420e3620e3820e3a802468ace", "ALEX.GIRL,id5006246ace01308g03813579bdf0563579bd074579b092790b18106246ace11308g13813579bdf1563579bd174579b192791b18206246ace21308g23813579bdf2563579bd274579b292792b18306246ace31308g33813579bdf3563579bd374579b392793b18406246ace41308g43813579bdf4563579bd474579b492794b18", "CHIC,gb40022e01304c02426ae03348c0426a05348c06426ae07304c0822e09101022e11304c12426ae13348c1426a15348c16426ae17304c1822e19102022e21304c22426ae23348c2426a25348c26426ae27304c2822e29103022e31304c32426ae33348c3426a35348c36426ae37304c3822e3910", "MUEFD,gg4004068e0260268ce044268c064468a08802468ace0a4068e0c4268c0e60468ae104068e1260268ce144268c1635791870247ace1a307e1c327c1e60468ae2050579e2260268ce244268c261728802468ace2a4068e2c327c2e50579e302683120e32327c34327c36173862468ac3920e3a173c173e3579", "BIGBOB,gc7005047ae0252579c045047ae0652579c085047ae0a52579c101711413bd1226813413bd141715413bd1626817413bd181719413bd1a26821172222c23172422c25172622c27172822c291732173322c34173522c36173722c381743174422c45174622c471754175522c56176517", "HERKI33333,ig90020g02308g04308g06308g076246ace08308g0a308g0c308g0e20g1120g13308g15308g1770358bdg19308g1b308g1d20g2220g24308g26308g2724c28308g2a308g2c20g3320g35308g3770358bdg39308g3b20g4420g46308g47426ae48308g4a20g5520g57308g5920g6620g67186820g77308g8718", "ALEJANDRA,gc600802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace11713579bd13713579bd15713579bd17713579bd19713579bd2263579bd2463579bd2663579bd2863579bd2a5359bd31183223d33368a355468ac37368a3823d39184218442794525b4627948185518", "FERNFAHRER,g8800802468ace024048c03426ae044048c06802468ace10702468ac124048c13326a144048c16702468ac20602468a22304823326a24304826602468a305024683230483322634304836502468404024642204432264420446402465030245220453125420456302460202621063126410662027010721074107610", "BUNNY,gg700802468ace0222c032680422c052680622c072680822c092680a22c0b2680c22c0e802468ace1062468ac1222c13171422c15171622c17171822c19171a22c1b171c22c1e62468ac204468a2222c24327c26327c28327c2a327c2c22c2e4468a302683422c35173622c37173822c39173a22c3e26846327c48327c57176717", "CALLIE,eb60052468a0120c022570320c0434680522a0722a0952468a1052468a1120c122571320c1434681522a1722a1952468a2052468a2120c222572320c2434682522a2722a2952468a3052468a3120c322573320c3434683522a3722a3952468a4052468a4120c422574320c4434684522a4722a4952468a5216", "NO,ga6005024ce02307c04602479c051e06347c084024c105024ce12307c14602479c151e16347c184024c205024ce22307c24602479c251e26347c284024c305024ce32307c34602479c351e36347c384024c405024ce42307c44602479c451e46347c484024c505024ce52307c54602479c551e56347c584024c", "SLEKHFP,kj400a02468acegi02a02468acegi04a02468acegi06a02468acegi08a02468acegi0aa02468acegi0ca02468acegi0f25d0g437bf0h319h10426ae12426ae14426ae16426ae18426ae1a426ae1c426ae1f25d1g437bf1h319h20426ae22426ae24426ae26426ae28426ae2a426ae2c426ae2f25d2g437bf2h319h30426ae32426ae34426ae36426ae38426ae3a426ae3c426ae3f25d3g437bf3h319h", "18,gc500357a01313d024579b03313d04369b05130661579bd071308459bd092270a449bd1062468bd1110125368be1310145368bd151016525ace1720818546ace192181a536ace205047ad22713579bd24713579be264037b27359d294258b2a20d30406ad3114325028bd331634314b3528e36326a37304c3828e39326a3a4048c40104132484226b431944313c4515465137ad4842579491d4a4368b", "LYBA19833,gc40051359e0127b0250249d0326b044139d05357b064139d07357b08339d094157b0a29d10802468ace1260379be131514328e15404ac16268175024ad18268195024ac1a1720536ace212082245ace2313246168ace26703579bd2861359ce29172a60249bd3061358ae311c3250246e3338ac3450246e3538ac364024e37468ac381239548ace3a3026", "WWW,gg800802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace0c802468ace0e802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace1c802468ace1e802468ace24802468ace26802468ace28802468ace2a802468ace2c802468ace2e802468ace36802468ace38802468ace3a802468ace3c802468ace3e802468ace48802468ace4a802468ace4c802468ace4e802468ace5a802468ace5c802468ace5e802468ace6c802468ace6e802468ace7e802468ace", "BRASIL,gc800402ce02404ae044068e0620e0820e0a20e10402ce12404ae144068e1620e1820e1a20e20402ce22404ae244068e2620e2820e2a20e30402ce32404ae344068e3620e3820e3a20e40402ce42404ae444068e4620e4820e4a20e50402ce52404ae544068e5620e5820e5a20e60402ce62404ae644068e6620e6820e6a20e70402ce72404ae744068e7620e7820e7a20e", "MONICA,ga80061368bd0261368bd0461368bd0661368bd0861368bd1070257ace1270257ace1470257ace1670257ace1870257ace2061368bd2261368bd2461368bd2661368bd2861368bd3070257ace3270257ace3470257ace3670257ace3870257ace4060369ce4260369ce4460369ce4660369ce4860369ce5051379d5251379d5451379d5651379d5851379d6060369ce6260369ce6460369ce6660369ce6860369ce705147ad725258be745147ad765258be785147ad", "ASHTEN,ec80060248ac024048c044048c064048c084048c0a60248ac1060248ac124048c144048c164048c184048c1a60248ac2060248ac224048c244048c264048c284048c2a60248ac3060248ac324048c344048c364048c384048c3a60248ac4060248ac424048c444048c464048c484048c4a60248ac5060248ac524048c544048c564048c584048c5a60248ac6060248ac624048c644048c664048c684048c6a60248ac7060248ac724048c744048c764048c784048c7a60248ac", "IKKE,fc50060248ad0260248ad0460248ad0660248ad0860248ad0a60248ad1060248ad1260248ad1460248ad1660248ad1860248ad1a60248ad2060248ad2260248ad2460248ad2660248ad2860248ad2a60248ad3060248ad3260248ad3460248ad3660248ad3860248ad3a60248ad4060248ad4260248ad4460248ad4660248ad4860248ad4a60248ad", "MIZZY,kg50080246cegi0230ci0430ci0650cegi0850246i0a306i0c306i0e80246cegi1080246cegi1230ci1430ci1650cegi1850246i1a306i1c306i1e80246cegi2080246cegi2230ci2430ci2650cegi2850246i2a306i2c306i2e80246cegi3080246cegi3230ci3430ci3650cegi3850246i3a306i3c306i3e80246cegi4080246cegi4230ci4430ci4650cegi4850246i4a306i4c306i4e80246cegi", "DD,gg500802468ace025047ae045047ae065047ae085047ae0a5047ae0c5047ae0e404ae10802468ace125047ae145047ae165047ae185047ae1a5047ae1c5047ae1e404ae20802468ace225047ae245047ae265047ae285047ae2a5047ae2c5047ae2e404ae30802468ace32307e34307e36307e38307e3a307e3c307e3e20e42174417461748174a174c17", "GDSFG,gc500358a01303d02379b034025d04379b05313d06368b0720208446bd0930280a546ace104136e1128b124135e1337ac14314e1528a16315c17337e182ac194046e1a428ac204029e21346c22302923347d2420b253358262bd2740269281e2951368b2a1e3026b314038d3225a33307d34225355079ce3614375268be382043938ae3a4036c4060358ad4233ae434058c4412455469bd461147546ace481849302e4a358b", "RENEE,kg60024e01468ac03468ac0424e056268acg06404ei076268acg0824e09468ac0b468ac0d468ac0e24e1024e11468ac13468ac1424e156268acg1624e176268acg1824e19468ac1b468ac1d468ac1e24e2024e21468ac23468ac2424e25468ac2624e27468ac2824e29468ac2b468ac2d468ac2e24e3024e31468ac33468ac35468ac37468ac39468ac3b468ac3d468ac3e24e4024e4e24e5024e5e24e", "MIKI,om200c02468acegikm02913579bdfm031k04702468im052gk0640eim0742cgk08604aeim09526cgk0a6048eim0b526agk0c6048cim0d426ak0e4048m0f2260g704egikm0h120i9079bdfhjl0kc02468acegikm103hjl11813579bdf1362468km141i1520l163egi1731km1864acegi19302l1a6468egi1b31km1c6468aci1d302l1e34681f21m1g141h602egik1j879bdfhjl1k3135", "M,ii5005468ac025368ad0472468ace0671468acf08902468aceg0a71468acf0c72468ace0e5368ad0g5468ac104579b125468ac145368ad1662579be1871468acf1a62579be1c5368ad1e5468ac1g4579b21368a23368a2424c252792625b2723d28358b2923d2a25b2b2792c24c2d368a2f368a3326a35446ac372793823c392793b446ac3d26a4425b48184c25b", "NELL,kk900a02468acegi0220i0420i0620i0820i0a20i0c20i0e20i0g20i0ia02468acegi11913579bdfh1321h1521h1721h1921h1b21h1d21h1f21h1h913579bdfh2282468aceg2422g2622g2822g2a22g2c22g2e22g2g82468aceg3373579bdf3523f3723f3923f3b23f3d23f3f73579bdf446468ace4624e4824e4a24e4c24e4e6468ace555579bd5725d5925d5b25d5d5579bd66468ac6826c6a26c6c468ac77379b7927b7b379b8828a8a28a", "MAYHUME,gca00802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace20802468ace22802468ace24802468ace26802468ace28802468ace2a802468ace30802468ace32802468ace34802468ace36802468ace38802468ace3a802468ace4162468ac4362468ac4562468ac4762468ac4962468ac524468a544468a564468a584468a6335796535796735797326875268842689417", "GLENN,gcc00802468ace02327c032590422c05347a0622c0725908327c0a802468ace1053579b1121d12171321d1426815413bd162681721d18171921d1a53579b2020e2162468ac2322c241725424ac26172722c2962468ac2a20e3020e3253579b34337b3525936337b3853579b3a20e4020e434468a4524a474468a4a20e5020e5435795635795a20e6020e652686a20e7020e75177a20e8121d85178921d9222c95179822ca323ba517a723bb424ab517b624a", "EDITH,gc600802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace20802468ace2262468ac244468a264468a2862468ac2a802468ace3062468ac324468a3426836268384468a3a62468ac404468a4226844174617482684a4468a50268521758175a268", "TASHA,gc900402ce02402ce032680526806202072ce0840268092ce0a2681121d14171711181d191720402ce22402ce232682526826202272ce2840268292ce2a2683121d34173711381d391740402ce42402ce432684526846202472ce4840268492ce4a2685121d54175711581d591760402ce62402ce632686526866202672ce6840268692ce6a26870402ce72402ce732687526876202772ce7840268792ce7a2688121d84178711881d8917", "JULES,hi80060369cf02802469bdf0460369cf06802469bdf0860369cf0a802469bdf0c60369cf0e802469bdf0g60369cf1072468ace12713579bd1472468ace16713579bd1872468ace1a713579bd1c72468ace1e713579bd21337b24359d27337b2a359d2d337b325468ac3424c3624c3824c3a24c3c5468ac43358b4525b4725b4925b4b358b542795726a5a27966279682797718", "KELLY,ki600a02468acegi02913579bdfh04a02468acegi06913579bdfh08a02468acegi0a913579bdfh0ca02468acegi0e913579bdfh0ga02468acegi1083579bdfh1282468aceg1483579bdfh167468aceg1883579bdfh1a82468aceg1c83579bdfh1e7468aceg1g73579bdf20468ac226468ace246468ace266468ace286468ace2a6468ace2c6468ace2e468ac3128a33379b35379b37379b39379b3b379b3d1943194528a4728a49195619", "ANGIE,ec700702468ac0250369c04702468ac0650369c08702468ac0a50369c11702468ac14702468ac17702468ac1a702468ac20702468ac2250369c24702468ac2650369c28702468ac2a50369c314147a321c344147a351c374147a381c3a4147a414147a421c444147a451c474147a481c4a4147a514147a521c544147a551c574147a581c5a4147a64347a651c67347a", "MONITA,ih60040249011f024135d032bf0429d0537bf06359d07437bf08359d09437bf0a359d0b37bf0c359d0d4027b0e2590f5027eg10313912224131e141c152ae1628c1736ae18348c1936ae1a28c1b36ae1c28c1d316a1e181f31eg2021921132215251d261b2729d2827b2929d2a27b2b29d2c27b2d192e112f1f302293114371c381a3928c3a1a3b28c3c1a40194113491b4a194b1b5a1a", "JOSHUA,ii900902468aceg025048cg04802468acg065048cg0870468acg0a5048cg0c80468aceg0e4048g0g902468aceg10813579bdf1320g1453579b1520g1624c1720g184579b1920g1a24c1b20g1c5579bd1d20g1g813579bdf2072468ace2460468ag2620g285068ag2a20g2c6068acg2g72468ace3063579bd3435793520g3720g3827a3920g3b20g3c379b3g63579bd405468ac442684620g48309g4a20g4c28a4g5468ac504579b5720g5920g5g4579b60368a6820g6g368a702797g27980188g18", "YBSHYYASKM,gc8004048c01426ae034048c04426ae064048c07426ae094048c0a426ae10426ae114048c13426ae144048c16426ae174048c19426ae1a4048c204048c21426ae234048c24426ae264048c27426ae294048c2a426ae30326a31348c33326a34348c36326a37348c39326a3a348c4226a432484526a462484826a4924853368a55368a57368a64279662797518", "JOSHUA,gc8004048c02802468ace04802468ace06802468ace08426ae0a426ae104048c12713579bd14713579bd16713579bd18426ae1a426ae204048c2262468ac2462468ac2662468ac28426ae2a426ae304048c3253579b3453579b3653579b38426ae3a426ae40348c424468a444468a464468a48326a4a326a502485235795435795635795826a5a26a602486226864268662686926a73177517", "ZFDHA,eg700702468ac02702468ac04702468ac06702468ac08702468ac0a702468ac0c702468ac0e702468ac11602468a13602468a15602468a17602468a19602468a1b602468a1d602468a225024682450246826502468285024682a5024682c50246833402463540246374024639402463b402464430244630244830244a302455202572025920266106810", "ZFDHA,kg400a02468acegi0270369cfi0470369cfi0670369cfi0870369cfi0a70369cfi0c70369cfi0ea02468acegi10a02468acegi1270369cfi1470369cfi1670369cfi1870369cfi1a70369cfi1c70369cfi1ea02468acegi20a02468acegi2270369cfi2470369cfi2670369cfi2870369cfi2a70369cfi2c70369cfi2ea02468acegi30a02468acegi3270369cfi3470369cfi3670369cfi3870369cfi3a70369cfi3c70369cfi3ea02468acegi", "THEVIDE,ki900a02468acegi0220i0420i0620i0820i0a20i0c20i0e20i0ga02468acegi11913579bdfh1321h1521h1721h1921h1b21h1d21h1f913579bdfh2282468aceg2422g2622g2822g2a22g2c22g2e82468aceg3373579bdf3523f3723f3923f3b23f3d73579bdf446468ace4624e4824e4a24e4c6468ace555579bd5725d5925d5b5579bd66468ac6826c6a468ac77379b79379b8828a", "SJ,gc800426ae024048c04426ae064048c08426ae0a4048c114159d13337b154159d17337b194159d20426ae224048c24426ae264048c28426ae2a4048c314159d33337b354159d37337b394159d40426ae424048c44426ae464048c48426ae4a4048c514159d53337b554159d57337b594159d60426ae624048c64426ae664048c68426ae6a4048c714159d73337b754159d77337b794159d", "AGATA,eec0616152571725724346826346828346833435793543579374357939435794252468a4452468a4652468a4852468a4a52468a51613579b53613579b55613579b57613579b59613579b5b613579b60702468ac62702468ac64702468ac66702468ac68702468ac6a702468ac6c702468ac71613579b73613579b75613579b77613579b79613579b7b613579b8252468a84435798652468a88435798a52468a9443579964357998435799a43579a6257a8257b716", "ANETT,gc800468ac01204021d034048a041e05304a061e0741579081d09120a5468ac10468ac11204121d134048a141e15304a161e1741579181d19121a5468ac20468ac21204221d234048a241e25304a261e2741579281d29122a5468ac30379b31153220c3335793420d352593621d372683822c3a53579b40379b41154220c4335794420d452594621d472684822c4a53579b50379b51155220c5335795420d552595621d572685822c5a53579b61368a634069b654168c67327c6923b6a3579712797327a7421c75177622b77187823b7a4468a", "ANETT,gm700268011402326803204043268051006268082680a2680c2680e2680g2680i802468ace0k802468ace10268111412326813204143268151016268182681a2681c2681e2681g2681i802468ace1k802468ace20268211422326823204243268251026268282682a2682c2682e2682g2682i802468ace2k802468ace311632143322734103517371739173b173d173f173h173j713579bd411642144322744104517471749174b174d174f174h174j713579bd501751155223753115417561758175a175c175e175g175i713579bd601761156223763116417661768176a176c176e176g176i713579bd", "ANETT,gi6004468a0262468ac04402ce0630ce071a0828d0926b0a2490b2270c2050d130e61579bd0g802468ace104468a1262468ac14402ce1630ce171a1828d1926b1a2491b2271c2051d131e61579bd1g802468ace204468a2262468ac24402ce2630ce271a2828d2926b2a2492b2272c2052d132e61579bd2g802468ace314579b32133321d3520d371d381b39193a173b153c133d113f713579bd414579b42134321d4520d471d481b49194a174b154c134d114f713579bd514579b52135321d5520d571d581b59195a175b155c135d115f713579bd", "ANETT,nk400568acj0134el0222g036079bil0425d05503fil0628a077036cfil0980369bfil0b6036eil0c38ac0d403hl0e25f0f6079bdk0g22i0h24g0i568ace10568acj1134el1222g136079bil1425d15503fil1628a177036cfil1980369bfil1b6036eil1c38ac1d403hl1e25f1f6079bdk1g22i1h24g1i568ace20568acj2134el2222g236079bil2425d25503fil2628a277036cfil2980369bfil2b6036eil2c38ac2d403hl2e25f2f6079bdk2g22i2h24g2i568ace32568ack3324e3432gk35568ace36414gk371e3871479bgk391e3a71479bgk3b1d3c414gk3d668acei3e22k3f34gi3g568ace", "ANETT,io600902468aceg02902468aceg04902468aceg0620208202095468ac0a2020b5468ac0c2020d5468ac0e2020g2020i902468aceg0k902468aceg0m902468aceg10902468aceg12902468aceg14902468aceg1620218202195468ac1a2021b5468ac1c2021d5468ac1e2021g2021i902468aceg1k902468aceg1m902468aceg21813579bdf23813579bdf2511271129112a53579b2b112c53579b2d112f112h112j813579bdf2l813579bdf31813579bdf33813579bdf3511371139113a53579b3b113c53579b3d113f113h113j813579bdf3l813579bdf4272468ace4412461248124a124b4468a4c124e124g124i124k72468ace5272468ace5412561258125a125b4468a5c125e125g125i125k72468ace", "LESLEY,og50080268egkm0280268egkm0480268egkm0680268egkm0880268egkm0a80268egkm0c80268egkm0e80268egkm1080268egkm1280268egkm1480268egkm1680268egkm1880268egkm1a80268egkm1c80268egkm1e80268egkm2080268egkm2280268egkm2480268egkm2680268egkm2880268egkm2a80268egkm2c80268egkm2e80268egkm3080268egkm3280268egkm3480268egkm3680268egkm3880268egkm3a80268egkm3c80268egkm3e80268egkm4080268egkm4280268egkm4480268egkm4680268egkm4880268egkm4a80268egkm4c80268egkm4e80268egkm", "CHECKYES,gcg00802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace11713579bd13713579bd15713579bd17713579bd19713579bd2262468ac2462468ac2662468ac2862468ac3353579b3553579b3753579b444468a464468a55357965268751785268953579a43579a63579b34468ab54468ab74468ac253579bc453579bc653579bc853579bd162468acd362468acd562468acd762468acd962468ace0713579bde2713579bde4713579bde6713579bde8713579bdea713579bdf217f43579f617", "YEEGH,kk900a02468acegi02a02468acegi04a02468acegi06a02468acegi08a02468acegi0aa02468acegi0ca02468acegi0ea02468acegi0ga02468acegi0ia02468acegi11913579bdfh13913579bdfh15913579bdfh17913579bdfh19913579bdfh1b913579bdfh1d913579bdfh1f913579bdfh1h913579bdfh2282468aceg2482468aceg2682468aceg2882468aceg2a82468aceg2c82468aceg2e82468aceg2g82468aceg3373579bdf3573579bdf3773579bdf3973579bdf3b73579bdf3d73579bdf3f73579bdf446468ace466468ace486468ace4a6468ace4c6468ace4e6468ace555579bd575579bd595579bd5b5579bd5d5579bd66468ac68468ac6a468ac6c468ac77379b79379b7b379b8828a8a28a", "KIKILOV,ie80060579bg02404cg04403dg065028eg08403dg0a404cg0c60579bg1060579bg12404cg14403dg165028eg18403dg1a404cg1c60579bg20368a2120g2224c2320g2423d2520g26328e2720g2823d2920g2a24c2b20g2c368a30368a3120g3224c3320g3423d3520g36328e3720g3823d3920g3a24c3b20g3c368a4027942404cg44403dg465028eg48403dg4a404cg4c2795027952404cg54403dg565028eg58403dg5a404cg5c279602796224c6320g6423d6520g66328e6720g6823d6920g6a24c6c27970187224c74403dg765028eg78403dg7a24c7c18", "TANAS,gc6004159d01337b03802468ace0560259bd061707404ce08327a09404ce0a3269104159c11337e1220a1362468ce1420a1562468ce161a174048d18326b1930491a426bd2060357be21192260257ce2319245047ce2522926204276268ace282042938ce2a4036a30702579bd3271358ace3460258ad3670248ace37163850248d3926a3a60248ce40702468ac411e4260357ac431e4461468ac451e46702468ac48702579be4a70357ace50802468ace52802468ace54802468ace56802468ace58802468ace5a802468ace", "DIIDRA,kg600435df02417bh04319h0621h0823f0a25d0c27b0e19106246ceg1280268acgi146028agi16402gi18424eg1a446ce1c468ac1e28a2081357bdfh22913579bdfh2471379bfh26413fh286135dfh2a6357bdf2c5579bd2e379b30a02468acegi32a02468acegi34a02468acegi366024egi3880246cegi3a82468aceg3c6468ace3e468ac40913579bdfh42913579bdfh44913579bdfh466135dfh4881357bdfh4a913579bdfh4c73579bdf4e5579bd50a02468acegi52a02468acegi54a02468acegi5680246cegi58a02468acegi5aa02468acegi5c82468aceg5e6468ace", "IKKE,fc8004024c011602308c031604304c051206304c07160820809160a4024c104024c111612308c131614304c151216304c17161820819161a4024c204024c211622308c231624304c251226304c27162820829162a4024c305024bd311632408bd331634404bd351236404bd37163820839163a5024bd404024c411642308c431644304c451246304c47164820849164a4024c505024bd511652408bd531654404bd551256404bd57165820859165a5024bd604024c611662308c631664304c651266304c67166820869166a4024c704024c711672308c731674304c751276304c77167820879167a4024c", "IKKE,gc800307e0122c03404ae042680520e0626807404ae0922c0a307e10307e1122c13404ae142681520e1626817404ae1922c1a307e20307e2122c23404ae242682520e2626827404ae2922c2a307e30307e3122c33404ae342683520e3626837404ae3922c3a307e40307e4122c43404ae442684520e4626847404ae4922c4a307e50307e5122c53404ae542685520e5626857404ae5922c5a307e60307e6122c63404ae642686520e6626867404ae6922c6a307e70307e7122c73404ae742687520e7626877404ae7922c7a307e", "P,ccg00246022280420a0620a082280a24610246122281420a1620a182281a24620246222282420a2620a282282a24630246322283420a3620a382283a24640246422284420a4620a482284a24650246522285420a5620a582285a24660246622286420a6620a682286a24670246722287420a7620a782287a24680246822288420a8620a882288a24690246922289420a9620a982289a246a0246a2228a420aa620aa8228aa246b0246b2228b420ab620ab8228ba246c1246c3237c4219c6219c7237c9246d215d4246d5228d6246d815e315e53357e715f515", "P,kk90028a0126c02448ae03426cg046048aei05426cg066048aei07426cg086048aei09426cg0a6048aei0b426cg0c6048aei0d426cg0e6048aei0f426cg0g448ae0h26c0i28a11191227b13359d14437bf155159dh16437bf175159dh18437bf195159dh1a437bf1b5159dh1c437bf1d5159dh1e437bf1f359d1g27b1h192228a2326c24448ae25426cg26448ae27426cg28448ae29426cg2a448ae2b426cg2c448ae2d426cg2e448ae2f26c2g28a33193427b35359d36437bf37359d38437bf39359d3a437bf3b359d3c437bf3d359d3e27b3f194428a4526c46448ae4726c48448ae4926c4a448ae4b26c4c448ae4d26c4e28a55195627b57359d5827b59359d5a27b5b359d5c27b5d196628a6726c6828a6926c6a28a6b26c6c28a77197827b79197a27b7b1988198927b8a19", "GDSFG,gcg00802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace11713579bd13713579bd15713579bd17713579bd19713579bd2262468ac2462468ac2662468ac2862468ac3353579b3553579b3753579b444468a464468a553579652687517851795268a53579b44468ab64468ac353579bc553579bc753579bd262468acd462468acd662468acd862468ace1713579bde3713579bde5713579bde7713579bde9713579bdf0802468acef2802468acef4802468acef6802468acef8802468acefa802468ace", "GDSFG,gcb00802468ace02402ce0460468ae0660468ae08402ce0a802468ace10802468ace12402ce1420e1535791620e18402ce1a802468ace20802468ace22402ce2420e252682620e28402ce2a802468ace30802468ace32402ce3420e35173620e38402ce3a802468ace40802468ace42402ce4420e4620e48402ce4a802468ace50802468ace52402ce5420e5620e58402ce5a802468ace60703579be6320e6520e6720e6a703579be7060468ae7420e7620e7a60468ae8050579e8520e8a50579e904068e9a4068ea0307eaa307e", "MY,gc8004048c01426ae024048c03426ae044048c05426ae064048c07426ae084048c09426ae0a4048c104159d11337b124159d13337b144159d15337b164159d17337b184159d19337b1a4159d20326a21348c22326a23348c24326a25348c26326a27348c28326a29348c2a326a30337b3125932337b3325934337b3525936337b3725938337b392593a337b402484126a422484326a442484526a462484726a482484926a4a2485025951175225953175425955175625957175825959175a25960166118621663186416651866166718681669186a16701772177417761778177a17", "ZEFFINA,fa800202015479bd021003359d0420705449bd063027071908407bd10202115479bd121013359d1420715449bd163027171918407bd20202215479bd221023359d2420725449bd263027271928407bd30202315479bd321033359d3420735449bd363027371938407bd40202415479bd421043359d4420745449bd463027471948407bd50202515479bd521053359d5420755449bd563027571958407bd60202615479bd621063359d6420765449bd663027671968407bd70202715479bd721073359d7420775449bd763027771978407bd", "LARNA,gc6004048c01426ae024048c03426ae044048c05426ae064048c07426ae084048c09426ae0a4048c10426ae114048c12426ae134048c14426ae154048c16426ae174048c18426ae194048c1a426ae204048c21426ae224048c23426ae244048c25426ae264048c27426ae284048c29426ae2a4048c30426ae314048c32426ae334048c34426ae354048c36426ae374048c38426ae394048c3a426ae404048c41426ae424048c43426ae444048c45426ae464048c47426ae484048c49426ae4a4048c50426ae514048c52426ae534048c54426ae554048c56426ae574048c58426ae594048c5a426ae", "HANANI,kk400903579cegi02903579cegi04903579cegi06903579cegi08903579cegi0a903579cegi0c903579cegi0e903579cegi0g903579cegi0i903579cegi10903579cegi12903579cegi14903579cegi16903579cegi18903579cegi1a903579cegi1c903579cegi1e903579cegi1g903579cegi1i903579cegi20903579cegi22903579cegi24903579cegi26903579cegi28903579cegi2a903579cegi2c903579cegi2e903579cegi2g903579cegi2i903579cegi30903579cegi32903579cegi34903579cegi36903579cegi38903579cegi3a903579cegi3c903579cegi3e903579cegi3g903579cegi3i903579cegi", "AGGELOS,gca00802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace20802468ace22802468ace24802468ace26802468ace28802468ace2a802468ace30802468ace32802468ace34802468ace36802468ace38802468ace3a802468ace40802468ace42802468ace44802468ace46802468ace48802468ace4a802468ace50802468ace52802468ace54802468ace56802468ace58702468ac5a5024686030246230246430246630246830246a30247030247230247430247630247830247a30248030248230248430248630248830248a30249030249230249430249630249830249a3024", "DESPI,gc500404ce02426ce04448ce064026a084028c0a402ae10404ce12426ce14448ce164026a184028c1a402ae20404ce22426ce24448ce264026a284028c2a402ae3020432226342483626a3828c3a2ae4020442226442484626a4828c4a2ae", "ELISE,ec400306c0123903306c0423906306c0723909306c0a2391023911306c1323914306c1623917306c192391a306c20306c2123923306c2423926306c2723929306c2a2393023931306c3323934306c3623937306c392393a306c", "HELLO,ag3004246801100232480316043024051706224071008325809100a32680b2040c2270d2050e23810502468125024681440246151816313517181831361a402471c414681e5024682016212182223523172411251526112718282142a2582b112d152e227", "COURT,gc300702468ae011c02513579032bd04513579052bd0640257072ac08602468e092ac0a4047e1021411479bd12235135179ce1423515479bd161217405be18337919315d1a337b20337b21359d2222b23358e242132537ad263035272ad2840257291b2a51468e", "PEPPI,gc3003ace0141468023ace0330360418056024ace061607528ace0820509479bd0a21410802468ace12702468bd1471468ace1671358ace18802468ace1a702579be205028be212462241ace231724404be2526926402ce272572830ad2932482a406be", "FLOR,gc301702468ad03802468ace05702469ce07613579d081b0951479d0a1b1162469be121013457ce143039151d1651468a171e18702468ac191e1a613579b201a21702468ce221a2351357e2429b254036d2628a2732462838ae2950246c2a38ae", "ANN,ec50050369c0250369c0450369c0650369c0850369c0a50369c104147a124147a144147a164147a184147a1a4147a2032582232582432582632582832582a325830236322363423636236382363a236401442154414461548144a15", "555,fc6005024680252468a0453579b065468ac085579bd0a5468ac115135791352468a1553579b175468ac195579bd2252468a2453579b265468ac285579bd2a468ac334468a354579b37468ac39479bd44368a46379b4838ac4a39bd5619", "OLI,ig6003024011c0232ae0338cg0432ae0538cg0632ae0738cg0832ae091c0a120c120e302410213121c1332ae1438cg1532ae1638cg1732ae181c19121b121e2132012231c2432ae2538cg2632ae271c28122a122e12341c3532ae361c37123912451c461248125712", "LILY,gc400802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace22802468ace244468a264468a28802468ace344468a364468a", "ZCXV,gg300802468ace0262468ac044468a0650579e0850579e0a4468a0c62468ac0e802468ace10337b114159d1362468ac1521d175147ad1921d1a53579b1c337b1d4159d2050579e22337b24347a2522c27802468ace2935792b5247ac2d337b2e4059e", "55656,gc300802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace204068e224268c244468a264468a284268c2a4068e", "78,ca600602468a02602468a04602468a06602468a08602468a10513579125135791451357916513579185135792042468224246824424682642468284246830335732335734335736335738335740246422464424646246482465023552235542355623558235", "OKSANA,gc600802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace11713579bd13713579bd15713579bd17713579bd19713579bd2262468ac2462468ac2662468ac2862468ac334468a354468a374468a4314441a452684724a5517", "1,ga600327c02327c04327c06327c08802468ace10327c12327c14327c16327c18802468ace20327c22327c24327c26327c28802468ace30327c32327c34327c36327c3862468ac4017421744174617484468a501752175417561758268", "RADIK,gc300326e014049b0227e03425ac0550379e0625b07319d082470922b0a4059d1032571129c123136132ad1431471529d1630361738be18202195469ce1a11201b214147d2219232be242362529d2612274479c281129458be", "LILIA,gc400802468ace02713579bd0453579b0653579b0862468ac0a802468ace10713579bd1262468ac144468a164468a1853579b1a713579bd2162468ac234468a254468a274468a2953579b313579333579353579373579393579", "WAYBACKHOM,gc300502479012bd0241368032ad04302405479be06302507379c084135e0927b0a50249d1029d114147b1229d134246b142081532be163047173ace1841368191c1a61368ae20112163579bd2371468ace2531ce264357a2720c2835ae2931382a45ace", "NNN,gc400802468ace02713579bd0462468ac0653579b084468a0a62468ac10713579bd1262468ac1453579b164468a1835791a53579b2051369c2252468b244357a2634692835792a4357a304247b324358a34346936258382683a3469", "MUNA,gc300802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace205268ae225024ce2434ae265028ae28306e2a50268a", "GNGNGNSD,eb5002ac0142468022ac0350246805238072380942479102ac1142468122ac1350246815238172381942479202ac2142468222ac2350246825238272382942479302ac3142468322ac33502468352383723839424794113421743215", "ALLA,gc300402ac014468e02402ac034468e04402ac054468e06402ac074468e08402ac09357e0a4039b1121b1253579d1321b144579d15313b164579d17313b184579d19313b1a19211c223268232ac2442468252ac2632482736ac283248291c", "FISHKA,gc400802468ace025135ce043468051c0650579e08703579ce0a702579bd10379b114135d1322414161524816306d1724818306d192481a416ac2038ac22224241525172625927317d2825929317c3029b321335163618371638318d", "KKKK,cc400325802602468a0422805305a0622808602468a0a325810325812602468a1422815305a1622818602468a1a325820325822602468a2422825305a2622828602468a2a325830325832602468a3422835305a3622838602468a3a3258", "VERA,gc500170140359034258b055147ad074369c09359e0a27b1131681213134158b141315457ad1613174579c194579e1a1b222262324824326a25348c26326a2724c28468ae291c33237342593523736359b37173839bd442354527946154728b", "DANA,gc400802468ace0262468ac0460468ae06268085027ce0a402ce10802468ace1262468ac1460468ae16268185027ce1a402ce20802468ace2262468ac2460468ae26268285027ce2a402ce30802468ace3262468ac3460468ae36268385027ce3a402ce", "ERG,fb5004146c011a024248c0326a04202054579c062130737ac0822409279102371129b1223613319b14357d1522b163479171c18336921258221b232582423b251626348a272262824933347a35347a37347a422694423b45164623b47269", "KJPYUKJOYK,gc500180227904368a064579b0863579bd0a802468ace10181227914368a164579b1863579bd1a802468ace20182227924368a264579b2863579bd2a802468ace30183227934368a364579b3863579bd3a802468ace40184a18", "453575647,ga7004468a0262468ac04802468ace0662468ac084468a102681262468ac1462468ac1662468ac1826820268224468a244468a264468a282683017324468a344468a364468a381740174235794435794635794817522685426856268621764176617", "KKKK,ea5003468022390452468a064139b08702468ac103468122391452468a164139b18702468ac203468222392452468a264139b28702468ac303468322393452468a364139b38702468ac402484223944326a4621b48702468ac", "KKKK,gc400402ce014468a02402ce0421d0621d08402ce094468a0a402ce10402ce114468a12402ce1421d1621d18402ce194468a1a402ce20402ce214468a22402ce2421d2621d28402ce294468a2a402ce30402ce3124a32402ce3421d3621d38402ce3924a3a402ce", "LANA,gc500802468ace0320e044468a0520e064468a0720e0a802468ace10802468ace1320e144468a1520e164468a1720e1a802468ace205147ad2420e2535792620e2a5147ad3062468ac354068e3a62468ac40337b45174a337b", "0123456789,ee300702468ac02302c031504307b0519062070725b083038091c0a2160b1c0c4047a10702468ac12302c13141420615181610171a184058c19131b21c1c347a2030592222c2314241625182720a2825c29112a142b112c358b", "GFSNX,gc800468bd01302402468ad03204046268ace0520406426ce07348a085026ce09140a6168ace1262468ac145048ce1662468ac171018426ae19142351579d25713579bd2751579d34337b354159d36337b4553579b554468a65357975268", "DFG,gc400226014049b02326d032090434bd0532690620b0728e0823a094158d0a1b111a1242468132ac14413571539bd16335717419bd182471932ac214369b221d2332462429e2524b26327e2725b28339e2927b2a1d32335a3328c341a35336837247", "IRA,gc3001e01602479c021e034036a0428c055135ae0628c075146ae0828c0950246a0a38ce10613579b111e12369c13314e14369b15121660479be184036a1938ce1a50246a20318d2115224038b231d2430462538ad262252738bd28225292bd2a3158", "JJ,gc500802468ace025037be045037be065037be08403be0a4468a10802468ace125037be145037be16403be18403be1a4468a20802468ace225037be24403be26403be282be2a26830713579bd32403be34403be362be3a174062468ac42403be442be", "SPANKY,ac70014022350422606226082350a141014122261421716217182261a1420235222172420826208282172a23530235322173420836208382173a2354014422264421746217482264a145014522355422656226582355a1460146214642356623568146a14", "TUNG,gc50020e0262468ac0422c0622c0862468ac0a20e1020e1262468ac1422c1622c1862468ac1a20e2020e2262468ac2422c2622c2862468ac2a20e3020e3262468ac3422c3622c3862468ac3a20e4020e4262468ac4422c4622c4862468ac4a20e", "RUKI,gc400802468ace0220e0362468ac0420e0562468ac0620e0762468ac0820e0a802468ace1062468ac1120e1320e1462468ac1520e1662468ac1720e1920e1a62468ac2062468ac2220e2420e2562468ac2620e2820e2a62468ac3320e3520e3720e", "AFFA,gc600170226804259064468a0823b0a402ce10171226814259164468a1823b1a402ce20172226824259264468a2823b2a402ce30173226834259364468a3823b3a402ce40174226844259464468a4823b4a402ce50175226854259564468a5823b5a402ce", "KIKILOV,eb50152468a0320c05306c0720c0952468a1016114248a1320c15306c1720c1816194248a201622435792321b25316b2721b2816294248a301632435793321b35316b3721b3816394248a401642435794422a45164622a4843579", "ME,ga500702468bd02713579be04702579bd06713579be08702468bd10702468ad125157be14702468ad165157be18702468ad20426ae22802468ace244048c26802468ace28426ae30713579bd3252469c34713579bd365269bd38713579bd443579", "777,gc300802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10802468ace12802468ace14802468ace16802468ace18802468ace1a802468ace20402ce2260268ce2460268ce2660268ce2860268ce2a402ce", "KK,gc600802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace1120e1320e15802468ace1720e1920e2220e2420e2562468ac2620e2820e3320e35802468ace3720e4420e4562468ac4620e55802468ace", "KUMA,gc600802468ace0220e0353579b0420e0553579b0620e0753579b0820e0a802468ace11713579bd1321d144468a1521d164468a1721d19713579bd2262468ac2422c2535792622c2862468ac3353579b354368b3753579b45175517", "CPAGES,ec60052468a0110022ac034046805702468ac0740468082ac09100a52468a1033691220b13258141b1541379161b172581820b1a3369213468221023358a2552468a27358a28102a34683325735257372574416461654165616", "456676,gc300437bd01315902437bd031104457bd05313906357d0721b0853579e0a713579bd1060246ae1128c125036ae14802468ace1660247ad1860258be1a5147ad20802468ace2262469bd245357ac2624b28713579bd2a62468ac", "MAY,gc400802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace10324e12326c14602468a16602468a18326c1a324e20224211d22226231b24122530582612271b28226291d2a22430123115321c34123530583612381c39153a12", "HILLIE,ga500713579bd0253579b04802468ace0653579b08713579bd1062468ac124468a14713579bd164468a1862468ac2053579b2235792462468ac2635792853579b304468a322683453579b36268384468a4035794217442684617483579", "IKKE,ga6005027ce025027ce045027ce065027ce085027ce105037be125037be145037be165037be185037be205047ae225047ae245047ae265047ae285047ae304059e324059e344059e364059e384059e404068e424068e444068e464068e484068e5417", "MIZZY,ij40080246aceg0280246aceg0480246aceg0680246aceg0b80246aceg0d80246aceg0f80246aceg0h80246aceg116135bdf136135bdf156135bdf1c6135bdf1e6135bdf1g6135bdf22424ce24424ce2d424ce2f424ce3323d3e23d", "YVONNE,gc400307e02327c04347a0520e06347a08327c0a307e10181121d12181323b141815405ae16181723b18181921d1a1820307e22327c24347a2520e26347a28327c2a307e30163121d32163323b3416354049e36163723b38163921d3a16", "MMM,gc300702479be0270357ace04702469bd0671358ace0870257ace0a62479ce1062468ae1110126246ace1310146268ace15204166268ace17204186268ace19101a6246ace205046ae212282224c23408ae24326c25404ae264268c2720a285358ce29112a63579ce", "P,kk500a02468acegi0220i0420i0620i0820i0a20i0c20i0e20i0g20i0ia02468acegi1181357bdfh1321h1521h1721h1b21h1d21h1f21h1h81357bdfh226246ceg2422g2622g2c22g2e22g2g6246ceg33435df3523f3d23f3f435df4424e4e24e", "CLAUDIA,db6003357012190320b04140520b06259072170922411435791211131a14101525b16307918111913213357222192421b264168a28123124632228331a3412351b363279381342335743194413451a462384814522685314541a5514561957145915", "NHG,gc5005168bd01140270268ace0314044179d05335b06319d07337b084059d09327b0a349d115157bd12239134157c1423a1518165246bd1718185135ac19171a349d211622313c23357a2413253579262bd2742579281b292493416351a36268371a441646269", "ANA,gc30011015358ce0220a03448ce044026a05448ce064026a07448ce084026a092480a6026ace1011115358ce1220a13448ce144026a15448ce164026a17448ce184026a192481a6026ace20112124d232482420c25162622a271e284048c2a326c", "TDH,gg8062680826815357917259193579244468a2624a2824a2a4468a3353579b3523b3723b3923b3b53579b4262468ac4422c4622c4822c4a22c4c62468ac51713579bd5321d5521d5721d5921d5b21d5d713579bd60402ce6220e6c20e6e402ce7121d7d21d", "MIEKE,gc300308c01436ae021103458ac04302e0525706419ce0733570830bd092590a5037be10458ae1121c122691323e144058c151a165158ce1723a18306e191c1a5248ae2022b2119222ce233246242ad2521726335a271d281429418ac2a24e", "JAZ,ii30080246aceg0280246aceg0480246aceg0680246aceg0880246aceg0a80246aceg0c80246aceg0e80246aceg0g80246aceg106036adg146036adg186036adg1c6036adg1g6036adg20425be24425bf28425cf2c425bf2g425cf", "ANTOINETTA,gc800357902347a044368b0652579c085147ad0a60368be1026812357914347a164368b1852579c1a5147ad20172226824357926347a284368b2a52579c32173426836357938347a3a4368b4417462684835794a347a5617582685a357968176a2687a17", "SARAW,ie50063579bd0121f03803579bdg05803579bdg07803579bdg09803579bdg0b21f0c63579bd105468ac134579b14403dg1670368adg18403dg194579b1c5468ac204579b2427925405bg2627927405bg282792c4579b35183626a37184618", "DA KING,gc50062468ac02713579bd04802468ace06802468ace08713579bd0a62468ac1035791262468ac14713579bd1662468ac1853579b1a4468a2026822357924268263579282682a35793117331735268372683926844174617", "INGE,ec600100162468ac02100322c04306905120660468ac071208100962468ac0a101160468ac13101426915101626917101960468ac21368a231024269251026269271029368a31183310342693510362693710411845104626947105118562695710", "STEPHAN,gc400802468ace024468a04802468ace064468a08802468ace0a4468a10713579bd12357914713579bd16357918713579bd1a35792062468ac222682462468ac262682862468ac2a2683053579b32173453579b36173853579b3a17", "RACHEL,gc300802468ace026057ace031304505ace0522706504ace07226086048ace0a802468ace10802468ace126057ace131314505ace1522716504ace17226186048ace1a802468ace20802468ace2240ace2440ace2640ace2840ace2a802468ace", "ZANA,ec500702468ac02306c0322a0434680520c0616072480822a0920c0a52468a1050468c12306c1322a1434681520c1616172481822a1a326a2050468c22306c23122434682520c2616272482822a2a326a321634346836164416", "FRANKY,cc500602468a02140414053268061408140a1410602468a12141414153268161418141a1420602468a22142414253268261428142a1430602468a32143414353268361438143a1440602468a42144414453268461448144a14", "SIL,ec60034680252468a0320c0452468a0520c0652468a0720c0852468a0a346811346813613579b15613579b17613579b1934682116222482322a2434682522a2634682722a28248291633435793543579374357944346846346855257", "J,ge40024a0260268ce0460268ce0660268ce0860268ce0a60268ce0c24a1024a1260268ce1460268ce1660268ce1860268ce1a60268ce1c24a2024a2260268ce2460268ce2660268ce2860268ce2a60268ce2c24a3024a34317d38317d3c24a", "SSSSSSSSSS,gc40050579e0250579e0450579e0522c0650579e0850579e0a50579e10414ad12414ad14414ad16414ad18414ad1a414ad204259c224259c244259c264259c284259c2a4259c304468a324468a344468a364468a384468a3a4468a", "NIKITOS,ac500246012280322804246051806160724808120920810424681222814424681626817141822819101a18203357222282442468261727152823829112a18302463122833228342463518361637248382263930483a124015422284415471748154913", "AQLYSSA,gc30062479ce011002429be03305704339e05305c06428ae07140870268ace0a802468ace10319c11347e1220a131214547ace16479be173025182be19171a5149ce20162215232ae242152538ae2752579b2925e2a327a", "THEVIDE,ki30073579bdf0121h0320i056057aci0720i08180920i0a23c0b20i0c4579b0d20i0f21h0g73579bdf1173579bdf1221h1421h15457ac1621h18318h1a413ch1c61579bh1e21h1g72468bdf21468ac2526b28182a23c2c26a2g368a", "B,ee400702468ac0220c03435790420c05435790620c07435790820c09435790a20c0c702468ac11613579b1321b1434681521b1634681721b1834681921b1b613579b2252468a2422a252572622a272572822a2a52468a3343579352393616372393943579", "NM,ac40022401206032080414053026061807100818092060a2241022411206132081414153026161817101818192061a2242022421206232082414253026261827102818292062a2243022431206332083414353026361837103818392063a224", "INEKE,gc40020e0162468ac0220e0362468ac0420e0562468ac0620e0762468ac0820e0962468ac0a20e11713579bd13713579bd15713579bd174468a194468a2262468ac2462468ac2635792835793353579b3526837268", "JAKUB,gc600802468ace02406ae044026e06402ae085026ae0a70246ace11713579bd1321d1521d1721d19713579bd2262468ac2422c2622c2862468ac3353579b3523b3753579b444468a464468a55268", "LANA,gc300306b0129d022150328e042150528a06315c071e082240928e0a33ac11306b1229d13215141915315b161d172241828e1933ac22315b2329d24215251a26324c271e28239292bd2a13", "JAN,gc60020e0222c0424a06268082680a6024ace1121d1323b152591717192591a413bd2020e2222c2424a26268282682a424ac3121d3323b352593717392593a23b4020e4222c4424a46268482684a24a5626858268", "GHGHGH,gc300802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace103579124468a1453579b1662468ac18713579bd1a802468ace20268223579244468a2653579b2862468ac2a713579bd", "ARTEMIS,gc60020e024268c032ae04304805426bd063048072ae084268c0a20e11317d121313369c1422e1560468ac1622e17369c181319317d2021d2222d2450379b251d26305927337b28319e2a21e35368a3727946185618", "SAPPHIRE,gc300802468ace0220e0362468ac0420e054259c0620e0762468ac0820e0a802468ace11713579bd13317d154159d17317d19713579bd2262468ac24327c2524a26327c2862468ac", "BYANCKA,gc30070247ace0220e035357ac05703579be0753579b0820e0a60369ce106257ace1110121e1360357ac1560468be174468b1820e1a802468ace20304921227221c23428ae2533ad27403ad282572a1e", "BETH,ec400702468ac02613579b04702468ac06613579b08702468ac0a613579b1052468a12435791452468a16435791852468a1a4357920346822257243468262572834682a257321636163a16", "DU,gc40020e0122c02404ae0326804402ce051706402ce08402ce0a402ce1121d1223b134159d14171521d1721d1921d2221d2323b244159d25172621d2821d3321d3423b354159d36173721d", "CLAUDIA,ga300802468ace02703579be04703579be06713579bd08802468ace10802468ace12703579be14703579be16713579bd18802468ace20713579bd22713579bd24713579bd2662468ac28713579bd", "HJ,gc5002040122602304803326a044048c05426ae06348c0736ae0828c092ae0a1c11121220413226142481526a1628c172ae181c2212231424162518261a271c3313341535173619371b381d431444164518461a471c", "MILA,gc600338d025368ad0460248ce0660248ce0860248ce0a5368ad125368ad145248ce1510165248ce1710185248ce1a368a224379d2560248ce2760248ce2a27932183660248ce3a184218464138d4a185622d", "VVVV,gc4004039e02603579e04309e06309e08603579e0a4039e104039e12603579e14309e16309e18603579e1a4039e204039e22603579e24309e26309e28603579e2a4039e30309e32309e34309e36309e38603579e3a4039e", "004,gc600802468ace024068e044068e05424ac064068e084068e0a802468ace104068e1220e1420e1620e1820e1a4068e204068e2220e2420e2620e2820e2a4068e304159d3a4159d40424ac4a424ac5023b5a23b", "ALINA,fa40023d02313b0443579051106337907100833791023d12313b1443579151116337917101833792023d22313b2443579251126337927102833793023d32313b344357935113633793710383379", "BHYT,ca60050257902402690314043179051406318a07236081910424681250246814424681652468a18258203357224135724335726424682825730246322263433573624638164424646155415", "SCARLETT,e95005058ac023058042050538ac062050718105058ac123058142051538ac162051718205058ac223058242052538ac262052718305058ac323058342053538ac362053718405058ac423058442054538ac462054718", "SASHA,ee400326a02702468ac04326a06702468ac08326a0a702468ac0c326a10326a12702468ac14326a16702468ac18326a1a702468ac1c326a20326a225026ac265026ac2a5026ac2c326a32326a36326a3a326a", "345,ec3001601402ac0224803306c044248a05306c064248a07306c084248a09306c0a239102291116124148b1316144148b1516164148b1716184148b19161a229212582223a232582423a252582623a272582823a29258", "1111,gc50020e0253579b0462468ac0653579b0862468ac0a703579be1020e124468a1453579b164468a1853579b1a60468ae2121d2223b2435792635792835792923b2a21d34268362683826845174717", "LENA,cc4003135023024031604313a0526806302a084024a0a4358a103135121413226141a152281620a18324a1a4358a203135222242422a261a281a2a4468a3015311333123512381a3a368a", "111,ec400346802160320c0424805402ac062480720c08160a346810346812161420c154248a1620c18161a34682025722162320c2424825402ac262482720c28162a25730346832163420c354248a3620c38163a3468", "111,ie30024c01426ae025048cg03426ae04180522e0624c0726a0824c0926a0a180c181024c11426ae125048cg13426ae14181522e1624c1726a1824c1926a1a181c182124c22426ae23182422e2624c2726a2a18", "MMM,mi30028c02468ce046468ceg0682468cegi08a02468cegik0a82468cegi0c6468ceg0e468ce0g28c1428c16468ce1724g1880268ceik1924g1a6268cei1b24g1c468ce1e28c2528c2728c2928c2b28c2d28c", "LANA,gc30060259ce01170224a034268c0420e0535790620e0735790822c092680a24a10802468ace1224a134268c1420e1535791620e1735791822c1a4468a205027ce2224a2322c251727172822c2a24a", "STINA,cc500602468a02602468a04602468a06602468a08602468a0a602468a1052468a1252468a1452468a1652468a1852468a204468a224468a244468a264468a30368a32368a34368a4028a4228a", "MOM,gc50024a0122c024468a03402ce04170561359bd0617074359b0817092590a171153579b1221d13357914413bd1526816424ac172681824a192682324a242682524a26172725928173526837174617", "7565,ca600602468a0220a0420a0620a08602468a105135791220a1420a1620a1851357920424682220a2420a2620a28424683033573220a3420a3620a383357402464220a4420a4620a4824650155220a5420a5620a5815", "OLA,gc40024a0160268ce0224a0360268ce0424a0560268ce0624a0760268ce0960468ae0a22c104369c125147ad144369c164258b18347a1a3579201822368a24368a2627928182a368a3218341836183818", "TUNG,gc40020e0262468ac0422c0622c0862468ac0a20e1020e1262468ac1422c1622c1862468ac1a20e2020e2262468ac2422c2622c2862468ac2a20e3020e3262468ac3422c3622c3862468ac3a20e", "OLY,ec6004357902613579b04402ac051606402ac0851468b0a424791152468a13435791421b1621b17435791934682234682452468a2652468a28257332573524837164416461654165616", "LOLEK,gc3004028e0126b024048d03326a045048ce05326a064048d07326a085048ce09326a0a5048ce1160368ac121e1327b1440249152ce1631581723a18415ce192381a406be22225232792411251d26122725b28279", "LERA,gg400224022240422406502468085024680a5024680c802468ace0e802468ace111313131513174135719413571b413571d713579bd251327132931352b31352d51357939133b2243c16", "ZOO,if301902468aceg03813579bdf05902468aceg07426ae09813579bdf0b902468aceg0d813579bdf11813579bdf136246ace16426ae18426ae1b813579bdf1d6246ace201822435bd27426ae2c435bd", "9096,ee600306c0222a0424806306c082480a22a0c306c11316b13239152571621b17257192391b316b22326a2424826326a282482a326a333369352573623937257393369442484616482485616", "NADYA,cb50051357902602468a0421905335707602468a09602468a1042468125135791421915335717513579195135792033572242468242192533572742468294246830246324246834219353357374246839424684215", "NODUSH,gc6003579024468a0453579b0662468ac08713579bd0a802468ace113579134468a1553579b1762468ac19713579bd223579244468a2653579b2862468ac333579354468a3753579b443579464468a553579", "NATA,ic30071358bdf0271358bdf04802479ceg06802479ceg0871358bdf0a71358bdf1071358bdf1271358bdf14802479ceg16802479ceg1871358bdf1a71358bdf20318f22318f2420g2524c2620g28318f2a318f", "KSENYA,ec401613579b0320c0452468a0621b07435790922a0a346810613579b1252468a14613579b1652468a18613579b1a52468a2243579242572623928257312483316353468371639248", "ELENA,ac40050246802100410053246061008100a5024681050246812101410153246161018101a5024682050246822102410253246261028102a5024683050246832103410353246361038103a502468", "NHNH,cc6001a01180226a0324804326a05304806326a072480826a09180a1a111a12181326a1424815326a162481726a1818191a221a23182426a252482626a2718281a331a34183526a3618371a441a4518461a5519", "VIKA,gc500802468ace026024ace046024ace066024ace086024ace0a802468ace1062468ac12424ac14424ac16424ac18424ac1a62468ac204468a2224a2424a2624a2824a2a4468a302683a26840174a17", "1000,fc300713579bd02702468ac04713579bd06702468ac08713579bd0a702468ac10713579bd12702468ac14713579bd16702468ac18713579bd1a702468ac2051579d22702468ac2453579b26702468ac2851579d2a702468ac", "ZAZA,fc301613579b0321b0551479b071109110a63579bd1062468ac1110121c1310141c1510165468ac171019101a62468ac2053579b2111221b2311241b2511264579b271129112a53579b", "AI,gc40026801402ce03402ce0526806402ce08402ce0a2681161368bd13413bd142681661368bd18413bd19268215247ac235247ac251726424ac271728424ac29173017314359b334359b3517364359b384359b3a17", "AURELIE,gc50050579e02327c04347a06268076024ace082680a24a102681121d12171323b14171626817413bd182681a24a21172222c23172424a251727327c29259311733337b351737327c39268411743337b451747327c4917", "NENA,gc30020e0122c02404ae034268c04404ae054268c06404ae074268c08404ae0922c0a20e1021d1123b1221d134359b14317d154359b16317d174359b1821d1923b1a21d2223c24415ae2527c261327417ae28152923c", "HELENA,gc30070247ace0261368bd0461368bd0652579c08713579bd0a802468ace105137bd12327c14327c164268c1862468ac1a713579bd2070247ace2261368bd2461368bd2652579c28713579bd2a802468ace", "VNB B,ee70020c0220c0334680420c052480620c0734680820c0a20c0c20c1120c1320c142571520c162571720c1920c1b20c2220c2420c25162620c2820c2a20c3320c35306c3720c3920c4420c4620c4820c5520c5720c6620c", "RACHEL,gc600402ce02402ce0324a04402ce054468a06402ce0724a08402ce0a402ce1020e1122c1320e1422c154468a1620e1722c1920e1a22c20402ce22402ce24402ce251726402ce28402ce2a402ce351745175517", "SARAH,ee30050468c0122a02248034026c041a05424680630ac0724808326a0920c0a52468a0c50369c103357111912121412153468161a181a19111a435792034682122a23122542468261a281a29102a52468a", "QQQQQQ,ea6004147a0250369c044147a0650369c084147a104147a1250369c144147a1650369c184147a204147a2250369c244147a2650369c284147a324147a343369364147a383369423369442474633694824752165616", "DIKKOP,gc500402ce02402ce04357906357908402ce0a402ce11402ce133579154468a17357919402ce20402ce22402ce24368a26368a28402ce2a402ce31402ce332793527939402ce411144184921d", "P,gg40062468ac0260468ae0460268ce066024ace086024ace0a60268ce0c60468ae0e62468ac104468a122681420e16402ce18402ce1a20e1c2681e4468a202682620e2820e2e26830173720e3e17", "DEAD ANGEL,gc50060468ae0262468ac0462468ac0520e0662468ac0862468ac0a60468ae1035791262468ac144468a164468a18327c1a3579202682335792535792a2683017342683a174417", "SUSI,cc600602468a021004100542468061a081a0a602468a10513579121014101542468161a181a1a5135792042468221024102542468261a281a2a424683033573310353357371a3a335740246452464a246501555155a15", "SUSI,gc50020e01327c02404ae034268c0424a05170624a074268c08404ae09327c0a20e1120e1222c134468a15347a174468a1822c1920e2221d2353579b25347a2753579b2821d344468a364468a453579", "CLAUDIA,gc60022c02413bd04402ce06402ce08413bd0a22c12424ac14413bd16413bd18424ac222592424a2522c2624a2825932268342593523b362593826843268454468a4726854175617", "APPOLONIA,ca500602468a024246804602468a064246808602468a1042468122461442468162461842468202462224624246262462824630246322463424636246382464115431545154715", "CLAUDIA,ea60121b02160321b04435790521b06160721b10402ac111612402ac13346814402ac15346816402ac171618402ac2121b22162321b24435792521b26162721b3222a34326a3622a44336954257", "HIHI,ga80020e0220e0420e0620e08713579bd1021d1221d1421d1621d18347a2022c2222c2422c2622c3023b3223b3423b3623b4024a4224a4424a4624a50259522595425956259602686226864268662687017721774177617", "LYSSA,gg600508ace023ace042ce061e0e20e115179bd1339bd152bd171d1d21d225268ac2438ac262ac281c2c22c3353579b35379b3729b391b3b23b444468a46368a4828a4a24a55435795735795935795b19", "STEVES,cc800602468a0350357a0550357a0750357a0a602468a113159153159193159211522228253159282282915311533237353159372373915411544246452194624649155215553258581564246662467515", "MARINEEE,ec5025026ac042480660248ac082480a5026ac11326a13326a15257174257a194257a204139b224139b244139b274139b294139b3124833248362483824841257432574625748257", "DFG,gg300802468ace02160462468ac0670248ace0862468ac0a34680c52468a0e802468ace10802468ace12161462468ac1670248ace1862468ac1a34681c52468a1e802468ace2116231625257265139bd2725729162b162d16", "C,ca702246042370624612151323715237161521152223724228262372715312463322835228372464015422374421946237481550246512285320a5520a5722858246601561237622196420a66219672376815", "ROCHY,gc6004068e0251579c044468a0653579b0862468ac0a713579bd1117134168c153579174468a1953579b23172421c25268273579294468a35317c372683935794621c4717492685917", "NATHALIE,gc4006024ace011702404ae031704404ae051706404ae071708404ae0a802468ace10413bd12307e1324a14307e1524a16307e1724a1820e1a5247ac2022c23307e2424a25307e2624a2720e2a337b341735404ae", "KIM,eb300248012ac0242468032ac04502468052ac0642468072ac083268092ac10248111a1242468132ac1442468151a1642468172ac18268191c223468232ac243268251a26226271c2828a291c", "MIMI,if3002ac01468eg03568ceg055168df0740279081b094029d0b402ce0c4468a0d1c1039bd1127f1337df1527e17218181a1921d1b21d1c53579b2038ac222682426826217271928302b2929d2a112b1d2c52468a", "MARY JANE,gc40023b014159d0217036024ace04268056024ace0617074159d08337b092590a171123b124159d13337b144159d15337b164159d17337b1825919172323b2425925337b2625927173524a36268", "CHIC,gc500170217034359b041706327c0870247ace0a327c10171217134359b141716327c1870247ace1a327c20172217234359b241726327c2870247ace2a327c30173217334359b341736327c3870247ace3a327c4822c", "2,f6800713579bd02702468ac04713579bd105139bd1250369c145139bd205139bd22702468ac245139bd305139bd32702468ac345139bd405139bd42613579b445139bd505139bd5252468a545139bd62613579b72326a", "CLER,ie600902468aceg026036adg046036adg066036adg086036adg0a6036adg0c6036adg125147be145147be165147be185147be1a5147be22336d24336d26336d28336d3224d3424d3624d4224d4424d5224d", "J,ge401713579bd03713579bd05713579bd07713579bd09713579bd0b713579bd10802468ace1220e1353579b1420e1553579b1620e1753579b1820e1953579b1a20e1c802468ace21317d26317d2b317d3617", "M,gc40020e0122c02404ae032680420e0620e08402ce0a402ce1021d1123b124059e13171420e1620e1821d1a21d2022c2124a224168d2421d2621d2822c2a22c3021d3123b324159d33173421d3621d3821d3a21d", "RODI,ge6006024ace026024ace046024ace086024ace0a6024ace0c6024ace106024ace126024ace146024ace186024ace1a6024ace1c6024ace22424ac2a424ac324359b3a4359b424468a4a4468a52175a17", "KKKK,gg60060268ce0260268ce0460268ce06802468ace08802468ace0a60268ce0c60268ce0e60268ce16713579bd18713579bd2662468ac2862468ac3653579b3853579b464468a484468a5626858268", "KKKK,ee40062468ac0260468ac0460268ac0660248ac0860246ac0a602468c0c602468a1153579b1351579b1551379b1751359b1951357b1b513579224468a244268a264248a284246a2a4246833279352793723539235", "MILLY,eb40034680122a0250468c0450369c065026ac08326a094048c10435791121b122571450369c165026ac1816194139b20435792121b22257244157b265026ac28257294139b3052468a32316b34316b36316b38163922a", "CARO,ee40020c0122a02248044057c0522a0634680722a084057c0a2480b22a0c20c1121b1223913257154157b16239174157b192571a2391b21b2222a2324824162652468a2816292482a22a3643579", "DRAGON,kk30080246cegi02406ci04406ci06a02468acegi0826c0a26c0ca02468acegi0e406ci0g406ci0i80246cegi116135dfh13415dh156135dfh17379b1927b1b379b1d6135dfh1f415dh1h6135dfh2626c2c26c", "MA,ca400424680120a0320a04150520a0720a084246810424681120a1320a14151520a1720a184246820424682120a2320a24152520a2720a284246830424683120a3320a34153520a3720a3842468", "EMILY,gc701802468ace04802468ace07802468ace0a802468ace105037be1262468ac1320e1462468ac1662468ac1720e1862468ac1a5037be2262468ac2462468ac2662468ac2862468ac344468a364468a453579552686517", "CARLOS,gc40020e01170222c03307e0424a0560268ce0624a07307e0822c09170a20e1020e11171222c131714404ae154268c16404ae17171822c19171a20e2020e211725307e29172a20e3517", "1111,ec60024a0126802324a034068c04324a054068c06324a074068c08324a09368c0a24a112681224a132681422a1534681622a1734681822a193468232682526828368a29142a26835268382684516461847165617", "THEVIDE,ki20030240136eg02408ci04408ci06308c072eg08308i0a308i0c308i0e308i0f46ceg0g3024115135df1227h1321d1427h1521d16171721d1827f1921h1a171b21h1c171d21h1e457df1f213", "TAHANI,ie5005048cg02426ae045048cg06426ae085048cg0a426ae0c5048cg11426ae135048cg15426ae175048cg19426ae1b5048cg22348c24426ae26348c28426ae2a348c3326a35348c3726a39348c44184626a4818", "SCHENGGE,gc301713579bd0321d044468a0521d064468a0721d09713579bd1024a1262468ac1320e1422c1550579e1622c1720e1862468ac1a24a2124a2353579b25337b2753579b2924a", "AMBER,ec400702468ac0220c0316044048c0516064048c07160820c0a702468ac11326b13161424815306c16248171619316b21316c241825306c261429326a30316c35306c3a326a", "L95,gc300802468ace0220e031a0420e054468a0620e0820e0a802468ace1062468ac1220e131a1420e154468a1620e1820e1a62468ac20348c2330ae25368a2610271e2a348c", "LOLO,dc400613579b02110411053357061108110a613579b1152468a12101410153246161018101952468a225024682410252242610285024683131353311352133711393135", "EE,gc4004059e024468a0322c054268c07337b0924a0a4068e1020e11259134368b1523b16171724a1935791a20e2020e22259244468a264468a2835792a20e353579373579", "CAHES,ac500140250246804324606140832460a50246810141232461414161418141a3246201421226221423226241426142814292262a14302263214342263a235422354a14", "HENI,gc300413bd012590230ce03337904405ce05337906415bd0717084359b0a357910313d11359b1221e1317145049ce151716413be172581833ac1a368a23172420e2a18", "123,fc300100163579bd021003358b04303d05358b06303d07358b0810094379d0a305b124058b14368a15304c16181725b182081a25b222052328b254048c271828102a25b", "Z,g9300802468ace0270468ace03120470468ace06802468ace10802468ace1260468ce131a145046ce1518165046be172292070468ace224048e231c24414ae25182634ce27302a", "J,aa50050246802314704217051406217085024681041357122171314142171631471841357203246222262422626226283246302353222634226362263823540144222644226462264814", "ANAIS,ia30022g016468ace036468ace056468ace0622g0728a0822g1121f1263579bd1463579bd16813579bdf184179f2120e2262468ac2462468ac26802468ace284068e", "BEL,gc400403be012680222c0335790421d05347a0621d0735790822c092680a403be11413bd1317154268c171719413bd206024ace24268262682a6024ace30413bd35173a413bd", "DANA,gb30071357ace0262468ac044468a062680724a09802468ace105136ad12335c1327a141415161734691961368bd20313a2127d22235231b242692616271929268", "MI,ga400357901403be02357903413bd054468a074359b0821d114468a1221d1323b154468a174359b1821d21357923424ac253579274359b2821d31173324a35173723b", "SHSHSH,eb4002ac01402460228c034024605702468ac07468ac09702468ac101b12314714313516379b18379b19224211a2332462738ac293357311a332353729b39246", "SA,gb40050579e024168d0422c0621d084068e09424ac1021d1135791221d1335791521d1735791821d202692121d2335792421d2721d2835793126933317d3621d393579", "212,gc300802468ace02402ce04404ae052680620e0724a08402ce0a802468ace1062468ac121c1420a15268161018101a368a2062468ac221c2420a25268261028102a368a", "NATACHA,aa5014135703413570541357074135710304812324614304816324618304821314723413572531472741357302083221733235353246374135745144714", "AQ,gc40062468ac02713579bd04802468ace06713579bd0862468ac0a53579b104468a1253579b1462468ac1653579b184468a1a357920268223579244468a263579282682a173417", "AQ,gc400802468ace025028ce045046ae065048ae085026ce0a802468ace104468a12328c145046ae165048ae18326c1a4468a201722328c24346a2520e26348a28326c2a173414361a", "3,e9601702468ac03346805346807702468ac1123912257132391425715239162571723920239223468243468263468322573425736257421644164616522575425756257", "SASHA,gb300802468ace0262468ac0320e0462468ac06802468ace0862468ac0920e1062468ac1262468ac1462468ac1662468ac1862468ac224468a244468a264468a", "IRA,gc400802468ace0220e0460468ae0660468ae0820e0a802468ace11713579bd1321d1561468ad1721d19713579bd22327c24347a264268c2862468ac33337b3525937337b", "6856364849,gb3001c011e0253579b031d04602468b051d06602468b071d0853579b091d101c111e12379b131d14502468152be16502468172bd1843579192bd212ce", "ZOO,ec50016012280226a03328c0426a0550248c0626a07328c0826a092280a161222513171432591527b16325917171822523225241725325926172722534225351736225453268", "NHFF,fc30033570121c0233570321b0433570531ad061307418bd081509417ac0a13104246812602468c15602468b17359b18227223469242282524626328b28258", "NADIA,gb3001501337d02219031c04404ae051c0620e0722c0824a09368d101511337d12219131c14404ae151c1620e1722c1824a19368d211d231c2414251d271c291e", "DYLAN C.,ec500702468ac0252468a04702468ac0652468a085135790a52468a10613579b12435791452468a16435791834681a2572052468a223468242572634682825734257362574516", "Z,ec40116034257a054048c07326a093468112571334681422a154048c1622a172571822a19346820346822162324824162560248ac261628326a292482a16301635306c3a16", "KK,mc50032ai0290248acgik0432ai0632ai0890248acgik0a32ai1132ai1332ai1532ai1732ai1932ai2232ai2432ai2632ai2832ai3332ai3532ai3732ai4432ai4632ai", "SU,gc200613579b011e0227c03414ae04180560246ce06190734ce08217092390a5157ce10613579b111e1227c13414ae14181560246ce16191734ce18217192391a5157ce", "LIZA,gc50017022680324a044268c05404ae064268c0724a082680a1711171335791423b1551579d1623b1735791917221724347a2522c26347a281733173526837174517", "SHALAH,gc40020e0222c0424a052680624a0822c0a20e1021d1223b14259162591823b1a21d2020e2222c2424a2624a2822c2a20e3021d3223b34259362593823b3a21d", "12,ea300302801446ac0222803404ac04160540248062ac07324608308b104048c11326a13702468ac15326a164048c18702468ac20326a224048c24326a264048c284026a", "JA,gc200802468ace0271368ace0460259bd05170660249be07160870248ace09160a70248ace1061359ce11171260359bd13171460249ce151616514ace17268186024ace19181a5046ad", "GABRIELA,gc200802468ace02702579ce04702579ce06802468ace08703579be0a802468ace10702468bd12602468c14702468bd16602468c18702468bd1a602468c", "ORNY 55,ga400802468ace0262468ac04802468ace0662468ac08802468ace10713579bd1253579b14713579bd1653579b18713579bd214468a234468a254468a274468a343579", "P,ee60020c0221b0422a06239082480a2570c161121b1322a1523917248192571b162222a2423926248282572a16332393524837257391644248462574816552575716", "P,ai40014022350422606217082080a2170c2260e2350g141114132351522617217192171b2261d2351f1422142423526226282262a2262c2352e1433143523537235392353b2353d14", "CLAUDIA,gc50020e0222c0424a05170624a0822c0a20e1121d1323b1535791723b1921d2222c244468a264468a2822c3353579b3553579b3753579b4323b4535794723b", "HIHI,gc400802468ace02802468ace04802468ace06802468ace08802468ace0a802468ace1262468ac144268c164268c1862468ac222682426826268282683217341736173817", "ZUZAA,gc40062468ac02713579bd04802468ace06802468ace08713579bd0a62468ac1123b1325915327c172591923b21122224a242682522c262682824a2a1c3517", "ELO,gc3002680262468ac04802468ace06802468ace0862468ac0a2681017112591223b13317d14259155037be1625917317d1823b192591a1721172325925327c272592917", "CBOLA,ga300402ce014468a0221d0324a045027ce05259065137bd0862468ac1062468ac1253579b14347a1635791817204468a2253579b24337b252592617272592817", "NIKI,gc50020e0122c02404ae034268c04404ae054268c06404ae074268c08404ae0922c0a20e1222c1324a144268c1524a164268c1724a1822c2424a252682624a354468a45268", "AMANDA,gc5004048c02426ae044048c06426ae084048c0a426ae114159d134159d154159d174159d194159d2262468ac24268262682862468ac3122c33424ac37424ac3922c4422c4622c", "ANGEL,fa300702468bd02702468bd04702468bd06702468bd08702468bd1051357b111d1251357b131d1451357b151d1651357b171d1851357b20317b224257c2423d26315c28417bd", "NADI,aa50050246802502468045024680650246808502468114135713413571541357174135720235223246232082432462520826324628235332353523537144414", "ENGEL,gc400307e02327c044368b064368b08327c0a307e10317d12337b142591625918337b1a317d20327c22347a242682626828347a2a327c3023b3225934173617382593a23b", "ENGEL,ec60020c0220c03326a054048c07326a0820c0a20c1120c13603579c1525717603579c1920c2220c2450468c2650468c2820c3320c3550468c3720c4420c452574620c55306c", "SHUN,ec30052468a0252468a0452468a06326a08316b0a306c1052468a1252468a1452468a16326a18316b1a306c2052468a2252468a2452468a26326a28316b2a306c", "FRANK,gc3005027ce0260268ce044468a0522c0660468ae0722c084468a0a50579e1020e1122c12307e1435791523b1651579d1723b1835791a35792120e2317254468a274468a29268", "J,ea60060257ac0260257ac0460257ac0660257ac0860257ac1160257ac1360257ac1560257ac1760257ac2260257ac2460257ac2660257ac3360257ac3560257ac44316b5416", "HUHUUU,ea50052468a02435790460248ac06435790852468a1043579123468144139b1634681843579203468222572422a2625728346830257321636163825741164716", "ANGIE,gb30021d0123b024059e03170420e0621d0723b0825909171021e1123c12405ae13181421e1622e1724c1826a19182021d2123b224059e23172420e2621d2723b282592917", "SUSAN,fc301713579bd031c041a05180616071408120a702468ac10713579bd121c131a141815161614171219702468ac20713579bd221c231a241825162614271229702468ac", "MALI,gc5014159d03337b054159d07337b094159d104048c12426ae144048c16426ae184048c1a426ae21337b234159d25337b274159d29337b3222c34268362683822c4222c45174822c", "EDWARD,cb500413790115024028a032460421905246062280715082370915114137912151341379154246817335719152222823246242282515262372815343357362464515", "BB,eb70050369c0350369c0650369c0950369c104258b134258b164258b194258b224258b254258b284258b314258b344258b374258b41347a44347a47347a53347a56347a65347a", "ELISE,cc300335702315904305a06305a072370831590a335710335712315914305a16305a172371831591a335720335722315924305a26305a272372831592a3357", "PAO,ec400702468ac02702468ac0438ac0638ac0838ac0a38ac10702468ac12702468ac1438ac1638ac1838ac1a38ac2020c2114222082418261a2a28c301c312043318361a3a28c", "ABC,gc301713579bd03713579bd05713579bd07713579bd09713579bd1060468ae12802468ace1462468ac1662468ac18802468ace1a603579e2010224579e254259c2735792a16", "NAT,ea400702468ac02613579b0452468a06613579b08702468ac10613579b1252468a14435791652468a18613579b2152468a234357925435792752468a31336933248341635248373369", "NJHV,gb4005257ce02602468d031a04602468d065024680842468114357d1351357d154257d1733571915211d223357231d243357251d2642468283357324357d342463624638246", "HAZIQ,gc200308e0220e03180424b05308e065246ac07308e0824b09180a20e10308e1220e13181424b15308e165246ac17308e1824b19181a20e", "ELISE,cc500602468a0220a0420a0620a0820a0a602468a11335712219142191621918219193357222462322825228272282824633153423736237371545246", "MAZZIE,aa50050246802324604502468063246085024681041357132351523518413572032462414283246302353823540144814", "GODSCHILD,gc40020e0262468ac0423b05170623b0862468ac0a20e1020e124468a1423b15171623b184468a1a20e2020e25172a20e3517", "JAY,gc200802468ace025027ce04307e054359b06307e085027ce0a802468ace10802468ace125027ce14307e154359b16307e185027ce1a802468ace", "CORRA,ea400702468ac0252468a0434680652468a08702468ac11613579b13435791534681752468a223468242572634683416", "LOLO,dc300613579b02110411053357061108110a613579b1152468a12101410153246161018101952468a22502468241025224261028502468", "ANETT,ga300424ac02802468ace0470247ace0662468ac0826810424ac12802468ace1470247ace1662468ac18268222682417262682817", "MMM,gc4004024c011e024246c031e0462468ac051e06324c071e08324c0a302c1224c1424c1624c1824d1a1d2424c2624c281d2a1d3424c", "CHRISTINE,ga30017022680322c0460468ae0522c0626808171126813413bd1426816413bd17268222682320e2462468ac2520e26268", "CICIMORA,cc30040369024147a0440369064147a08403690a4147a104147a1240369144147a1640369184147a1a403692020a222282424626246282282a20a", "GTFHG,gc20052468b0120e0262468ac0320e045368ac05110663579bd08713579bd0a71358ace12602469d131b143368152ac162471729d184246b1a5248ac", "LUARA,ga30070268ace02326e046268ace0622e086268ace10479bd1112131214479bd1512171218479bd2038ac221224428ac26122838ac", "PLOIK,ca30024601228024046a03228044046a05228064046a07228082461015112371215134137914151541379161517237181522152433572615", "ARTYOM,gc300307e02327c04347a06268085047ae0a327c104068d1261368bd144368b16357918439be192051a23c21172517", "27,aa400502468024135704413570641357085024681041357123246143246163246184135720235222352423526235282353414", "DIHJHH,gc20060369ce0260258be0460369ce0660258be0860369ce0a60258be10613579b12613579b14613579b16613579b186247ace1a613579c", "LANA,gc300307e024259c031e04304a0522c0634ae0710084259c0a307e102681120e124468a1320e15403be1720e184468a1920e1a26821172320e2720e2917", "SANDRA,ga2006257ace0271357ace0462579bd0663579bd08802468ace10257113ace123357132bd1442579152bd16435791871368ace", "LL,cb401335703602468a0550357a0750357a095135791015112371215134137915219163357172191942468211523325825152623727305a28237291534153615", "KNOPKA,gc200802468ace026024ace04402ce051706402ce086024ace0a802468ace1062468ac1222c1422c15171622c1822c1a62468ac", "ZOO,ih3006024ceg0222e0672468ace08902468aceg0a72468ace0d22e0f6024ceg1122e1763579bd1821f1963579bd1e413df28348c2e22e", "DHGGG,ea7003468024357904613579b06702468ac08613579b1125713346815435791752468a221623248241626435793325735163624844257461655166516", "VFVF,eb300306c014248a033369054248a0620c073369094248a1020c11337913258152391620c1716182392224823162514273369", "DFGHSDKJ,ma50022i02404gk047268acei06504agk0832ai1022i12404gk147268acei16504agk2022i22404gk247268acei3022i32404gk4022i", "IDLIE,ec7001601140222603204042260514061608702468ac0a613579b12151313141519613579b23142952468a3943579493468592576916", "HGH,ca6004046a0242468044046a0642468084046a1151357913315915315917513579224246824424682642468332373415352374322844246452285415", "OLCHIK,ab3001402304803226041405226063048092261014123048132261414152261630481922620142230482322624142522626304829226", "WWWWWW,aa500502468025024680432460520806324608235114135713324615235182352132462323525142714322353414361443144514", "DAFNA,d930133690220b032480422a052570621b07336911346812302a13257144139b15257164139b1725720247222392321b2433692521b262482716", "KRISTINA,gc200802468ace02713579bd0462468ac0662468ac08713579bd0a802468ace10307e12307e14348c16326a18307e1a307e", "2222,gc300268024468a0462468ac06802468ace08713579bd0a53579b11268134468a1553579b1762468ac1953579b23268254468a2735792917", "65,gc200402ce01357902403be03357904413bd052680624a071708402ce09170a402ce10171121d124468a1322c142591523b16171921d", "LIA,ea40060248ac0350468c0550468c0860248ac11613579b134148b154148b17613579b22326a244248a26326a333468353468", "P,ea40060248ac0224c0450248a0620c0860248ac1060248ac1224c142021620c1860248ac20328c22142410261c28304a30228361c3814", "BRIAN,c8500602468a02602468a044246806335710602468a12602468a14424681633572051357922424682433572624630335732246341541154415", "YAEL,gc70060268ce0260268ce0560268ce0760268ce0a713579bd1160268ce1660268ce1a62468ac21317d26317d2a53579b3a4468a4a35795a2686a17", "YAEL,ec40060248ac024048c0460248ac06160922a0a34681060248ac124048c1460248ac16161922a1a3468204157b224157b244157b2716291631316b33316b", "ORNY 55,gc300170235790453579b06713579bd08802468ace0a802468ace12268144468a1662468ac18713579bd1a802468ace22172417261728172a17", "A,gc300802468ace02802468ace046024ace066024ace08802468ace0a802468ace1161359bd13424ac15424ac17424ac1961359bd2223b2423b2623b2823b", "SWAN321,db500603579b0253579b03100453579b06603579b09337b1150468a1350468a1550468a194468a2240579244057929357933306839268432074917", "ROCKY96,gc40053579b0262468ac0453579b0661468ad08702579ce0a4168d1153579b134468a153579174168d19317d2235792426826172821d33173517", "MATHILDE,cc500602468a024246804513579064246808602468a0a15104246812246143357162461842468201522152415261528153215341536154415", "P,kk30024e0224e04a02468acegi0624e0824e0a24e0c24e0ea02468acegi0g24e0i24e1224e146246ceg1624e1c24e1e6246ceg1g24e2424e2e24e", "LACITIS,cc300602468a0220a0315042280622807150820a0a602468a10602468a1220a1315142281622817151820a1a602468a20305a252282a305a", "OLA,gb300337b02703579be0451579d0626808170961359bd10327c1250468a144268c1617181719424ac223579241726172817", "OLA,eb2004139b012570222a031604402ac05346806302c084139b09257104139b112571222a131614402ac15346816302c184139b19257", "LOUISE,fa30060358ad02403ad044057d06403ad0860358ad104149c1221c132491421c152491621c184149c2022b244249b2822b", "NATHALIE,kc40070269cgi0124e0270269cgi0572469ceg085029gi09446ce0a5029gi1171359dfh155359df1971359dfh216135dfh2524e2923f3123f", "JOSSE,ec500160122a024048c0451369b0622a07346809326a0a2481122a124048c14306c1621b182391a257251627248291636257382574716", "BIG-FLUX,gc400404ae024268c044468a05402ce064468a084268c0a404ae10404ae12327c1426815414ad1626818327c1a404ae231725357927173517", "1337,8c40040246022040322604204064024608204092260a204103135133135163135193135202242322426224292243013331336133913", "DORIEN,gc20123b024159d03170460359be05170661359bd07170822c0924a0a2681023b114159d1227b13303e142591520e16171721d18171922c1a4468a", "NATHALIE,ea30060257ac0260257ac0460257ac0660257ac0860257ac105026ac125026ac14316b165026ac185026ac2121b24162721b", "KATERIFIC,gc2001301315e02237034159d0427b0530390627b074159d0823709315e0a13111212141322614308e1533ac16308e1722618141912", "HERKI33333,ge501170517064159d07170b171126814171521d1624a1721d18171b2682017221725172660259ce27172a172c173117364168d3b1745174717", "HEIDI,ac3003048025024680450246806502468085024680a5024681232461432461632461832461a3246221424324626324628142a14", "KKKK,gc300802468ace0262468ac04802468ace06802468ace0862468ac0a802468ace1153579b1335791553579b1735791953579b22268251728268", "WERA,ea300468ac02468ac04702468ac0640246084024610468ac1226c14702468ac16206184024620468ac2226c2460248ac262062840246", "ALICE,gc200713579bd02713579bd0470247ace0670247ace08713579bd0a713579bd1162468ac14413bd16413bd1962468ac", "KJKJ,gc4006024ace025027ce044068e064468a0862468ac0a802468ace10402ce1220e141716268184468a1a62468ac2020e2617282682a4468a38173a268", "1,kd300379b0125d03404ei05a02468acegi075049ei09349e0b349e11379b1225d145579bd1681357acfh18458ad1a458ad23468ac2826b2a26b", "BUFFY,gc500302e011c02424ae031c044468a0642468084028a0a30ac124359b1435791643579184139b2225924357926435792819343579364357945268", "ELLA,gc400268024468a0462468ac06802468ace0862468ac0a802468ace11171335791553579b1753579b1953579b24268263579284468a35173717", "PLATSCHU,gc50062468ac022680321d04268064468a08802468ace0a402ce1023b111713317d151717171921d221724172617331735174417"];
}
}//package RES.GAME
Section 79
//SString (RES.GAME.SString)
package RES.GAME {
public class SString {
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{
var _local2:int;
if (_arg1 == null){
return ("");
};
_local2 = 0;
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 RES.GAME
Section 80
//OInfoObject (RES.OBJECTS.OInfoObject)
package RES.OBJECTS {
import flash.events.*;
import ENGINE.INTERFACE.*;
public class OInfoObject extends OIObject {
public function OInfoObject(_arg1:Array, _arg2:Array=null){
super(_arg1, _arg2);
}
override public function OnPress(_arg1:Event, _arg2):void{
(this.parent as OIObject).OnPress(_arg1, _arg2);
}
}
}//package RES.OBJECTS
Section 81
//OLoadImage (RES.OBJECTS.OLoadImage)
package RES.OBJECTS {
import flash.display.*;
public class OLoadImage extends Sprite {
public static var LINK_LOADER:Loader;
public function OLoadImage(){
if (LINK_LOADER != null){
this.addChild(LINK_LOADER);
} else {
this.addChild(new WellMahjong2L.OBG02());
};
}
}
}//package RES.OBJECTS
Section 82
//OOpponentField (RES.OBJECTS.OOpponentField)
package RES.OBJECTS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import flash.utils.*;
import RES.GAME.*;
public class OOpponentField extends OIObject {
private var iField:SField;
public var str2:OIObject;
public var str3:OIObject;
public var playing:Boolean;
public var str1:OIObject;
private var iTimer:int;
private var Rec:String;
public var strNotTime:OIObject;
private var iWidth:Number;
public var strNotMoved:OIObject;
private var iHeight:Number;
private var msRec:int;
private var iRec:int;
public var iScore:OCounter;
private static const stNone:int = 0;
private static const stPlaying:int = 1;
public function OOpponentField(_arg1:String){
WellMahjong2L.OOpponentFieldParam[2][4] = _arg1;
super(WellMahjong2L.OOpponentFieldParam);
}
public function notTime():void{
this.setChildIndex(this.strNotTime, (this.numChildren - 1));
this.strNotTime.prVisible = true;
this.stopRec();
this.playing = true;
}
public function get Score():int{
return (this.iScore.prValue);
}
override public function Free():void{
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
this.iScore.Free();
this.iScore = null;
this.str1 = null;
this.str2 = null;
this.str3 = null;
if (this.strNotMoved != null){
if (this.contains(this.strNotMoved) == true){
this.removeChild(this.strNotMoved);
};
this.strNotMoved.Free();
this.strNotMoved = null;
};
if (this.strNotTime != null){
if (this.contains(this.strNotTime) == true){
this.removeChild(this.strNotTime);
};
this.strNotTime.Free();
this.strNotTime = null;
};
if (this.iField != null){
if (this.contains(this.iField) == true){
this.removeChild(this.iField);
};
this.iField.Free();
};
super.Free();
}
public function playRec(_arg1:String, _arg2:int):void{
var _local3:Array;
this.playing = true;
this.iTimer = getTimer();
this.iScore.prValue = WellMahjong2L.ScoreMax;
this.Rec = _arg1;
this.iRec = 0;
this.msRec = SConvert.calcIntTime((_arg1.charAt(this.iRec) + _arg1.charAt((this.iRec + 1))));
_local3 = SConvert.createLevel(SLevels.Levels[_arg2]);
this.iField = new SField(WellMahjong2L.MODE_OPPONENT, this.iWidth, this.iHeight, _local3, WellMahjong2L.ScoreMax, true);
this.iField.prX = (this.iField.prX + 10);
this.iField.prY = (this.iField.prY + 10);
this.addChild(this.iField);
this.State = stPlaying;
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
switch (this.iState){
case stNone:
break;
case stPlaying:
if ((this.iRec + 1) > this.Rec.length){
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
return;
};
_local2 = (getTimer() - this.iTimer);
if (_local2 >= this.msRec){
this.iTimer = getTimer();
_local3 = SConvert.getNumber(Rec.charAt((this.iRec + 2)));
_local4 = SConvert.getNumber(Rec.charAt((this.iRec + 3)));
_local5 = SConvert.getNumber(Rec.charAt((this.iRec + 4)));
if (_local3 >= 0){
this.iField.clickFishka(_local3, _local4, _local5);
} else {
this.iField.startHint();
};
this.iRec = (this.iRec + 5);
if ((this.iRec + 1) > this.Rec.length){
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
} else {
this.msRec = SConvert.calcIntTime((Rec.charAt(this.iRec) + Rec.charAt((this.iRec + 1))));
};
};
break;
};
}
public function levelComplete():void{
this.iScore.prValue = (this.iScore.prValue * 2);
this.playing = false;
this.setChildIndex(this.str1, (this.numChildren - 1));
this.setChildIndex(this.str2, (this.numChildren - 1));
this.setChildIndex(this.str3, (this.numChildren - 1));
this.str1.prVisible = true;
this.str2.prVisible = true;
this.str3.prVisible = true;
this.iField.stopGame();
}
public function set Score(_arg1:int):void{
this.iScore.prValue = _arg1;
}
override public function Init():void{
super.Init();
this.playing = false;
this.iWidth = 237;
this.iHeight = 270;
this.State = stNone;
}
public function stopRec():void{
this.iField.stopGame();
this.removeEventListener(Event.ENTER_FRAME, this.OnEnterFrame);
this.playing = false;
}
public function startGame():void{
this.iField.startGame();
}
public function notMoved():void{
this.setChildIndex(this.strNotMoved, (this.numChildren - 1));
this.strNotMoved.prVisible = true;
this.stopRec();
this.playing = true;
}
public function noMoviesComplete():void{
this.strNotMoved.prVisible = false;
this.setChildIndex(this.str1, (this.numChildren - 1));
this.setChildIndex(this.str2, (this.numChildren - 1));
this.setChildIndex(this.str3, (this.numChildren - 1));
this.str1.prVisible = true;
this.str2.prVisible = true;
this.str3.prVisible = true;
}
}
}//package RES.OBJECTS
Section 83
//OPlayerPanel (RES.OBJECTS.OPlayerPanel)
package RES.OBJECTS {
import flash.events.*;
import ENGINE.INTERFACE.*;
public class OPlayerPanel extends OIObject {
public var iLevel:OCounter;
public var iScore:OCounter;
public function OPlayerPanel(){
super(WellMahjong2L.OPlayerPanelParam, ODialog.iDefAnimators);
this.visible = false;
}
override public function Init():void{
super.Init();
this.iLevel.prValue = 0;
this.iScore.prValue = 0;
}
override public function Free():void{
super.Free();
}
override public function OnEnterFrame(_arg1:Event):void{
super.OnEnterFrame(_arg1);
}
}
}//package RES.OBJECTS
Section 84
//OWChoosePlayer (RES.WINDOWS.OWChoosePlayer)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
public class OWChoosePlayer extends ODialog {
public var iDelete:OButton;
public var iNew:OButton;
public var iCancel:OButton;
private var iData;
public var iListBox:OListBox;
public var iAccept:OButton;
private var iCurPlayer:String;
public function OWChoosePlayer(){
super(WellMahjong2L.OWChoosePlayer);
}
override public function Init():void{
super.Init();
this.iData = WellMahjong2L.iGAME.prPlayersData;
this.iCurPlayer = WellMahjong2L.iGAME.prPlayerName;
this.iListBox.SetCurrentElement(WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.iGAME.prPlayerNames);
}
override public function set prActive(_arg1:Boolean):void{
if (_arg1){
this.iListBox.SetCurrentElement(WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.iGAME.prPlayerNames);
};
super.prActive = _arg1;
}
override public function OnPress(_arg1:Event, _arg2):void{
if (!this.prMouseEnabled){
return;
};
if (_arg2 == this.iNew){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miEnterNewName);
this.prActive = false;
return;
};
if (_arg2 == this.iDelete){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miDeletePlayerConfirm);
this.prActive = false;
return;
};
if (_arg2 == this.iCancel){
WellMahjong2L.iGAME.prPlayersData = this.iData;
WellMahjong2L.iGAME.prPlayerName = this.iCurPlayer;
(this.parent as OWindow).OnPress(null, WellMahjong2L.miMenu);
this.prVisible = false;
return;
};
if (_arg2 == this.iAccept){
if (WellMahjong2L.iMP.isConnected){
WellMahjong2L.iMP.disconnect();
};
(this.parent as OWindow).OnPress(null, WellMahjong2L.miMenu);
this.prVisible = false;
return;
};
if ((((_arg2 == this.iListBox)) && (!((WellMahjong2L.iGAME.prPlayerName == this.iListBox.prCurrentLBParam))))){
WellMahjong2L.iGAME.prPlayerName = this.iListBox.prCurrentLBParam;
return;
};
}
override public function Free():void{
this.iListBox = null;
this.iNew = null;
this.iDelete = null;
this.iAccept = null;
this.iCancel = null;
super.Free();
}
}
}//package RES.WINDOWS
Section 85
//OWEnterName (RES.WINDOWS.OWEnterName)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
public class OWEnterName extends ODialog {
private var iHasCancel:Boolean;
public var iCancel:OButton;
public var iName:OInput;
public var iAccept:OButton;
public function OWEnterName(_arg1:Boolean=true){
this.iHasCancel = _arg1;
super(WellMahjong2L.OWEnterName);
}
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;
}
override public function Init():void{
super.Init();
this.iName.prText = (WellMahjong2L.iGAME.prPlayerName) ? WellMahjong2L.iGAME.prPlayerName : "";
if (!this.iHasCancel){
this.iCancel.visible = false;
this.iAccept.prX = 155;
};
this.iName.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
}
public function set prName(_arg1:String):void{
this.iName.prText = _arg1;
}
override public function OnPress(_arg1:Event, _arg2):void{
var _local3:String;
var _local4:String;
if (!this.prMouseEnabled){
return;
};
if (_arg2 == this.iCancel){
if (!this.iCancel.visible){
return;
};
this.prVisible = false;
return;
};
if (_arg2 == this.iAccept){
_local3 = OUtils.ClearString(this.iName.prText.toUpperCase());
_local4 = removeSpaces(_local3);
if (_local4.length > 0){
WellMahjong2L.iGAME.prPlayerName = _local4;
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 OnEnterFrame(_arg1:Event):void{
super.OnEnterFrame(_arg1);
SetNameFocus();
}
private function removeSpaces(_arg1:String):String{
var _local2:String;
var _local3:int;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) != " "){
_local2 = (_local2 + _arg1.charAt(_local3));
};
_local3++;
};
return (_local2);
}
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));
}
}
}//package RES.WINDOWS
Section 86
//OWGame (RES.WINDOWS.OWGame)
package RES.WINDOWS {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import ENGINE.INTERFACE.*;
import ENGINE.GAME.*;
import ENGINE.CORE.*;
import flash.utils.*;
import RES.GAME.*;
import flash.net.*;
import ENGINE.SMARTFOX.*;
import ENGINE.AD.*;
import RES.OBJECTS.*;
public class OWGame extends OWindow {
public var iLink:OButton;
private var panelPlayer:OPlayerPanel;
private var showBaner:Boolean;
private var iBaner:OWInfoPanel;
private var iStrNotTime:OIObject;
private var iStage:Stage;
private var iField:SField;
private var bonus:Boolean;
private var iStrClearFildBons:OIObject;
private var iTimer:int;
public var iHint:OButton;
private var iLevel:int;
public var iNameGame:OIObject;
public var iPrevLevel:OButton;
private var iTest:Boolean;
private var iStrLevelComplete:OIObject;
private var iInfo:OIObject;
private var iStrNotMoved:OIObject;
private var prRecord:String;
public var iPause:OButton;
private var iDAlpha:Number;// = 0.025
private var invisLayer:OSprite;
public var iApproveLevel:OButton;
public var iSiteLink:OIObject;
public var iMenu:OButton;
private var prOpponent:String;
private var iStrPause:OIObject;
private var iOldPrLevel:int;
public var iNextLevel:OButton;
private var OField:OOpponentField;
public static const stPlayGame:int = 7;
public static const stLevelInit:int = 4;
public static const stShowElements:int = 5;
public static const stShowResults:int = 12;
public static const stHideElements:int = 11;
public static const stNotMovedCompl:int = 14;
public static const stLoadLevel:int = 2;
public static const stConnection:int = 1;
public static const stNotMoved:int = 13;
public static const stPause:int = 16;
public static const stNotTime:int = 15;
public static const stLevelInfo:int = 3;
private static const CHEAT:Boolean = false;
public static const stInGameMenu:int = 17;
public static const stClearFildBons:int = 9;
public static const stLevelComplete:int = 10;
public static const stShow:int = 0;
private static var LIST_INDEX_GAME:Array = [0, 1];
public function OWGame(_arg1:Boolean){
iDAlpha = 0.025;
this.iOldPrLevel = -1;
this.iTest = _arg1;
if (this.iTest == true){
WellMahjong2L.OWGameParam[3][6] = WellMahjong2L.strClose;
} else {
WellMahjong2L.OWGameParam[3][6] = WellMahjong2L.strMenu;
};
super(WellMahjong2L.OWGameParam, ODialog.iDefAnimators);
}
public function notTime():void{
var _local1:int;
_local1 = this.panelPlayer.iScore.prValue;
WellMahjong2L.iGAME.AddScore(_local1);
WellMahjong2L.iGAME.Write(OGame.catTmp, "Score", _local1);
WellMahjong2L.iGAME.AddScoreInTable(WellMahjong2L.iGAME.prScore);
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrr", WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.iGAME.prScore]);
};
this.State = stNotTime;
}
public function SplashInfoMessage():Boolean{
var _local1:Boolean;
_local1 = false;
if (this.iInfo.prAnimation){
return (false);
};
this.iInfo.alpha = (this.iInfo.alpha + this.iDAlpha);
if ((((this.iDAlpha > 0)) && ((this.iInfo.alpha >= 1)))){
this.iInfo.alpha = 1;
this.iDAlpha = (this.iDAlpha * -1);
};
if ((((this.iDAlpha < 0)) && ((this.iInfo.alpha <= 0)))){
this.iInfo.alpha = 0;
this.iDAlpha = (this.iDAlpha * -1);
_local1 = true;
};
return (_local1);
}
override public function Free():void{
if (this.iStage != null){
this.iStage.removeEventListener(KeyboardEvent.KEY_DOWN, this.OnKeyDown);
this.iStage = null;
};
this.iMenu.Free();
this.iMenu = null;
this.iHint.Free();
this.iHint = null;
this.iPause.Free();
this.iPause = null;
this.iNameGame.Free();
this.iNameGame = null;
this.iSiteLink.Free();
this.iSiteLink = null;
this.iLink.Free();
this.iLink = null;
this.iStrLevelComplete.Free();
this.iStrLevelComplete = null;
if (this.iStrClearFildBons != null){
if (this.contains(this.iStrClearFildBons) == true){
this.removeChild(this.iStrClearFildBons);
};
this.iStrClearFildBons.Free();
this.iStrClearFildBons = null;
};
this.iStrNotMoved.Free();
this.iStrNotMoved = null;
this.iStrNotTime.Free();
this.iStrNotTime = null;
this.iStrPause.Free();
this.iStrPause = null;
this.invisLayer = null;
this.panelPlayer.Free();
this.panelPlayer = null;
if (this.iBaner != null){
if (this.contains(this.iBaner) == true){
this.removeChild(this.iBaner);
};
this.iBaner.Free();
this.iBaner = null;
};
if (this.OField != null){
if (this.contains(this.OField) == true){
this.removeChild(this.OField);
};
this.OField.Free();
this.OField = null;
};
if (this.iField != null){
if (this.contains(this.iField) == true){
this.removeChild(this.iField);
};
this.iField.Free();
this.iField = null;
};
super.Free();
}
private function OnKeyDown(_arg1:KeyboardEvent):void{
trace(("aEvent.keyCode = " + _arg1.keyCode));
switch (_arg1.keyCode){
case 48:
if (this.iField != null){
this.iField.noMoves();
};
break;
case 49:
this.levelComplete();
break;
case 50:
if (this.iField != null){
this.iField.UseExternalNoTime();
};
break;
case 51:
if (this.iField != null){
this.nextAutoClick();
};
break;
};
}
public function startPause():void{
if (this.iState == stPlayGame){
this.State = stPause;
};
}
private function AddInfo(_arg1:OIObject, _arg2:Boolean=true):void{
if (this.iInfo){
if (this.contains(this.iInfo) == true){
this.removeChild(this.iInfo);
};
this.iInfo.Free();
this.iInfo = null;
};
if (_arg1){
this.iInfo = _arg1;
this.iInfo.Pos(0, 0);
this.iInfo.Pos((10 + ((800 - this.iInfo.prWidth) / 2)), (300 - (this.iInfo.prHeight / 2)));
if (_arg2){
this.iInfo.SetVisible(false);
this.iInfo.prVisible = true;
};
this.addChild(this.iInfo);
};
}
private function invisLayerOnClick(_arg1:MouseEvent):void{
switch (this.iState){
case stLevelComplete:
this.State = stHideElements;
break;
case stNotMoved:
this.iField.noMoviesComplete();
this.iField.prVisible = false;
this.noMoviesComplete();
break;
case stNotTime:
this.State = stHideElements;
break;
case stPause:
this.iStrPause.prVisible = false;
this.iField.startPause(false);
this.iField.prVisible = true;
if (this.contains(this.invisLayer) == true){
this.removeChild(this.invisLayer);
};
this.State = stPlayGame;
break;
};
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
var _local3:Boolean;
var _local4:Array;
switch (this.iState){
case stShow:
if (!this.prAnimation){
if (this.iTest == false){
this.State = stConnection;
} else {
this.State = stLevelInit;
};
};
break;
case stConnection:
_local2 = getTimer();
_local3 = this.SplashInfoMessage();
if (((((_local2 - this.iTimer) > 5000)) && (_local3))){
this.State = stLevelInfo;
};
if (((((_local2 - this.iTimer) > 2000)) && ((WellMahjong2L.iMP.State == OMultiplayer.stInZone)))){
this.State = stLoadLevel;
};
break;
case stLoadLevel:
_local3 = this.SplashInfoMessage();
_local2 = (getTimer() - this.iTimer);
if ((((((_local2 > 5000)) && (_local3))) && (WellMahjong2L.iMP.prOpponentTurn))){
_local4 = WellMahjong2L.iMP.prOpponentTurn.split(",");
if (_local4.length != 2){
this.prRecord = null;
this.State = stLevelInfo;
break;
};
this.prRecord = ((((_local4[0] == "none")) && ((_local4[1] == "none")))) ? null : _local4[1];
prOpponent = _local4[0];
if (this.prRecord){
this.prOpponent = _local4[0];
};
this.State = stLevelInfo;
};
break;
case stLevelInfo:
_local2 = getTimer();
if ((_local2 - this.iTimer) > 2000){
if (this.iInfo.prVisible){
this.iInfo.prVisible = false;
} else {
if (!this.iInfo.prAnimation){
this.AddInfo(null);
this.State = stLevelInit;
};
};
};
break;
case stClearFildBons:
_local2 = getTimer();
if ((_local2 - this.iTimer) > 3000){
this.iStrClearFildBons.prVisible = false;
this.State = stLevelComplete;
};
break;
};
super.OnEnterFrame(_arg1);
}
public function levelComplete():void{
var _local1:int;
var _local2:int;
if (this.iTest == false){
_local2 = 0;
if (this.showBaner == false){
this.bonus = this.OField.playing;
this.OField.stopRec();
} else {
this.bonus = false;
};
if (this.bonus == true){
_local2 = this.OField.Score;
};
_local1 = (this.panelPlayer.iScore.prValue * 2);
WellMahjong2L.iGAME.AddScore((_local1 + _local2));
WellMahjong2L.iGAME.Write(OGame.catTmp, "Score", _local1);
WellMahjong2L.iGAME.Write(OGame.catTmp, "ScoreO", _local2);
WellMahjong2L.iGAME.AddScoreInTable(WellMahjong2L.iGAME.prScore);
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrr", WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.iGAME.prScore]);
};
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrl", this.iLevel, WellMahjong2L.indexGame, WellMahjong2L.iGAME.prPlayerName, this.iField.Rec]);
};
};
this.State = stClearFildBons;
}
override public function set State(_arg1:int):void{
var _local2:int;
var _local3:Array;
this.iState = _arg1;
switch (this.iState){
case stShow:
this.AddBanner(true, 800, 260);
this.iLink.prVisible = false;
if (this.iOldPrLevel != WellMahjong2L.iGAME.prLevel){
this.iLevel = Math.floor((Math.random() * SLevels.Levels.length));
if (this.iLevel >= SLevels.Levels.length){
this.iLevel = (SLevels.Levels.length - 1);
};
this.iOldPrLevel = WellMahjong2L.iGAME.prLevel;
};
_local2 = Math.floor((Math.random() * LIST_INDEX_GAME.length));
if (_local2 >= LIST_INDEX_GAME.length){
_local2 = (LIST_INDEX_GAME.length - 1);
};
WellMahjong2L.indexGame = LIST_INDEX_GAME[_local2];
if (this.iBaner != null){
if (this.contains(this.iBaner) == true){
this.removeChild(this.iBaner);
};
this.iBaner.Free();
this.iBaner = null;
};
if (this.OField != null){
if (this.contains(this.OField) == true){
this.removeChild(this.OField);
};
this.OField.Free();
this.OField = null;
};
if (this.iField != null){
if (this.contains(this.iField) == true){
this.removeChild(this.iField);
};
this.iField.Free();
this.iField = null;
};
if (!this.prAnimation){
if (this.iTest == true){
this.State = stLevelInit;
} else {
this.State = stConnection;
};
};
break;
case stConnection:
this.alpha = 1;
WellMahjong2L.iMP.ClearOpponentTurn(true);
this.iTimer = getTimer();
this.AddInfo(WellMahjong2S.ColorText(WellMahjong2L.OWGameConnection), true);
if (WellMahjong2L.iMP.State == OMultiplayer.stInZone){
this.State = stLoadLevel;
} else {
if (WellMahjong2L.iMP.State != OMultiplayer.stConnection){
WellMahjong2L.iMP.State = OMultiplayer.stNone;
WellMahjong2L.iMP.Init(WellMahjong2L.sDomain, WellMahjong2L.sServer, WellMahjong2L.sZone, WellMahjong2L.sXTName, WellMahjong2L.iGAME.prPlayerName);
};
};
break;
case stLoadLevel:
WellMahjong2L.iMP.ClearOpponentTurn(true);
WellMahjong2L.iMP.Turn(["rdl", this.iLevel, WellMahjong2L.indexGame, WellMahjong2L.iGAME.prPlayerName]);
break;
case stLevelInfo:
OSound.PlaySoundInd(4);
WellMahjong2L.OWGameNameLevel[1][0][4] = (WellMahjong2L.strLevelID + ((this.iLevel + 1) as int).toString());
WellMahjong2L.OWGameNameLevel[1][1][4] = SString.replace(WellMahjong2L.strCreatedBy, "[NAME]", SConvert.getNameLevel(SLevels.Levels[this.iLevel]));
this.AddInfo(OInterface.OIObjectMake(WellMahjong2L.OWGameNameLevel), true);
this.iTimer = getTimer();
break;
case stLevelInit:
if (this.iTest == true){
this.panelPlayer.iLevel.prValue = 1;
} else {
this.panelPlayer.iLevel.prValue = (this.iLevel + 1);
};
this.panelPlayer.iScore.prValue = WellMahjong2L.ScoreMax;
WellMahjong2L.RandP.SeedRand(((WellMahjong2L.indexGame + 777) + ((this.iLevel + 1) * 10)));
WellMahjong2L.RandO.SeedRand(((WellMahjong2L.indexGame + 777) + ((this.iLevel + 1) * 10)));
if (this.iTest == false){
_local3 = SConvert.createLevel(SLevels.Levels[this.iLevel]);
} else {
_local3 = SConvert.createLevel(WellMahjong2L.TestLevel);
};
this.iField = new SField(WellMahjong2L.MODE_PLAYER, WellMahjong2L.fieldWidth, WellMahjong2L.fieldHeight, _local3, WellMahjong2L.ScoreMax, true);
this.iField.prX = (this.iField.prX + 15);
this.iField.prY = (this.iField.prY + 15);
this.addChild(this.iField);
if ((((((this.iTest == false)) && ((WellMahjong2L.iMP.State == OMultiplayer.stInZone)))) && (!((this.prRecord == null))))){
this.showBaner = false;
} else {
this.showBaner = true;
};
if (this.showBaner == true){
this.iBaner = new OWInfoPanel();
this.iBaner.Pos(520, 5);
this.addChild(this.iBaner);
if ((((this.iTest == false)) && ((WellMahjong2L.iMP.State == OMultiplayer.stInZone)))){
this.iBaner.prOpponent = this.prOpponent;
iBaner.State = OWInfoPanel.stUserNotFound;
} else {
iBaner.State = OWInfoPanel.stConnect;
};
} else {
this.OField = new OOpponentField(this.prOpponent);
this.OField.Pos(530, 72);
this.addChild(this.OField);
};
if (this.showBaner == false){
this.OField.playRec(this.prRecord, this.iLevel);
};
this.iField.startGame();
if (this.showBaner == false){
this.OField.startGame();
};
this.State = stShowElements;
break;
case stShowElements:
this.AddBanner(false);
this.iMenu.prVisible = true;
this.iHint.prVisible = true;
this.iPause.prVisible = true;
this.iNameGame.prVisible = true;
this.iLink.prVisible = true;
this.iSiteLink.prVisible = true;
this.panelPlayer.prVisible = true;
this.iField.prVisible = true;
if (this.showBaner == true){
this.iBaner.prVisible = true;
} else {
this.OField.prVisible = true;
};
this.iTimer = 0;
this.State = stPlayGame;
break;
case stHideElements:
this.iMenu.prVisible = false;
this.iHint.prVisible = false;
this.iPause.prVisible = false;
this.iNameGame.prVisible = false;
this.iSiteLink.prVisible = false;
this.panelPlayer.prVisible = false;
this.iField.prVisible = false;
if (this.showBaner == true){
this.iBaner.prVisible = false;
} else {
this.OField.prVisible = false;
};
if (this.contains(this.iStrLevelComplete) == true){
this.removeChild(this.iStrLevelComplete);
};
if (this.iStrClearFildBons != null){
if (this.contains(this.iStrClearFildBons) == true){
this.removeChild(this.iStrClearFildBons);
};
};
if (this.contains(this.iStrNotMoved) == true){
this.removeChild(this.iStrNotMoved);
};
if (this.contains(this.iStrNotTime) == true){
this.removeChild(this.iStrNotTime);
};
if (this.contains(this.iStrPause) == true){
this.removeChild(this.iStrPause);
};
if (this.contains(this.invisLayer) == true){
this.removeChild(this.invisLayer);
};
this.State = stShowResults;
break;
case stClearFildBons:
this.iField.stopGame();
if (this.OField != null){
this.OField.stopRec();
};
if (this.iStrClearFildBons != null){
if (this.contains(this.iStrClearFildBons) == true){
this.removeChild(this.iStrClearFildBons);
};
this.iStrClearFildBons.Free();
this.iStrClearFildBons = null;
};
WellMahjong2L.iClearFieldBonusParam[1][4] = this.panelPlayer.iScore.prValue.toString();
this.iStrClearFildBons = new OIObject(WellMahjong2L.iClearFieldBonusParam, ODialog.iDefAnimators);
this.addChild(this.iStrClearFildBons);
this.iStrClearFildBons.prVisible = true;
this.addChild(this.invisLayer);
this.iTimer = getTimer();
break;
case stLevelComplete:
this.addChild(this.iStrLevelComplete);
this.iStrLevelComplete.prVisible = true;
if (this.contains(this.invisLayer) == false){
this.addChild(this.invisLayer);
};
this.setChildIndex(this.invisLayer, (this.numChildren - 1));
this.invisLayer.addEventListener(MouseEvent.MOUSE_DOWN, this.invisLayerOnClick);
break;
case stShowResults:
if (this.iTest == true){
this.State = stShow;
} else {
(this.parent as OWindow).OnPress(null, WellMahjong2L.miResultsSP);
this.prActive = false;
};
break;
case stNotMoved:
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrl", this.iLevel, WellMahjong2L.indexGame, WellMahjong2L.iGAME.prPlayerName, this.iField.Rec]);
};
this.addChild(this.iStrNotMoved);
this.iStrNotMoved.prVisible = true;
this.iStrLevelComplete.prVisible = false;
this.addChild(this.invisLayer);
this.invisLayer.addEventListener(MouseEvent.MOUSE_DOWN, this.invisLayerOnClick);
this.iField.stopGame();
if (this.OField != null){
this.OField.stopRec();
};
break;
case stNotTime:
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrl", this.iLevel, WellMahjong2L.indexGame, WellMahjong2L.iGAME.prPlayerName, this.iField.Rec]);
};
this.addChild(this.iStrNotTime);
this.iStrNotTime.prVisible = true;
this.addChild(this.invisLayer);
this.invisLayer.addEventListener(MouseEvent.MOUSE_DOWN, this.invisLayerOnClick);
this.iField.stopGame();
if (this.OField != null){
this.OField.stopRec();
};
break;
case stPause:
this.iField.startPause(true);
this.iField.prVisible = false;
if (this.contains(this.iStrPause) == false){
this.addChild(this.iStrPause);
};
this.iStrPause.prVisible = true;
this.addChild(this.invisLayer);
this.invisLayer.addEventListener(MouseEvent.MOUSE_DOWN, this.invisLayerOnClick);
break;
};
}
public function set Score(_arg1:int):void{
this.panelPlayer.iScore.prValue = _arg1;
}
private function AddBanner(_arg1:Boolean, _arg2:int=0, _arg3:int=0):void{
if (WellMahjong2L.sDebug == true){
return;
};
if (_arg1){
OAdBanners.AddTBanner(this, 0, 0, _arg2, _arg3);
OAdBanners.AddBBanner(this, 0, (600 - _arg3), _arg2, _arg3);
} else {
OAdBanners.RemoveTBanner(this);
OAdBanners.RemoveBBanner(this);
};
}
override public function Init():void{
super.Init();
this.panelPlayer = new OPlayerPanel();
this.panelPlayer.Pos(0, 0);
this.addChild(this.panelPlayer);
this.iStrLevelComplete = new OIObject(WellMahjong2L.iLevelCompleteParam, ODialog.iDefAnimators);
this.iStrLevelComplete.prVisible = false;
this.iStrNotMoved = new OIObject(WellMahjong2L.iNotMovedParam, ODialog.iDefAnimators);
this.iStrNotMoved.prVisible = false;
this.iStrNotTime = new OIObject(WellMahjong2L.iNotTimeParam, ODialog.iDefAnimators);
this.iStrNotTime.prVisible = false;
this.iStrPause = new OIObject(WellMahjong2L.iPauseParam, ODialog.iDefAnimators);
this.iStrPause.prVisible = false;
this.invisLayer = new OSprite();
this.invisLayer.graphics.beginFill(0, 0);
this.invisLayer.graphics.drawRect(0, 0, (800 * OGlobal.Scale), (600 * OGlobal.Scale));
this.invisLayer.graphics.endFill();
this.State = stShow;
if (CHEAT == true){
if (this.stage != null){
this.OnAddedToStage(null);
} else {
this.addEventListener(Event.ADDED_TO_STAGE, this.OnAddedToStage);
};
};
}
override public function set prActive(_arg1:Boolean):void{
super.prActive = _arg1;
if (_arg1 == true){
switch (this.iState){
case stShowResults:
this.State = stShow;
break;
case stInGameMenu:
trace(getTimer());
this.PressInGameMenu();
break;
};
};
}
private function PressInGameMenu():void{
switch (OWInGameMenu.PRESS_BTN){
case OWInGameMenu.BTN_RESUME:
trace("Resume Game");
this.iField.SetVisible(true);
this.iField.startPause(false);
this.State = stPlayGame;
break;
case OWInGameMenu.BTN_MAIN_MENU:
(this.parent as OApplication).prMenuItem = WellMahjong2L.miMenu;
this.prVisible = false;
break;
case OWInGameMenu.BTN_LEVEL:
WellMahjong2L.iGAME.NextLevel();
(this.parent as OApplication).prMenuItem = WellMahjong2L.miGameSP;
this.prVisible = false;
break;
};
}
private function nextAutoClick():void{
var _local1:Array;
if (this.iState != stPlayGame){
return;
};
_local1 = this.iField.getSokr();
if (_local1.length > 0){
this.iField.clickFishka(_local1[0][0][0], _local1[0][0][1], _local1[0][0][2]);
this.iField.clickFishka(_local1[0][1][0], _local1[0][1][1], _local1[0][1][2]);
setTimeout(this.nextAutoClick, 1000);
};
}
override public function OnPress(_arg1:Event, _arg2):void{
var _local3:int;
var _local4:int;
switch (_arg2){
case this.iMenu:
this.iField.SetVisible(false);
this.iField.startPause(true);
if (this.iTest == true){
(this.parent as OApplication).prMenuItem = WellMahjong2L.miLastWindow;
this.prVisible = false;
} else {
this.State = stInGameMenu;
(this.parent as OWindow).OnPress(null, WellMahjong2L.miInGameMenu);
this.prActive = false;
};
break;
case this.iLink:
navigateToURL(new URLRequest(WellMahjong2L.sURLSite));
break;
case this.iHint:
this.iField.startHint();
break;
case this.iPause:
this.State = stPause;
break;
case this.iApproveLevel:
trace((("\"" + SLevels.Levels[WellMahjong2L.iGAME.prLevel]) + "\","));
this.OnPress(null, this.iNextLevel);
break;
case this.iNextLevel:
this.iMenu.prVisible = false;
this.iHint.prVisible = false;
this.iPause.prVisible = false;
this.iNameGame.prVisible = false;
this.iSiteLink.prVisible = false;
this.panelPlayer.prVisible = false;
this.iField.prVisible = false;
if (this.showBaner == true){
this.iBaner.prVisible = false;
} else {
this.OField.prVisible = false;
};
if (this.contains(this.iStrLevelComplete) == true){
this.removeChild(this.iStrLevelComplete);
};
if (this.iStrClearFildBons != null){
if (this.contains(this.iStrClearFildBons) == true){
this.removeChild(this.iStrClearFildBons);
};
};
if (this.contains(this.iStrNotMoved) == true){
this.removeChild(this.iStrNotMoved);
};
if (this.contains(this.iStrNotTime) == true){
this.removeChild(this.iStrNotTime);
};
if (this.contains(this.iStrPause) == true){
this.removeChild(this.iStrPause);
};
if (this.contains(this.invisLayer) == true){
this.removeChild(this.invisLayer);
};
WellMahjong2L.iGAME.End();
WellMahjong2L.iGAME.NextLevel();
WellMahjong2L.iGAME.Start();
iLevel = (WellMahjong2L.iGAME.prLevel + 1);
this.State = stShow;
this.State = stLevelInit;
return;
case this.iPrevLevel:
_local3 = WellMahjong2L.iGAME.prLevel;
this.iMenu.prVisible = false;
this.iHint.prVisible = false;
this.iPause.prVisible = false;
this.iNameGame.prVisible = false;
this.iSiteLink.prVisible = false;
this.panelPlayer.prVisible = false;
this.iField.prVisible = false;
if (this.showBaner == true){
this.iBaner.prVisible = false;
} else {
this.OField.prVisible = false;
};
if (this.contains(this.iStrLevelComplete) == true){
this.removeChild(this.iStrLevelComplete);
};
if (this.iStrClearFildBons != null){
if (this.contains(this.iStrClearFildBons) == true){
this.removeChild(this.iStrClearFildBons);
};
};
if (this.contains(this.iStrNotMoved) == true){
this.removeChild(this.iStrNotMoved);
};
if (this.contains(this.iStrNotTime) == true){
this.removeChild(this.iStrNotTime);
};
if (this.contains(this.iStrPause) == true){
this.removeChild(this.iStrPause);
};
if (this.contains(this.invisLayer) == true){
this.removeChild(this.invisLayer);
};
WellMahjong2L.iGAME.NewGame();
_local4 = 0;
while (_local4 < (_local3 - 1)) {
WellMahjong2L.iGAME.NextLevel();
_local4++;
};
WellMahjong2L.iGAME.Start();
this.State = stShow;
this.State = stLevelInit;
return;
};
}
public function notMoved():void{
this.State = stNotMoved;
}
public function noMoviesComplete():void{
var _local1:int;
_local1 = this.panelPlayer.iScore.prValue;
WellMahjong2L.iGAME.AddScore(_local1);
WellMahjong2L.iGAME.Write(OGame.catTmp, "Score", _local1);
WellMahjong2L.iGAME.AddScoreInTable(WellMahjong2L.iGAME.prScore);
if ((((WellMahjong2L.iMP.isConnected == true)) && ((this.iTest == false)))){
WellMahjong2L.iMP.Turn(["wrr", WellMahjong2L.iGAME.prPlayerName, WellMahjong2L.iGAME.prScore]);
};
this.iStrNotMoved.prVisible = false;
this.State = stLevelComplete;
}
private function OnAddedToStage(_arg1:Event):void{
this.iStage = this.stage;
this.iStage.addEventListener(KeyboardEvent.KEY_DOWN, this.OnKeyDown);
}
}
}//package RES.WINDOWS
Section 87
//OWHighScores (RES.WINDOWS.OWHighScores)
package RES.WINDOWS {
import ENGINE.DISPLAY.*;
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.GAME.*;
public class OWHighScores extends ODialog {
public var iClose:OButton;
public var iPublish:OButton;
public var iClear:OButton;
public var iGlobal:OButton;
public var iType:OListBox;
public var iTable:OTab;
public function OWHighScores(){
var _local1:OScoreParams;
var _local2:int;
_local2 = 0;
while (_local2 < 5) {
_local1 = WellMahjong2L.iGAME.GetLocalScores(0, _local2);
WellMahjong2L.OWHighScoreLocal[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : "";
WellMahjong2L.OWHighScoreLocal[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : "";
_local1 = WellMahjong2L.iGAME.GetPersonalScores(0, _local2);
WellMahjong2L.OWHighScorePersonal[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : "";
WellMahjong2L.OWHighScorePersonal[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : "";
_local1 = WellMahjong2L.iGAME.GetPersonalScores(1, _local2);
WellMahjong2L.OWHighRaitingPersonal[(0 + (_local2 * 2))][5] = (_local1) ? _local1.iName : "";
WellMahjong2L.OWHighRaitingPersonal[(1 + (_local2 * 2))][5] = (_local1) ? _local1.iScore.toString() : "";
_local2++;
};
super(WellMahjong2L.OWHighScores);
}
override public function set prActive(_arg1:Boolean):void{
var _local2:OScoreParams;
if (_arg1){
_local2 = WellMahjong2L.iGAME.GetLocalScores(0, 0);
if (!_local2){
(iTable.getChildAt(0) as OSprite).Free();
};
_local2 = WellMahjong2L.iGAME.GetPersonalScores(0, 0);
if (!_local2){
(iTable.getChildAt(1) as OSprite).Free();
};
_local2 = WellMahjong2L.iGAME.GetPersonalScores(1, 0);
if (!_local2){
(iTable.getChildAt(2) as OSprite).Free();
};
};
super.prActive = _arg1;
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg2 == this.iClose){
this.prVisible = false;
return;
};
if (_arg2 == this.iType){
this.iTable.prValue = this.iType.prCurrentInd;
return;
};
if (_arg2 == this.iClear){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miDeleteScoresConfirm);
this.prActive = false;
return;
};
(this.parent as OWindow).OnPress(null, WellMahjong2L.miCommingSoon);
this.prActive = false;
}
override public function Free():void{
this.iType = null;
this.iTable = null;
this.iGlobal = null;
this.iPublish = null;
this.iClear = null;
this.iClose = null;
super.Free();
}
}
}//package RES.WINDOWS
Section 88
//OWInfoPanel (RES.WINDOWS.OWInfoPanel)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import flash.utils.*;
import RES.GAME.*;
import flash.net.*;
import RES.OBJECTS.*;
public class OWInfoPanel extends OIObject {
private var iTimer:int;
private var iMode:int;
private var iInfo:OInfoObject;
private var iScore:int;
private var iOpponent:String;
private static const TIME_NEXT:int = 30000;
public static const stFailedLevel:int = 7;
public static const stConnect:int = 1;
public static const stEndLevel:int = 5;
public static const stCompleteLevel:int = 6;
public static const stInGame:int = 3;
public static const stNone:int = 0;
public static const stUserNotFound:int = 2;
public static const stOpponent:int = 4;
public function OWInfoPanel(){
super(null, OInterface.iDefAnimators);
}
public function set prOpponent(_arg1:String):void{
this.iOpponent = _arg1;
}
private function ShowConnect():void{
var _local1:String;
_local1 = WellMahjong2L.OWColors[((this.iMode + 2) % WellMahjong2L.OWColors.length)];
WellMahjong2L.OWInfoPConnect[0][3] = _local1;
WellMahjong2L.OWInfoPConnect[1][3] = _local1;
WellMahjong2L.OWInfoPConnect[1][4] = _local1;
switch ((this.iMode % 3)){
case 0:
WellMahjong2L.OWInfoPConnect[0][4] = WellMahjong2L.strConnect1;
WellMahjong2L.OWInfoPConnect[1][6] = WellMahjong2L.strPlayOnline;
break;
case 1:
WellMahjong2L.OWInfoPConnect[0][4] = WellMahjong2L.strConnect2;
WellMahjong2L.OWInfoPConnect[1][6] = WellMahjong2L.strMoreGames;
break;
case 2:
WellMahjong2L.OWInfoPConnect[0][4] = WellMahjong2L.strConnect3;
WellMahjong2L.OWInfoPConnect[1][6] = WellMahjong2L.strSendMail;
break;
};
this.InitObject(WellMahjong2L.OWInfoPConnect);
}
private function ShowUserNotFound():void{
var _local1:String;
var _local2:String;
var _local3:Array;
_local1 = WellMahjong2L.iMP.prOpponentTurn;
WellMahjong2L.iMP.ClearOpponentTurn(true);
WellMahjong2L.iMP.Turn(["rdr"]);
_local2 = WellMahjong2L.OWColors[Math.round((Math.random() * (WellMahjong2L.OWColors.length - 1)))];
WellMahjong2L.OWInfoPUserNotFound[0][3] = _local2;
WellMahjong2L.OWInfoPUserNotFound[1][3] = _local2;
switch ((this.iMode % 5)){
case 0:
WellMahjong2L.OWInfoPUserNotFound[0][4] = WellMahjong2L.iMP.prUsersCount;
WellMahjong2L.OWInfoPUserNotFound[0][6] = 200;
WellMahjong2L.OWInfoPUserNotFound[1][6] = (WellMahjong2L.OWInfoPUserNotFound[0][6] + 70);
WellMahjong2L.OWInfoPUserNotFound[1][4] = WellMahjong2L.strPlayersOnline1;
break;
default:
if (!_local1){
return;
};
_local3 = _local1.split(/,/);
WellMahjong2L.OWInfoPUserNotFound[0][4] = ((int(_local3[0]) + 1).toString() + WellMahjong2L.strPlace);
WellMahjong2L.OWInfoPUserNotFound[0][6] = 180;
if (WellMahjong2L.sLang == "FR"){
WellMahjong2L.OWInfoPUserNotFound[0][6] = (WellMahjong2L.OWInfoPUserNotFound[0][6] - 40);
};
WellMahjong2L.OWInfoPUserNotFound[1][6] = (WellMahjong2L.OWInfoPUserNotFound[0][6] + 90);
if (WellMahjong2L.sLang == "FR"){
WellMahjong2L.OWInfoPUserNotFound[1][6] = (WellMahjong2L.OWInfoPUserNotFound[1][6] + 25);
};
WellMahjong2L.OWInfoPUserNotFound[1][4] = ((_local3[1] + WellMahjong2L.strHasReiting) + _local3[2]);
if (WellMahjong2L.sLang == "DE"){
WellMahjong2L.OWInfoPUserNotFound[1][4] = SString.replace(WellMahjong2L.strHasReiting, "[name]", _local3[1]);
WellMahjong2L.OWInfoPUserNotFound[1][4] = SString.replace(WellMahjong2L.OWInfoPUserNotFound[1][4], "[score]", _local3[2]);
};
break;
};
this.InitObject(WellMahjong2L.OWInfoPUserNotFound);
}
override public function Init():void{
super.Init();
}
public function set prScore(_arg1:int):void{
this.iScore = _arg1;
}
override public function OnPress(_arg1:Event, _arg2):void{
var _local3:String;
var _local4:URLRequest;
switch ((this.iMode % 3)){
case 0:
_local3 = WellMahjong2L.strConnect1URL;
break;
case 1:
_local3 = WellMahjong2L.strConnect2URL;
break;
case 2:
_local3 = WellMahjong2L.strConnect3URL;
break;
};
_local4 = new URLRequest(_local3);
navigateToURL(_local4);
}
override public function Free():void{
this.iInfo = null;
super.Free();
}
private function InitObject(_arg1:Array):void{
if (this.iInfo){
this.removeChild(this.iInfo);
this.iInfo.Free();
this.iInfo = null;
};
if (!_arg1){
return;
};
this.iInfo = new OInfoObject(_arg1, OInterface.iDefSlowAnimators);
this.addChild(this.iInfo);
this.iInfo.SetVisible(false);
this.iInfo.prVisible = true;
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
super.OnEnterFrame(_arg1);
switch (this.iState){
case stConnect:
_local2 = getTimer();
if ((_local2 - this.iTimer) >= TIME_NEXT){
this.iMode++;
this.ShowConnect();
this.iTimer = _local2;
};
break;
case stUserNotFound:
_local2 = getTimer();
if ((_local2 - this.iTimer) >= TIME_NEXT){
this.iMode++;
this.ShowUserNotFound();
this.iTimer = _local2;
};
break;
};
}
override public function set State(_arg1:int):void{
this.iState = _arg1;
switch (this.iState){
case stNone:
this.InitObject(null);
break;
case stConnect:
this.iMode = 0;
this.ShowConnect();
this.iTimer = getTimer();
break;
case stUserNotFound:
this.iMode = 0;
this.ShowUserNotFound();
this.iTimer = getTimer();
break;
case stInGame:
WellMahjong2L.OWInfoP[0][2] = 30;
WellMahjong2L.OWInfoP[0][3] = "yellow";
WellMahjong2L.OWInfoP[0][6] = 265;
WellMahjong2L.OWInfoP[0][4] = ((((WellMahjong2L.strOpponent1 + "\n") + this.iOpponent) + "\n") + WellMahjong2L.strOpponent2);
this.InitObject(WellMahjong2L.OWInfoP);
this.iTimer = getTimer();
break;
case stOpponent:
WellMahjong2L.OWInfoPPlayer[1][4] = this.iOpponent;
this.InitObject(WellMahjong2L.OWInfoPPlayer);
break;
case stEndLevel:
WellMahjong2L.OWInfoP[0][2] = 30;
WellMahjong2L.OWInfoP[0][3] = "magenta";
WellMahjong2L.OWInfoP[0][6] = 240;
WellMahjong2L.OWInfoP[0][4] = ((this.iOpponent + WellMahjong2L.strLevelScore) + this.iScore);
this.InitObject(WellMahjong2L.OWInfoP);
this.iTimer = getTimer();
break;
case stCompleteLevel:
WellMahjong2L.OWInfoP[0][2] = 30;
WellMahjong2L.OWInfoP[0][3] = "yellow1";
WellMahjong2L.OWInfoP[0][6] = 240;
WellMahjong2L.OWInfoP[0][4] = ((this.iOpponent + WellMahjong2L.strCompleteLevel) + this.iScore);
this.InitObject(WellMahjong2L.OWInfoP);
this.iTimer = getTimer();
break;
case stFailedLevel:
WellMahjong2L.OWInfoP[0][2] = 30;
WellMahjong2L.OWInfoP[0][3] = "red";
WellMahjong2L.OWInfoP[0][6] = 240;
WellMahjong2L.OWInfoP[0][4] = ((this.iOpponent + WellMahjong2L.strFailedLevel) + this.iScore);
this.InitObject(WellMahjong2L.OWInfoP);
this.iTimer = getTimer();
break;
};
}
}
}//package RES.WINDOWS
Section 89
//OWInGameMenu (RES.WINDOWS.OWInGameMenu)
package RES.WINDOWS {
import flash.events.*;
import flash.display.*;
import ENGINE.INTERFACE.*;
import flash.utils.*;
public class OWInGameMenu extends OWindow {
public var btnMainMenu:OButton;
public var btnInstructions:OButton;
public var btnOptions:OButton;
public var btnResume:OButton;
public var btnLevel:OButton;
public static const BTN_LEVEL:int = 3;
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_OPTIONS:int = 1;
public static var PRESS_BTN:int = 0;
public function OWInGameMenu(){
OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_NONE;
super(WellMahjong2L.OWInGameMenuParam);
}
override public function set prActive(_arg1:Boolean):void{
super.prActive = _arg1;
if (_arg1 == true){
switch (OWInGameMenu.PRESS_BTN){
case OWInGameMenu.BTN_LEVEL:
if (OWQuestionLevel.PRESS_BTN == OWQuestionLevel.BTN_YES){
(this.parent as OApplication).prMenuItem = WellMahjong2L.miGameSP;
this.CloseAllWindows();
};
break;
};
};
}
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;
(this.parent as OApplication).prMenuItem = WellMahjong2L.miOptions;
this.prActive = false;
break;
case this.btnInstructions:
trace("Press -> InGameMenu -> Instructions");
OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_INSTRUCTIONS;
(this.parent as OApplication).prMenuItem = WellMahjong2L.miInstructions;
this.prActive = false;
break;
case this.btnLevel:
trace("Press -> InGameMenu -> Level");
OWInGameMenu.PRESS_BTN = OWInGameMenu.BTN_LEVEL;
(this.parent as OApplication).prMenuItem = WellMahjong2L.miQuestionLevel;
this.prActive = false;
break;
case this.btnMainMenu:
trace(("Press -> InGameMenu -> Main Menu" + getTimer()));
(this.parent as OApplication).prMenuItem = WellMahjong2L.miMenu;
this.CloseAllWindows();
break;
};
}
private function CloseAllWindows():void{
var _local1:int;
var _local2:OWindow;
var _local3:DisplayObjectContainer;
var _local4:Array;
_local3 = this.parent;
_local4 = new Array();
_local1 = 0;
while (_local1 < _local3.numChildren) {
if ((_local3.getChildAt(_local1) is OWindow)){
_local4.push(this.parent.getChildAt(_local1));
};
_local1++;
};
_local1 = 0;
while (_local1 < _local4.length) {
_local2 = _local4[_local1];
_local2.Free();
if (_local1 != (_local4.length - 1)){
_local3.removeChild(_local2);
} else {
_local2.prVisible = false;
};
_local1++;
};
}
}
}//package RES.WINDOWS
Section 90
//OWInstruction (RES.WINDOWS.OWInstruction)
package RES.WINDOWS {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.geom.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
import RES.GAME.*;
public class OWInstruction extends ODialog {
private const M:String = "6a300302402302404302406302408302411213132131521317213221224122612";
private const fY:int = 96;
private const fX:int = 55;
private const iWidth:int = 200;
private const iHeight:int = 400;
private const iPause:int = 120;
private const SEED_RAND:int = 102;
private const absSkor:int = 5;
private const falseCurX:int = 50;
private const falseCurY:int;
private var iField:SField;
private var Cur:Point;
private var T:Array;
private var iStrComplete:OIObject;
private var iTimer:int;
private var iClick:int;// = 0
private var iTiles:Array;
private var koord:Point;
public var iClose:OButton;
private var iCursor:OBitmap;
private var iTextInstr:OBitmap;
private var TClicks:Array;
private var invLayer:OSprite;
private static const stPause5:int = 8;
private static const stPause2:int = 6;
private static const stShow:int = 1;
private static const stClick1:int = 5;
private static const stLevelComplete:int = 7;
private static const stDelete:int = 10;
private static const stInit:int = 2;
private static const stHide:int = 9;
private static const a0:int = SCell.TYPE_FON;
private static const stPause1:int = 4;
private static const stCreate:int = 0;
private static const stMove1:int = 3;
public function OWInstruction(){
falseCurY = (fY + 22);
iClick = 0;
super(WellMahjong2L.OWInstructionParam);
this.Pos(0, 0);
}
override public function Free():void{
this.iClose.Free();
super.Free();
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:Number;
switch (this.iState){
case stShow:
if (this.iField.alpha < 1){
this.iField.alpha = (this.iField.alpha + 0.05);
} else {
this.iField.alpha = 1;
this.State = stInit;
};
break;
case stPause1:
this.iTimer--;
if (this.iTimer <= 0){
this.State = stClick1;
};
break;
case stPause2:
this.iTimer--;
if (this.iTimer <= 0){
this.State = stInit;
};
break;
case stMove1:
_local2 = Math.sqrt((Math.pow((this.koord.x - this.iCursor.prX), 2) + Math.pow((this.koord.y - this.iCursor.prY), 2)));
if (_local2 > this.absSkor){
this.iCursor.prX = (this.iCursor.prX + this.Cur.x);
this.iCursor.prY = (this.iCursor.prY + this.Cur.y);
} else {
this.State = stPause1;
};
break;
case stLevelComplete:
if (this.iStrComplete.alpha < 1){
this.iStrComplete.alpha = (this.iStrComplete.alpha + 0.05);
} else {
this.State = stPause5;
this.iStrComplete.alpha = 1;
};
break;
case stPause5:
this.iTimer--;
if (this.iTimer <= 0){
this.State = stHide;
};
break;
case stHide:
if (this.iStrComplete.alpha > 0){
this.iStrComplete.alpha = (this.iStrComplete.alpha - 0.05);
} else {
this.iStrComplete.alpha = 0;
this.State = stDelete;
};
break;
};
super.OnEnterFrame(_arg1);
}
override public function set State(_arg1:int):void{
var _local2:Array;
var _local3:Number;
var _local4:Array;
var _local5:int;
this.iState = _arg1;
switch (this.iState){
case stCreate:
WellMahjong2L.RandP.SeedRand(SEED_RAND);
_local2 = SConvert.createLevel(M);
this.iField = new SField(WellMahjong2L.MODE_PLAYER, iWidth, iHeight, _local2, 1000000, false);
this.iField.prX = (this.iField.prX + fX);
this.iField.prY = (this.iField.prY + fY);
this.iField.alpha = 0;
this.addChild(this.iField);
this.setChildIndex(this.iStrComplete, (this.numChildren - 1));
this.setChildIndex(this.iCursor, (this.numChildren - 1));
if (this.contains(this.invLayer) == false){
this.addChild(this.invLayer);
};
this.setChildIndex(this.invLayer, (this.numChildren - 1));
this.State = stShow;
break;
case stInit:
if (this.iClick == 0){
_local4 = this.iField.getSokr();
if (_local4.length > 0){
_local5 = WellMahjong2L.RandP.RandOnInterval(0, (_local4.length - 1));
this.TClicks = _local4[_local5];
this.iClick = this.TClicks.length;
this.T = this.TClicks[(this.iClick - 1)];
this.iClick--;
this.State = stMove1;
} else {
this.State = stLevelComplete;
};
} else {
this.T = this.TClicks[(this.iClick - 1)];
this.iClick--;
this.State = stMove1;
};
break;
case stMove1:
this.koord = this.iField.koordCell(T[0], T[1], T[2]);
this.koord.x = (this.koord.x + this.falseCurX);
this.koord.y = (this.koord.y + this.falseCurY);
_local3 = Math.sqrt((Math.pow((koord.x - this.iCursor.prX), 2) + Math.pow((koord.y - this.iCursor.prY), 2)));
this.Cur.x = ((this.absSkor * (koord.x - this.iCursor.prX)) / _local3);
this.Cur.y = ((this.absSkor * (koord.y - this.iCursor.prY)) / _local3);
break;
case stPause1:
this.iTimer = (iPause / 4);
break;
case stClick1:
this.iField.clickFishka(T[0], T[1], T[2]);
this.State = stPause2;
break;
case stPause2:
this.iTimer = iPause;
break;
case stLevelComplete:
this.iStrComplete.alpha = 0;
this.iStrComplete.visible = true;
this.iField.stopGame();
break;
case stPause5:
this.iTimer = iPause;
break;
case stDelete:
this.iField.Free();
this.iField = null;
this.State = stCreate;
break;
};
}
override public function Init():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:Array;
var _local9:SCell;
super.Init();
this.invLayer = new OSprite();
this.invLayer.graphics.beginFill(0, 0);
this.invLayer.graphics.drawRect((fX * OGlobal.Scale), (fY * OGlobal.Scale), (iWidth * OGlobal.Scale), (iHeight * OGlobal.Scale));
this.invLayer.graphics.endFill();
this.iCursor = WellMahjong2S.MakeForm([null, 40, 40, "white", WellMahjong2L.OCursor, 0.7, 0, 0]);
this.iCursor.Pos(140, 150);
this.addChild(this.iCursor);
this.Cur = new Point();
this.iStrComplete = new OIObject(WellMahjong2L.iCompleteInstrParam);
this.iStrComplete.visible = false;
this.addChild(this.iStrComplete);
_local3 = 50;
_local4 = 425;
_local5 = 337;
_local6 = 20;
_local7 = 24;
SCell.redrawCache(_local3, WellMahjong2L.MODE_PLAYER, 1);
_local8 = SField.getGroupID();
this.iTiles = new Array();
_local1 = 0;
while (_local1 < _local8.length) {
_local2 = 0;
while (_local2 < _local8[_local1].length) {
_local9 = new SCell(WellMahjong2L.MODE_PLAYER, _local3, 0, 0, 0, _local8[_local1][_local2]);
_local9.prX = (_local4 + (_local2 * (_local3 + _local6)));
_local9.prY = (_local5 + (_local1 * ((_local3 * WellMahjong2L.hL) + _local7)));
_local9.drawD(SCell.DRAW_ALL);
_local9.drawL(SCell.DRAW_ALL);
this.addChild(_local9);
this.iTiles.push(_local9);
_local2++;
};
_local1++;
};
this.State = stCreate;
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg2 == this.iClose){
this.prVisible = false;
};
}
}
}//package RES.WINDOWS
Section 91
//OWIntro (RES.WINDOWS.OWIntro)
package RES.WINDOWS {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
public class OWIntro extends OWindow {
public var iHeader:OBitmap;
private var iTimer:Number;
public var iHit:OSprite;
public var iFooter:OBitmap;
private var iAlpha1:Array;
private var iAlpha2:Array;
public var iGameName2:OIObject;
public var iGameName1:OIObject;
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(){
WellMahjong2L.OWIntroParam[0][1] = [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]];
super(WellMahjong2L.OWIntroParam);
}
override public function Init():void{
var _local1:int;
var _local2:int;
var _local3:DisplayObject;
super.Init();
this.iHeader.alpha = 0;
this.iFooter.alpha = 0;
_local2 = this.iGameName1.numChildren;
this.iAlpha1 = new Array(_local2);
_local1 = 0;
while (_local1 < _local2) {
_local3 = this.iGameName1.getChildAt(_local1);
_local3.alpha = 0;
this.iAlpha1[_local1] = (-(_local1) * 0.3);
_local1++;
};
_local2 = this.iGameName2.numChildren;
this.iAlpha2 = new Array(_local2);
_local1 = 0;
while (_local1 < _local2) {
_local3 = this.iGameName2.getChildAt(_local1);
_local3.alpha = 0;
this.iAlpha2[_local1] = (-(_local1) * 0.3);
_local1++;
};
this.hitArea = this.iHit;
this.State = stBeforeShow;
}
override public function Free():void{
super.Free();
this.iHeader = null;
this.iFooter = null;
}
override public function OnMouseDown(_arg1:MouseEvent):void{
if (this.iState < OWIntro.stShowFooter){
return;
};
this.prVisible = false;
super.OnMouseDown(_arg1);
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:int;
switch (this.iState){
case stBeforeShow:
if (this.iTimer-- <= 0){
this.State = stShowHeader;
};
break;
case stShowHeader:
if (this.iHeader.alpha >= 1){
this.iHeader.alpha = 1;
this.State = stShowFooter;
} else {
this.iHeader.alpha = (this.iHeader.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 (this.iGameName1.getChildAt((this.iGameName1.numChildren - 1)).alpha < 1){
_local2 = 0;
while (_local2 < this.iGameName1.numChildren) {
this.iAlpha1[_local2] = (this.iAlpha1[_local2] + 0.025);
if (this.iAlpha1[_local2] > 1){
this.iAlpha1[_local2] = 1;
};
if (this.iAlpha1[_local2] >= 0){
this.iGameName1.getChildAt(_local2).alpha = this.iAlpha1[_local2];
};
_local2++;
};
};
if (this.iGameName2.getChildAt((this.iGameName2.numChildren - 1)).alpha < 1){
_local2 = 0;
while (_local2 < this.iGameName2.numChildren) {
this.iAlpha2[_local2] = (this.iAlpha2[_local2] + 0.025);
if (this.iAlpha2[_local2] > 1){
this.iAlpha2[_local2] = 1;
};
if (this.iAlpha2[_local2] >= 0){
this.iGameName2.getChildAt(_local2).alpha = this.iAlpha2[_local2];
};
_local2++;
};
};
if ((((this.iGameName1.getChildAt((this.iGameName1.numChildren - 1)).alpha >= 1)) && ((this.iGameName2.getChildAt((this.iGameName2.numChildren - 1)).alpha >= 1)))){
this.State = stNormal;
};
break;
case stNormal:
if (this.iTimer-- <= 0){
this.State = stHide;
};
break;
case stHide:
if (this.iFooter.alpha <= 0){
this.State = stInvisible;
} else {
this.iHeader.alpha = (this.iHeader.alpha - 0.05);
this.iFooter.alpha = (this.iFooter.alpha - 0.05);
this.iGameName1.alpha = (this.iGameName1.alpha - 0.05);
this.iGameName2.alpha = (this.iGameName2.alpha - 0.05);
};
break;
};
}
override public function set State(_arg1:int):void{
this.iState = _arg1;
switch (this.iState){
case stBeforeShow:
this.iTimer = 20;
break;
case stNormal:
this.iTimer = 180;
break;
case stInvisible:
this.prVisible = false;
break;
};
}
}
}//package RES.WINDOWS
Section 92
//OWMenu (RES.WINDOWS.OWMenu)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import RES.GAME.*;
import flash.net.*;
import ENGINE.SMARTFOX.*;
public class OWMenu extends ODialog {
public var iPlayers:OIObject;
public var iOptions:OButton;
public var iMoreGames:OButton;
public var iBName:OButton;
public var iEditor:OButton;
public var iCPlayers:OCounter;
public var iQuickPlay:OButton;
public var iHighScores:OButton;
public var iInstructions:OButton;
public var iInfo:OIObject;
public var iGameName1:OIObject;
public function OWMenu(){
WellMahjong2L.OWMenu[3][4] = SString.replace(WellMahjong2L.strMainMenuLevel, "[NUM]", SLevels.Levels.length.toString());
super(WellMahjong2L.OWMenu);
}
private function ShowUserReiting(_arg1:Boolean):void{
var _local2:String;
var _local3:String;
var _local4:Array;
_local2 = WellMahjong2L.OWColors[Math.round((Math.random() * (WellMahjong2L.OWColors.length - 1)))];
WellMahjong2L.OWMenuReiting[0][3] = _local2;
if (_arg1){
WellMahjong2L.iMP.ClearOpponentTurn(true);
WellMahjong2L.OWMenuReiting[0][4] = (((WellMahjong2L.iGAME.prPlayerName + WellMahjong2L.strReiting2) + " ") + WellMahjong2L.iGAME.prScore.toString());
if (WellMahjong2L.sLang == "DE"){
WellMahjong2L.OWMenuReiting[0][4] = ((WellMahjong2L.iGAME.prPlayerName + " ") + SString.replace(WellMahjong2L.strReiting2, "[score]", WellMahjong2L.iGAME.prScore.toString()));
};
this.InitObject(WellMahjong2L.OWMenuReiting);
};
if (WellMahjong2L.iMP.State != OMultiplayer.stInZone){
return;
};
_local3 = WellMahjong2L.iMP.prOpponentTurn;
WellMahjong2L.iMP.ClearOpponentTurn(true);
WellMahjong2L.iMP.Turn(["rdr"]);
if (!_local3){
return;
};
_local4 = _local3.split(/,/);
WellMahjong2L.OWMenuReiting[0][4] = (((((int(_local4[0]) + 1).toString() + WellMahjong2L.strReiting1) + _local4[1]) + WellMahjong2L.strReiting2) + _local4[2]);
this.InitObject(WellMahjong2L.OWMenuReiting);
}
override public function set prVisible(_arg1:Boolean):void{
super.prVisible = _arg1;
}
override public function Init():void{
WellMahjong2L.OWMenu[0][4] = ((WellMahjong2L.strWelcome + " ") + WellMahjong2L.iGAME.prPlayerName);
super.Init();
if (WellMahjong2L.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 = WellMahjong2L.iMP.prUsersCount;
this.iPlayers.prAnimationEnabled = true;
this.iCPlayers.Pos((this.iQuickPlay.prX + 10), this.iCPlayers.prY);
this.iPlayers.Pos((this.iCPlayers.prX + 90), this.iPlayers.prY);
this.ShowUserReiting(true);
}
override public function set prActive(_arg1:Boolean):void{
super.prActive = _arg1;
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg2 == this.iBName){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miChoosePlayer);
this.prVisible = false;
return;
};
if (_arg2 == this.iQuickPlay){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miPlayOnLine);
this.prVisible = false;
return;
};
if (_arg2 == this.iOptions){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miOptions);
this.prActive = false;
return;
};
if (_arg2 == this.iInstructions){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miInstructions);
this.prActive = false;
return;
};
if (_arg2 == this.iHighScores){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miHighScores);
this.prActive = false;
return;
};
if (_arg2 == this.iMoreGames){
navigateToURL(new URLRequest(WellMahjong2L.sURLSite));
return;
};
if (_arg2 == this.iEditor){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miEditor);
this.prVisible = false;
return;
};
(this.parent as OWindow).OnPress(null, WellMahjong2L.miCommingSoon);
this.prActive = false;
}
override public function Free():void{
this.iBName = null;
this.iGameName1 = null;
this.iCPlayers = null;
this.iPlayers = null;
this.iQuickPlay = null;
this.iOptions = null;
this.iInstructions = null;
this.iHighScores = null;
this.iMoreGames = null;
super.Free();
}
private function InitObject(_arg1:Array):void{
if (this.iInfo){
this.removeChild(this.iInfo);
this.iInfo.Free();
this.iInfo = null;
};
if (!_arg1){
return;
};
this.iInfo = new OIObject(_arg1, OInterface.iDefSlowAnimators);
this.addChild(this.iInfo);
this.iInfo.SetVisible(false);
this.iInfo.prVisible = true;
}
override public function OnEnterFrame(_arg1:Event):void{
if (this.iCPlayers.prValue != WellMahjong2L.iMP.prUsersCount){
if (WellMahjong2L.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 = WellMahjong2L.iMP.prUsersCount;
};
super.OnEnterFrame(_arg1);
}
}
}//package RES.WINDOWS
Section 93
//OWOptions (RES.WINDOWS.OWOptions)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.CORE.*;
import flash.system.*;
public class OWOptions extends ODialog {
public var iResolution:OListBox;
public var iSound:OListBox;
public var iFullScreen:OListBox;
private var iSResList:Array;
private var iSRes:Array;
public var iMusic:OListBox;
public var iCancel:OButton;
public var iAccept:OButton;
public function OWOptions(){
super(WellMahjong2L.OWOptions);
}
private function AddResolution(_arg1:int, _arg2:int):void{
if ((((_arg1 <= Capabilities.screenResolutionX)) && ((_arg2 <= Capabilities.screenResolutionY)))){
this.iSRes.push([_arg1, _arg2]);
this.iSResList.push(((_arg1.toString() + " X ") + _arg2.toString()));
};
}
override public function Init():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:int;
var _local5:int;
var _local6:Number;
WellMahjong2L.OWOptions[0][2] = 340;
WellMahjong2L.OWOptions[5][11] = 190;
WellMahjong2L.OWOptions[6][8] = 260;
WellMahjong2L.OWOptions[7][8] = 260;
super.Init();
this.iResolution.prVisible = false;
this.iSound.prCurrentInd = int((WellMahjong2L.iGAME.prSoundVolume * 10));
this.iMusic.prCurrentInd = int((WellMahjong2L.iGAME.prMusicVolume * 10));
this.InitResolutions();
this.iResolution.prLBParams = this.iSResList;
_local1 = OGlobal.prStage.stageWidth;
_local2 = OGlobal.prStage.stageHeight;
_local3 = 10000;
_local4 = 0;
_local5 = 0;
while (_local5 < this.iSRes.length) {
_local6 = (Math.abs((this.iSRes[_local5][0] - _local1)) + Math.abs((this.iSRes[_local5][1] - _local2)));
if (_local6 < _local3){
_local4 = _local5;
_local3 = _local6;
};
_local5++;
};
this.iResolution.prCurrentInd = _local4;
this.iFullScreen.prCurrentInd = ((((OGlobal.prStage.stageWidth == Capabilities.screenResolutionX)) && ((OGlobal.prStage.stageHeight == Capabilities.screenResolutionY)))) ? 1 : 0;
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg2 == this.iCancel){
this.prVisible = false;
return;
};
if (_arg2 == this.iAccept){
this.prVisible = false;
WellMahjong2L.iGAME.prSoundVolume = (this.iSound.prCurrentInd / 10);
WellMahjong2L.iGAME.prMusicVolume = (this.iMusic.prCurrentInd / 10);
WellMahjong2L.iGAME.prResX = this.iSRes[this.iResolution.prCurrentInd][0];
WellMahjong2L.iGAME.prResY = this.iSRes[this.iResolution.prCurrentInd][1];
WellMahjong2L.iGAME.prFullScreen = (this.iFullScreen.prCurrentInd) ? true : false;
fscommand("fullscreen", WellMahjong2L.iGAME.prFullScreen.toString());
return;
};
}
override public function Free():void{
this.iSound = null;
this.iMusic = null;
this.iResolution = null;
this.iFullScreen = null;
this.iAccept = null;
this.iCancel = null;
this.iSRes = null;
this.iSResList = null;
super.Free();
}
private function InitResolutions():void{
this.iSRes = new Array();
this.iSResList = new Array();
AddResolution(640, 480);
AddResolution(800, 600);
AddResolution(0x0400, 600);
AddResolution(0x0400, 0x0300);
AddResolution(0x0500, 0x0300);
AddResolution(0x0500, 0x0400);
AddResolution(Capabilities.screenResolutionX, Capabilities.screenResolutionY);
}
}
}//package RES.WINDOWS
Section 94
//OWQuestionLevel (RES.WINDOWS.OWQuestionLevel)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
public class OWQuestionLevel extends OWindow {
public var btnNo:OButton;
public var btnYes:OButton;
public static const BTN_YES:int = 0;
public static const BTN_NO:int = 1;
public static const BTN_NONE:int = -1;
public static var PRESS_BTN:int = 0;
public function OWQuestionLevel(){
OWQuestionLevel.PRESS_BTN = OWQuestionLevel.BTN_NONE;
super(WellMahjong2L.OWQuestionLevelParam);
}
override public function OnPress(_arg1:Event, _arg2):void{
switch (_arg2){
case this.btnYes:
OWQuestionLevel.PRESS_BTN = OWQuestionLevel.BTN_YES;
break;
case this.btnNo:
OWQuestionLevel.PRESS_BTN = OWQuestionLevel.BTN_NO;
break;
};
this.SetVisible(false);
}
}
}//package RES.WINDOWS
Section 95
//OWResults (RES.WINDOWS.OWResults)
package RES.WINDOWS {
import flash.events.*;
import ENGINE.INTERFACE.*;
import ENGINE.GAME.*;
import ENGINE.CORE.*;
import flash.utils.*;
import RES.GAME.*;
public class OWResults extends OAlert {
private var iTimer:Timer;
private var iRecord:Boolean;
public var iReplay:OButton;
public var iNextLevel:OButton;
public static const stScore:int = 3;
public static const stHits:int = 1;
public static const stStart:int = 0;
public static const stMisses:int = 2;
public function OWResults(){
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = WellMahjong2L.iGAME.Read(OGame.catTmp, "Score");
_local2 = WellMahjong2L.iGAME.Read(OGame.catTmp, "ScoreO");
_local3 = (_local1 + _local2);
OSound.PlaySoundInd(4);
WellMahjong2L.OWResultsLevelScore[1][5] = _local1.toString();
WellMahjong2L.OWResultsBonusScore[1][5] = _local2.toString();
WellMahjong2L.OWResultsTotalScore[1][5] = _local3.toString();
WellMahjong2L.OWResultsReiting[1][5] = WellMahjong2L.iGAME.prScore.toString();
super(WellMahjong2L.OWResults, null);
}
override public function Init():void{
super.Init();
this.Pos(0, 0);
this.iTimer = new Timer(500, 6);
this.iTimer.addEventListener(TimerEvent.TIMER, OnTimer);
this.iTimer.start();
}
override public function OnPress(_arg1:Event, _arg2):void{
var _local3:int;
if (_arg2 == this.iReplay){
(this.parent as OWindow).OnPress(null, WellMahjong2L.miReturnGameSP);
this.prActive = false;
this.prVisible = false;
};
if (_arg2 == this.iNextLevel){
WellMahjong2L.iGAME.NextLevel();
if (WellMahjong2L.iGAME.prLevel >= SLevels.Levels.length){
_local3 = WellMahjong2L.iGAME.prScore;
WellMahjong2L.iGAME.NewGame();
WellMahjong2L.iGAME.AddScore(_local3);
};
(this.parent as OWindow).OnPress(null, WellMahjong2L.miReturnGameSP);
this.prActive = false;
this.prVisible = false;
};
}
override public function Free():void{
this.iTimer.stop();
this.iTimer.removeEventListener(TimerEvent.TIMER, OnTimer);
this.iTimer = null;
super.Free();
}
private function OnTimer(_arg1:TimerEvent):void{
switch (this.iTimer.currentCount){
case 1:
(this.getChildAt(0) as OIObject).prVisible = true;
OSound.PlaySoundInd(0);
break;
case 2:
(this.getChildAt(1) as OIObject).prVisible = true;
OSound.PlaySoundInd(0);
break;
case 3:
(this.getChildAt(2) as OIObject).prVisible = true;
OSound.PlaySoundInd(0);
break;
case 4:
(this.getChildAt(3) as OIObject).prVisible = true;
OSound.PlaySoundInd(0);
break;
case 5:
(this.getChildAt(4) as OIObject).prVisible = true;
OSound.PlaySoundInd(0);
break;
case 6:
this.iReplay.prVisible = true;
this.iNextLevel.prVisible = true;
OSound.PlaySoundInd(1);
break;
};
}
override public function OnEnterFrame(_arg1:Event):void{
var _local2:OIObject;
super.OnEnterFrame(_arg1);
}
}
}//package RES.WINDOWS
Section 96
//OCGame (OCGame)
package {
import ENGINE.GAME.*;
public class OCGame extends OGame {
public function OCGame(){
super(2, 5);
}
override public function DefaultInitLocalScores():void{
this.iScores.Clear(0);
this.iScores.AddScore("Emily", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Michael", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Jacob", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Isabella", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3)));
this.iScores.AddScore("Madison", (int(((Math.random() * 543) + 200)) * 10), 0, int(((Math.random() * 5) + 3)));
this.iScores.SortOn(0);
}
}
}//package
Section 97
//WellMahjong2 (WellMahjong2)
package {
import ENGINE.DISPLAY.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.INTERFACE.*;
import ENGINE.GAME.*;
import ENGINE.CORE.*;
import RES.EDITOR.WINDOWS.*;
import RES.GAME.*;
import RES.WINDOWS.*;
import flash.net.*;
import ENGINE.SMARTFOX.*;
import ENGINE.AD.*;
import RES.OBJECTS.*;
public class WellMahjong2 extends OApplication {
private var iLoader:Loader;
private var iSystem:OSystem;
private var iWindow:OWindow;
public function WellMahjong2(){
var dmin:int;
var dmax:int;
var tmp:int;
super("WellMahjong2");
WellMahjong2L.iGAME;
OSound.PlayListAdd("music.mp3");
OSound.PlayMusic();
OAdBanners.InitTBanner(WellMahjong2L.sTBannerPrefix, WellMahjong2L.sBannerID);
OAdBanners.InitBBanner(WellMahjong2L.sBBannerPrefix, WellMahjong2L.sBannerID);
dmin = this.loaderInfo.parameters["lmin"];
dmax = this.loaderInfo.parameters["lmax"];
trace(("dmin = " + dmin));
trace(("dmax = " + dmax));
if (dmin != dmax){
dmin = (dmin - 1);
dmax = (dmax - 1);
if (dmin < 0){
dmin = 0;
};
if (dmax < 0){
dmax = 0;
};
if (dmin >= SLevels.Levels.length){
dmin = (SLevels.Levels.length - 1);
};
if (dmax >= SLevels.Levels.length){
dmax = (SLevels.Levels.length - 1);
};
if (dmin > dmax){
tmp = dmin;
dmin = dmax;
dmax = tmp;
};
SLevels.Levels.splice((dmax + 1), (SLevels.Levels.length - (dmax + 1)));
SLevels.Levels.splice(0, dmin);
};
this.iLoader = new Loader();
this.iLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.OnImageLoadComplete);
this.iLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.OnImageLoadError);
try {
this.iLoader.load(new URLRequest("bg.jpg"));
} catch(e:Error) {
this.OnImageLoadError(null);
};
}
private function OnImageLoadComplete(_arg1:Event):void{
var aEvent = _arg1;
OLoadImage.LINK_LOADER = this.iLoader;
try {
this.InitBackground([OLoadImage], 0);
} catch(e:Error) {
this.InitBackground([WellMahjong2L.OBG02], 0);
};
}
override protected function OnMenuItem():void{
var _local1:int;
var _local2:DisplayObject;
var _local3:OWHighScores;
_local1 = this.prMenuItem;
switch (_local1){
case WellMahjong2L.miNullWindow:
return;
case WellMahjong2L.miLastWindow:
_local2 = this.getChildAt((this.numChildren - 1));
iWindow = ((_local2 is OWindow)) ? (_local2 as OWindow) : null;
if (iWindow){
iWindow.prActive = true;
return;
};
iWindow = new OWMenu();
this.prMenuItem = WellMahjong2L.miNullWindow;
break;
case WellMahjong2L.miIntro:
iWindow = new OWIntro();
if (WellMahjong2L.iGAME.prPlayerName == ""){
this.prMenuItem = WellMahjong2L.miEnterNameFirst;
} else {
this.prMenuItem = WellMahjong2L.miMenu;
};
break;
case WellMahjong2L.miEnterNameFirst:
iWindow = new OWEnterName(false);
this.prMenuItem = WellMahjong2L.miMenu;
break;
case WellMahjong2L.miEnterNewName:
iWindow = new OWEnterName(true);
(iWindow as OWEnterName).prName = "";
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miMenu:
switch (WellMahjong2L.iMP.State){
case OMultiplayer.stNone:
WellMahjong2L.iMP.Init(WellMahjong2L.sDomain, WellMahjong2L.sServer, WellMahjong2L.sZone, WellMahjong2L.sXTName, WellMahjong2L.iGAME.prPlayerName);
break;
case OMultiplayer.stConnectionError:
if (WellMahjong2L.iMP.prErrorsCount < 5){
WellMahjong2L.iMP.State = OMultiplayer.stNone;
WellMahjong2L.iMP.Init(WellMahjong2L.sDomain, WellMahjong2L.sServer, WellMahjong2L.sZone, WellMahjong2L.sXTName, WellMahjong2L.iGAME.prPlayerName);
};
break;
};
iWindow = new OWMenu();
this.prMenuItem = WellMahjong2L.miNullWindow;
break;
case WellMahjong2L.miCommingSoon:
iWindow = new OAlert(WellMahjong2L.OWCommingSoon, null);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miChoosePlayer:
iWindow = new OWChoosePlayer();
this.prMenuItem = WellMahjong2L.miMenu;
break;
case WellMahjong2L.miDeletePlayerConfirm:
iWindow = new OAlert(WellMahjong2L.OWDeletePlayerConfirm, [WellMahjong2L.miDeletePlayer, WellMahjong2L.miLastWindow]);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miDeletePlayer:
WellMahjong2L.iGAME.DeletePlayer(WellMahjong2L.iGAME.prPlayerName);
if (WellMahjong2L.iGAME.prPlayerName != ""){
this.OnMenuItem();
return;
};
iWindow = new OWEnterName(false);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miOptions:
iWindow = new OWOptions();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miPlayOnLine:
if (WellMahjong2L.iGAME.prLevel == 0){
iWindow = new OWInstruction();
this.prMenuItem = WellMahjong2L.miGameSP;
break;
};
_local1 = WellMahjong2L.miGameSP;
case WellMahjong2L.miGameSP:
WellMahjong2L.iGAME.prMode = 0;
iWindow = new OWGame(false);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miResultsSP:
iWindow = new OWResults();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miReturnGameSP:
iWindow = (this.getChildAt((this.numChildren - 1)) as OWGame);
iWindow.prActive = true;
return;
case WellMahjong2L.miHighScores:
iWindow = new OWHighScores();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miDeleteScoresConfirm:
iWindow = new OAlert(WellMahjong2L.OWDeleteScoresConfirm, [WellMahjong2L.miDeleteScores, WellMahjong2L.miLastWindow]);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miDeleteScores:
_local3 = (this.getChildAt((this.numChildren - 1)) as OWHighScores);
if (_local3.iTable.prValue == 0){
WellMahjong2L.iGAME.ClearLocalScores(0);
} else {
WellMahjong2L.iGAME.ClearPersonalScores(0);
};
this.OnMenuItem();
return;
case WellMahjong2L.miInstructions:
iWindow = new OWInstruction();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miEditor:
this.iWindow = new OWReader();
this.prMenuItem = WellMahjong2L.miMenu;
break;
case WellMahjong2L.miResize:
iWindow = new OWResize();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miNeChet:
iWindow = new OAlert(WellMahjong2L.OWNeChet, null);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miTest:
this.iWindow = new OWGame(true);
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miPublish:
this.iWindow = new OWLevelSender();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miInGameMenu:
this.iWindow = new OWInGameMenu();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
case WellMahjong2L.miQuestionLevel:
this.iWindow = new OWQuestionLevel();
this.prMenuItem = WellMahjong2L.miLastWindow;
break;
};
this.addChild(iWindow);
}
override public function Init():void{
if (((((!(this.stage)) || ((this.stage.stageHeight == 0)))) || ((this.stage.stageWidth == 0)))){
return;
};
if (this.iLoader != null){
this.OnImageLoadComplete(null);
};
if (WellMahjong2L.sDebug){
this.iSystem = new OSystem();
this.addChild(this.iSystem);
};
super.Init();
this.prMenuItem = WellMahjong2L.miIntro;
OnMenuItem();
}
private function isDownCell(_arg1:Array, _arg2:int, _arg3:int, _arg4:int):Boolean{
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
if (_arg4 == 0){
return (true);
};
_local7 = (_arg4 - 1);
_local10 = (_arg2 - 1);
_local11 = (_arg2 + 1);
_local8 = (_arg3 - 1);
_local9 = (_arg3 + 1);
if (_local10 < 0){
_local10 = 0;
};
if (_local10 >= _arg1[_local7][0].length){
_local10 = (_arg1[_local7][0].length - 1);
};
if (_local8 < 0){
_local8 = 0;
};
if (_local8 >= _arg1[_local7].length){
_local8 = (_arg1[_local7].length - 1);
};
_local5 = _local8;
while (_local5 <= _local9) {
_local6 = _local10;
while (_local6 <= _local11) {
if (_arg1[_local7][_local5][_local6] == SCell.TYPE_NOR){
return (true);
};
_local6++;
};
_local5++;
};
return (false);
}
override public function OnPress(_arg1:Event, _arg2):void{
if (_arg1 == null){
this.prMenuItem = _arg2;
};
}
private function checkLevels():void{
var _local1:int;
var _local2:String;
var _local3:String;
var _local4:Array;
var _local5:Array;
trace("Valid levels:");
_local1 = 0;
while (_local1 < SLevels.Levels.length) {
_local2 = SLevels.Levels[_local1];
_local4 = _local2.split(",");
_local3 = _local4[1];
_local5 = SConvert.createLevel(_local3);
if (this.isValidLevel(_local5)){
trace((("\"" + SLevels.Levels[_local1]) + "\","));
};
_local1++;
};
}
private function isValidLevel(_arg1:Array):Boolean{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local2 = 0;
while (_local2 < _arg1[_local4].length) {
_local3 = 0;
while (_local3 < _arg1[_local4][_local2].length) {
if (_arg1[_local4][_local2][_local3] == SCell.TYPE_NOR){
if (this.isDownCell(_arg1, _local3, _local2, _local4) == false){
return (false);
};
};
_local3++;
};
_local2++;
};
_local4--;
};
return (true);
}
private function OnImageLoadError(_arg1:Event):void{
this.InitBackground([OLoadImage], 0);
}
override protected function OnDeactivate(_arg1:Event):void{
WellMahjong2L.iGAME.SaveCache();
if ((this.iWindow is OWGame)){
(this.iWindow as OWGame).startPause();
};
}
override public function OnEnterFrame(_arg1:Event):void{
super.OnEnterFrame(_arg1);
WellMahjong2L.iMP.OnEnterFrame();
OSystem.iUserText1 = (((((((" : " + WellMahjong2L.iMP.State.toString()) + " : ") + WellMahjong2L.iMP.prActiveRoomID.toString()) + " ") + WellMahjong2L.iMP.prPlayerID.toString()) + " : ") + WellMahjong2L.iMP.prError);
if (iWindow){
if (iWindow.prAnimation){
return;
};
if (!iWindow.prVisible){
this.removeChild(iWindow);
iWindow.Free();
iWindow = null;
this.OnMenuItem();
} else {
if (!iWindow.prActive){
this.OnMenuItem();
};
};
};
}
}
}//package
Section 98
//WellMahjong2L (WellMahjong2L)
package {
import ENGINE.DISPLAY.*;
import ENGINE.INTERFACE.*;
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.GAME.*;
import ENGINE.CORE.*;
import ENGINE.SMARTFOX.*;
public class WellMahjong2L {
public static const delScoreX:int = 430;
public static const dBlick:Number = 0.025;
public static const strMainMenu:String = "Main Menu";
public static const strCancel:String = "Cancel";
public static const miDeletePlayer:int = 9;
public static const strLevelID:String = "Level # ";
public static const miDeleteScoresConfirm:int = 16;
public static const miTest:int = 24;
public static const strHint:String = "Hint";
public static const strPresents:String = "presents";
public static const delScoreHint:int = 500;
public static const strMosaicComplete:String = "Mosaic complete";
public static const miCommingSoon:int = 6;
public static const strConnect1URL:String = "http://www.wellgames.com/free_online/wellmahjong2/?g=wellmahjong2";
public static const MODE_OPPONENT:int = 1;
public static const strResults:String = "Results";
public static const strQuestionLevel:String = "Do you want
to try another
level?";
public static const strChoosePlayer:String = "Choose a Player";
public static const sBBannerPrefix:String = "bottom/";
public static const cellLFiltrO:Number = 0.2;
public static const cellLFiltrP:Number = 0.3;
public static const time_hint:int = 300;
public static const strCommingSoon:String = "Coming Soon...";
public static const strInstructionsText:String = "Match identical tiles to clear
the playfield. Use the tiles
with free right or left side.
The tiles in the following
groups are considered as equal.";
public static const szDelScore:int = 40;
public static const strNotTime:String = "No points left";
public static const clDelScore:String = "red";
public static const strConnect2URL:String = "http://www.wellgames.com/?g=wellmahjong2";
public static const miLastWindow:int = 1;
public static const hL:Number = 1.2121;
public static const strInputText:String = "Input Text";
public static const strFullScreen:String = "Full Screen";
public static const strNotMoved:String = "No moves";
private static const iWOptionsVolume:Array = [WellMahjong2L.strOff, "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%"];
public static const cellFiltrP:Number = 1;
public static const MODE_PLAYER:int = 0;
public static const sLang:String = "EN";
public static const strMainMenuLevel:String = "Internet Community - [NUM] Levels";
public static const dLx:Number = 0.2121;
public static const cellFiltrO:Number = 0.7;
public static const strSite:String = "WELLGAMES.COM";
public static const strNextLevel:String = "Next Level";
public static const strSendingLevel:String = "Sending the Level";
public static const min_alpha:Number = 0.2;
public static const miMenu:int = 5;
public static const strGlobal:String = "Global";
public static const strConnect3URL:String = "http://absolutist.com/cgi-bin/tell_a_friend.pl?url=http://wellgames.com/free_online/wellmahjong2/?g=wellmahjong2";
public static const strMoreGames:String = "More Games";
public static const strDeletePlayer:String = "Delete";
public static const delScoreNoMv:int = 200;
public static const delScore:int = 100;
public static const strPlace:String = " Place";
public static const dLy:Number = 0.2121;
public static const strSound:String = "Sound Volume";
public static const miOptions:int = 10;
public static const sURLSite:String = "http://www.wellgames.com/?g=WellMahjong2";
public static const miDeleteScores:int = 17;
public static const miResize:int = 21;
public static const strHighScores:String = "High Scores";
public static const strNewPlayer:String = "NEW PLAYER!";
public static const strReplay:String = "Replay";
public static const strClickToContinue:String = "Click to continue ...";
public static const strReiting2:String = "'s Rating Is ";
public static const strWindow:String = "Window";
public static const strDeleteScoresConfirm:String = "Are you sure you
want to delete
scores table?";
public static const strReiting1:String = " Place: ";
public static const miDeletePlayerConfirm:int = 8;
public static const miPlayOnLine:int = 11;
public static const strOff:String = "Off";
public static const miInstructions:int = 18;
public static const sServer:String = "www.wellgames.com";
public static const strHasReiting:String = "'s
Rating Is
";
public static const sDebug:Boolean = false;
public static const strCreateOwnLev:String = "Create your own level";
public static const strPublish:String = "Publish";
public static const strLayer:String = "Layer";
public static const dHideForm:Number = 0.1;
public static const strNew:String = "New";
public static const cellDColor:Array = ["dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0", "dcolor0"];
public static const strResume:String = "Resume";
public static const sTBannerPrefix:String = "top/";
public static const strConnect2:String = "Try Other
Multiplayer
Games!";
public static const sXTName:String = "wm2";
public static const strConnect3:String = "Tell A Friend
About
WellMahjong 2";
public static const strGainedScore:String = "Gained Score";
public static const strConnect1:String = "Play With
Other Gamers
In Multiplayer
Mode!";
public static const strYourReiting:String = "Your Rating";
public static const timeNoMoves:int = 30;
public static const strContinue:String = "Continue";
public static const FIGURES:Array = [f01, f02, f03, f04, f05, f06, f07, f08, f09, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, f30, f31, f32, f33, f34, f35, f36, f37, f38, f39, f40, f41, f42];
public static const strLevelSent:String = "Level Submitted";
public static const miEnterNewName:int = 4;
public static const strRemove:String = "Remove";
public static const strLevelSendFailed:String = "Submisson Failure";
public static const strMosaic:String = "Mosaic";
public static const strWidth:String = "Width";
public static const timePauseNoMoves:int = 60;
public static const miEditor:int = 19;
public static const strLevelComplete:String = "Level Complete";
public static const strIntrntComnt:String = "Internet Community";
public static const miIntro:int = 2;
public static const strCreatedBy:String = "Created By
[NAME]";
public static const delAlphaScore:Number = 0.025;
public static const strNewGame:String = "New Game";
public static const strPause:String = "Pause";
public static const strClose:String = "Close";
private static const OWHighScoresType:Array = [WellMahjong2L.strLocal, WellMahjong2L.strPersonal];
public static const strEnterName:String = "please enter your name:";
public static const strFailedLevel:String = "
Has Failed
The Level
With Score
";
public static const strError:String = "Error";
public static const strTest:String = "Test";
public static const cellLColor:Array = ["rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0", "rcolor0"];
public static const strMusic:String = "Music Volume";
public static const strInstructions:String = "Instructions";
public static const strLevelScore:String = "Level Score: ";
public static const strPublishRaiting:String = "Publish Raiting";
public static const miGameSP:int = 12;
public static const strCreate:String = "Create";
public static const strComplete:String = "Complete";
public static const miResultsSP:int = 13;
public static const strAccept:String = "Accept";
public static const strClear:String = "Clear";
public static const timeOpponentComplete:int = 60;
public static const F_W:int = 560;
public static const cellDFiltrP:Number = 0.3;
public static const strConnectionToServer:String = "Connecting To Server...";
public static const strSendMail:String = "Send Mail";
public static const cellDFiltrO:Number = 0.2;
public static const strHeight:String = "Height";
public static const strPlayersOnline1:String = "Players
Online";
public static const sZone:String = "WellMahjong2";
public static const strDeletePlayerConfirm:String = "Are you sure you
want to delete
this profile?";
public static const strBonusScore:String = "Bonus Score";
public static const strTotalScore:String = "Level Score";
public static const sBannerID:String = "wellmahjong2";
public static const miReturnGameSP:int = 14;
public static const strScore:String = "Score:";
public static const F_H:int = 560;
public static const strLevel_:String = "Level";
public static const strGameName:String = "WellMahjong 2";
public static const strYes:String = "Yes";
public static const strClearFieldBonus:String = "Clear Field Bonus";
public static const miNeChet:int = 23;
public static const miQuestionLevel:int = 27;
public static const strProgram:String = "Mahjong Rd";
public static const sDomain:String = "wellgames.com";
public static const strCompleteLevel:String = "
Has Completed
The Level
With Score
";
public static const miHighScores:int = 15;
public static const strCompleted:String = "Completed";
public static const selColor:Array = ["red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1", "red1"];
public static const miNullWindow:int = 0;
public static const strOptions:String = "Options";
public static const strMenu:String = "Menu";
public static const c_blick:int = 3;
public static const strGroupA:String = "Group A";
public static const strGroupB:String = "Group B";
public static const cellColor:Array = ["color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0", "color0"];
public static const strDelete:String = "Delete";
public static const strOpponent1:String = "Opponent";
public static const strOpponent2:String = "In Game";
public static const verRazbor:int = 101;
private static const iWOptionsOnOff:Array = [WellMahjong2L.strOff, WellMahjong2L.strOn];
public static const strYourRaiting:String = "Your Raiting";
public static const strOtherLevel:String = "Other Level";
public static const strRead:String = "Read";
public static const miInGameMenu:int = 26;
public static const strChangePlayer:String = "click to change player";
public static const strCommingSoonI:String = "This option is not available
at the moment";
public static const strPersonal:String = "Personal";
public static const strPublishScore:String = "Publish Score";
public static const miChoosePlayer:int = 7;
public static const miEnterNameFirst:int = 3;
private static const OSoundParams:Array = [WellMahjong2L.OSBubbleBang01, WellMahjong2L.OSBubbleBang02, WellMahjong2L.OSBubbleBang03, WellMahjong2L.OSBubbleBang04];
public static const strPlayOnline:String = "Play Online!";
public static const strLocal:String = "Local";
public static const strNeChet:String = "The number of tiles
should be even";
public static const strApply:String = "Apply";
public static const timeScore:int = 2000;
public static const strNo:String = "No";
public static const strLevel:String = "Level:";
public static const strTiles:String = "Tiles";
public static const dXHide:Number = 0.143;
public static const miPublish:int = 25;
public static const tHide:Number = 0.025;
public static const strWelcome:String = "Welcome";
public static const strPlayersOnline:String = "Players Online";
public static const strOn:String = "On";
public static const delScoreY:int = 545;
public static const delScoredY:int = 2;
public static var iMP:OMultiplayer = new OMultiplayer(sDebug);
public static var OWOpponentScoreElement:Array = [OInterface.OTabMake, [[WellMahjong2S.Header, 20, 30, "0", " ", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "0", "0", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "30", "1", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "60", "2", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "90", "3", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "120", "4", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "150", "5", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "180", "6", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "210", "7", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "240", "8", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 30, "270", "9", 0, 0, null, 0, false]], 18, 30, WellMahjong2L.OWGameCounterAnimator, null];
public static var iClearFieldBonusParam:Array = [[WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors, WellMahjong2L.strClearFieldBonus, null, 15, 211, null, 0, true], [WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors1, "0000", null, 15, 261, null, 0, true]];
public static var OWInfoP:Array = [[WellMahjong2S.Header, 250, 30, "yellow", WellMahjong2L.strConnect1, 5, 265, null, 0, true]];
public static var OIRight:Class = WellMahjong2L_OIRight;
public static var OWHighScores:Array = [[WellMahjong2S.BigFrame, 600, 510, "yellow", "white", 0, 0, null, 0, true], [WellMahjong2S.Header, 600, 50, "yellow", WellMahjong2L.strHighScores, 0, 20, null, 0, true], [WellMahjong2S.ListBoxTextHSlider, 280, 50, "aqua1", false, 190, 40, "aqua1", "", WellMahjong2L.OWHighScoresType, 160, 75, "iType", 0, true], [WellMahjong2S.SmallBorder, 540, 200, "yellow", 30, 130, null, 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWHighScoreTabF, 45, 145, "iTable", 0, true], [WellMahjong2S.MakeTextButton, 180, 60, "yellow", "yellow", 30, WellMahjong2L.strGlobal, 30, 350, "iGlobal", 0, true], [WellMahjong2S.MakeTextButton, 180, 60, "aqua1", "aqua1", 30, WellMahjong2L.strPublish, 390, 350, "iPublish", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strClear, 110, 430, "iClear", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strClose, 340, 430, "iClose", 0, true]];
public static var OWDeleteScoresConfirm:Array = [[WellMahjong2S.BigFrame, 420, 270, "red", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 420, 30, "aqua1", WellMahjong2L.strDeleteScoresConfirm, 0, 85, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strYes, 50, 190, "iButtons", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strNo, 220, 190, "iButtons", 1, true]];
public static var OWGameConnection:Array = [WellMahjong2S.ColorText, 50, WellMahjong2L.OWColors, WellMahjong2L.strConnectionToServer, OInterface.iDefSlowAnimators];
private static var OWHighScoreTabF:Array = [OInterface.OTabMake, [[OInterface.OIObjectMake, WellMahjong2L.OWHighScoreLocal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, WellMahjong2L.OWHighScorePersonal, null, 0, 0, null, 0, false], [OInterface.OIObjectMake, WellMahjong2L.OWHighRaitingPersonal, null, 0, 0, null, 0, false]], 410, 270, WellMahjong2L.OTimerAnimator, null];
public static var OWEnterName:Array = [[WellMahjong2S.BigFrame, 460, 290, "aqua1", "white", 0, 0, null, 0, true], [WellMahjong2S.Header, 460, 50, "aqua1", WellMahjong2L.strNewPlayer, 0, 20, null, 0, true], [WellMahjong2S.Header, 460, 30, "yellow", WellMahjong2L.strEnterName, 0, 90, null, 0, true], [WellMahjong2S.InputText, 400, 60, "yellow", "well", [45, 0.9, 0.6], 11, 30, 130, "iName", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strAccept, 70, 210, "iAccept", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strCancel, 240, 210, "iCancel", 0, true]];
public static var OCursor:Class = WellMahjong2L_OCursor;
public static var RandO:ORandomInt = new ORandomInt();
public static var RandP:ORandomInt = new ORandomInt();
public static var OWCommingSoon:Array = [[WellMahjong2S.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 530, 50, "red", WellMahjong2L.strCommingSoon, 0, 20, null, 0, true], [WellMahjong2S.Header, 530, 30, "magenta", WellMahjong2L.strCommingSoonI, 0, 125, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, WellMahjong2L.strClose, 190, 210, null, 0, true]];
public static var SendLevel:String;
public static var OWColorsSite:Array = ["270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240"];
public static var M_W:int = 16;
private static var f01:Class = WellMahjong2L_f01;
private static var f03:Class = WellMahjong2L_f03;
private static var f05:Class = WellMahjong2L_f05;
private static var f07:Class = WellMahjong2L_f07;
public static var OWResults:Array = [[WellMahjong2S.ColorHeader, 800, 80, OWColors, strResults, OInterface.iDefSlowAnimators, 0, 10, null, 0, false], [OInterface.OIObjectMake, OWResultsLevelScore, OInterface.iDefSlowAnimators, 100, 130, null, 0, false], [OInterface.OIObjectMake, OWResultsBonusScore, OInterface.iDefSlowAnimators, 100, 190, null, 0, false], [OInterface.OIObjectMake, OWResultsTotalScore, OInterface.iDefSlowAnimators, 100, 250, null, 0, false], [OInterface.OIObjectMake, OWResultsReiting, OInterface.iDefSlowAnimators, 0, 330, null, 0, false], [WellMahjong2S.MakeTextButton, 280, 60, "yellow", "yellow", 30, WellMahjong2L.strReplay, 90, 500, "iReplay", 0, false], [WellMahjong2S.MakeTextButton, 280, 60, "yellow1", "yellow1", 30, WellMahjong2L.strNextLevel, 430, 500, "iNextLevel", 0, false]];
private static var f02:Class = WellMahjong2L_f02;
public static var M_H:int = 12;
public static var fieldWidth:int = 500;
public static var OWResultsLevelScore:Array = [[WellMahjong2S.TextAlign, 600, 50, 50, "yellow", WellMahjong2L.strGainedScore, 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 600, 50, 50, "yellow", "9", 2, 1, 0, 0, null, 0, true]];
private static var f06:Class = WellMahjong2L_f06;
private static var f10:Class = WellMahjong2L_f10;
private static var f08:Class = WellMahjong2L_f08;
private static var f09:Class = WellMahjong2L_f09;
public static var OILeft:Class = WellMahjong2L_OILeft;
private static var f14:Class = WellMahjong2L_f14;
private static var f16:Class = WellMahjong2L_f16;
private static var f04:Class = WellMahjong2L_f04;
private static var f11:Class = WellMahjong2L_f11;
private static var f12:Class = WellMahjong2L_f12;
private static var f13:Class = WellMahjong2L_f13;
private static var f17:Class = WellMahjong2L_f17;
private static var f19:Class = WellMahjong2L_f19;
private static var f15:Class = WellMahjong2L_f15;
private static var f18:Class = WellMahjong2L_f18;
public static var OWColorsEditor:Array = ["90", "120", "150", "180", "210", "240", "270", "300", "330", "0", "30", "60"];
private static var f20:Class = WellMahjong2L_f20;
private static var f21:Class = WellMahjong2L_f21;
private static var f22:Class = WellMahjong2L_f22;
private static var f23:Class = WellMahjong2L_f23;
private static var f25:Class = WellMahjong2L_f25;
private static var f27:Class = WellMahjong2L_f27;
private static var f28:Class = WellMahjong2L_f28;
private static var f29:Class = WellMahjong2L_f29;
private static var f24:Class = WellMahjong2L_f24;
private static var f26:Class = WellMahjong2L_f26;
public static var OWResultsTotalScore:Array = [[WellMahjong2S.TextAlign, 600, 50, 50, "yellow1", WellMahjong2L.strTotalScore, 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 600, 50, 50, "yellow1", "9", 2, 1, 0, 0, null, 0, true]];
public static var OFont:Class = WellMahjong2L_OFont;
public static var OWResultsBonusScore:Array = [[WellMahjong2S.TextAlign, 600, 50, 50, "red", WellMahjong2L.strBonusScore, 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 600, 50, 50, "red", "9", 2, 1, 0, 0, null, 0, true]];
private static var f30:Class = WellMahjong2L_f30;
private static var OTimerAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:15};
private static var f32:Class = WellMahjong2L_f32;
private static var f33:Class = WellMahjong2L_f33;
private static var f35:Class = WellMahjong2L_f35;
private static var f36:Class = WellMahjong2L_f36;
private static var f37:Class = WellMahjong2L_f37;
private static var f31:Class = WellMahjong2L_f31;
private static var f39:Class = WellMahjong2L_f39;
private static var f34:Class = WellMahjong2L_f34;
private static var iSoundRegistered:Boolean = OSound.RegisterEmbedSounds(OSoundParams);
public static var OWResizeParam:Array = [[WellMahjong2S.BigFrame, 310, 200, "yellow1", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 150, 25, "aqua1", WellMahjong2L.strWidth, 0, 40, null, 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OILeft, "GEL", 0.8, 150, 40, "iWL", 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 179, 38, "iWidth", 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OIRight, "GEL", 0.8, 260, 40, "iWR", 0, true], [WellMahjong2S.Header, 150, 25, "aqua1", WellMahjong2L.strHeight, 0, 85, null, 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OILeft, "GEL", 0.8, 150, 85, "iHL", 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 179, 83, "iHeight", 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OIRight, "GEL", 0.8, 260, 85, "iHR", 0, true], [WellMahjong2S.MakeTextButton, 150, 40, "aqua1", "aqua1", 25, WellMahjong2L.strClose, 80, 135, "iClose", 0, true]];
public static var OPlayerPanelParam:Array = [[WellMahjong2S.ColorHeader, 80, 35, WellMahjong2L.OWColors, WellMahjong2L.strLevel, null, 50, 551, null, 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 147, 560, "iLevel", 0, true], [WellMahjong2S.ColorHeader, 100, 35, WellMahjong2L.OWPlayersColor, WellMahjong2L.strScore, null, 250, 551, null, 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 400, 559, "iScore", 0, true]];
private static var f42:Class = WellMahjong2L_f42;
private static var f40:Class = WellMahjong2L_f40;
private static var f41:Class = WellMahjong2L_f41;
private static var f38:Class = WellMahjong2L_f38;
public static var OWIntroParam:Array = [[OSprite.Make, [[ODisplay.SpriteRect, (800 * OGlobal.Scale), (600 * OGlobal.Scale)]], 0, 0, "iHit", 0, false], [WellMahjong2S.Header, 800, 50, "aqua1", WellMahjong2L.strSite, 0, (160 - 22), "iHeader", 0, true], [WellMahjong2S.ColorHeader, 800, 80, WellMahjong2L.OWNameGameColor, WellMahjong2L.strGameName, null, 0, (250 - 22), "iGameName1", 0, true], [WellMahjong2S.ColorHeader, 800, 40, ["yellow"], WellMahjong2L.strIntrntComnt, null, 0, (340 - 22), "iGameName2", 0, true], [WellMahjong2S.Header, 800, 40, "aqua1", WellMahjong2L.strPresents, 0, (455 - 22), "iFooter", 0, true]];
public static var OWSendLevelSent:Array = [WellMahjong2S.ColorText, 35, WellMahjong2L.OWColors, WellMahjong2L.strLevelSent, OInterface.iDefSlowAnimators];
public static var iPauseParam:Array = [[WellMahjong2S.ColorHeader, 500, 80, WellMahjong2L.OWColors, WellMahjong2L.strPause, null, 15, 190, null, 0, true], [WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors1, WellMahjong2L.strClickToContinue, null, 15, 270, null, 0, true]];
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 OWSendLevelFailed:Array = [WellMahjong2S.ColorText, 35, WellMahjong2L.OWColors, WellMahjong2L.strLevelSendFailed, OInterface.iDefSlowAnimators];
public static var ScoreMax:int = 100000;
public static var OIDown:Class = WellMahjong2L_OIDown;
public static var OWReadLevelParam:Array = [[WellMahjong2S.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 600, 40, "aqua1", WellMahjong2L.strInputText, 0, 30, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, WellMahjong2L.strApply, 100, 310, "iApply", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, WellMahjong2L.strClose, 350, 310, "iClose", 0, true]];
public static var OWDeletePlayerConfirm:Array = [[WellMahjong2S.BigFrame, 420, 270, "red", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 420, 30, "aqua1", WellMahjong2L.strDeletePlayerConfirm, 0, 85, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strYes, 50, 190, "iButtons", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strNo, 220, 190, "iButtons", 1, true]];
public static var OWColors1:Array = ["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 = ["180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"];
public static var OBG02:Class = WellMahjong2L_OBG02;
public static var OWChoosePlayer:Array = [[WellMahjong2S.BigFrame, 500, 500, "aqua1", "white", 0, 0, null, 0, true], [WellMahjong2S.Header, 500, 50, "aqua1", WellMahjong2L.strChoosePlayer, 0, 20, null, 0, true], [WellMahjong2S.ListBoxText, 360, 40, "yellow", "yellow", 5, null, 30, 90, "iListBox", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow", "yellow", 30, WellMahjong2L.strNew, 30, 340, "iNew", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "magenta", "magenta", 30, WellMahjong2L.strDelete, 320, 340, "iDelete", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strAccept, 90, 420, "iAccept", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strCancel, 260, 420, "iCancel", 0, true]];
public static var OWSendLevelConnection:Array = [WellMahjong2S.ColorText, 35, WellMahjong2L.OWColors, WellMahjong2L.strConnectionToServer, OInterface.iDefSlowAnimators, 20];
public static var OSBubbleBang02:Class = WellMahjong2L_OSBubbleBang02;
public static var OSBubbleBang03:Class = WellMahjong2L_OSBubbleBang03;
public static var OSBubbleBang04:Class = WellMahjong2L_OSBubbleBang04;
public static var iLevelCompleteParam:Array = [[WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors, WellMahjong2L.strLevelComplete, null, 15, 211, null, 0, true], [WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors1, WellMahjong2L.strClickToContinue, null, 15, 261, null, 0, true]];
public static var GROUPS:Array = [[f34, f35, f36, f37], [f38, f39, f40, f41]];
public static var OIUp:Class = WellMahjong2L_OIUp;
public static var TestLevel:String;
public static var OSBubbleBang01:Class = WellMahjong2L_OSBubbleBang01;
public static var OWNeChet:Array = [[WellMahjong2S.BigFrame, 530, 290, "yellow1", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 530, 50, "red", WellMahjong2L.strError, 0, 20, null, 0, true], [WellMahjong2S.Header, 530, 30, "magenta", WellMahjong2L.strNeChet, 0, 125, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, WellMahjong2L.strClose, 190, 210, null, 0, true]];
public static var FiltrCell:Number = 0.9;
public static var OWInGameMenuParam:Array = [[WellMahjong2S.BigFrame, 350, 335, "green", "green", 225, 145, null, 0, true], [WellMahjong2S.MakeTextButton, 250, 46, "aqua", "aqua", 25, strResume, 275, 180, "btnResume", 0, true], [WellMahjong2S.MakeTextButton, 250, 46, "yellow", "yellow", 25, strOptions, 275, 235, "btnOptions", 0, true], [WellMahjong2S.MakeTextButton, 250, 46, "red1", "red1", 25, strInstructions, 275, 290, "btnInstructions", 0, true], [WellMahjong2S.MakeTextButton, 250, 46, "red", "red", 25, strOtherLevel, 275, 345, "btnLevel", 0, true], [WellMahjong2S.MakeTextButton, 250, 46, "magenta", "magenta", 25, strMainMenu, 275, 400, "btnMainMenu", 0, true]];
private static var OWPlayersCounterF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 17, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 34, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 51, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterElement, 67, 0, "iDigits", 4, true]], 85, 30];
public static var OWReaderParam:Array = [[WellMahjong2S.MakeTextButton, 160, 50, "aqua1", "aqua1", 25, ((M_W.toString() + " x ") + M_H.toString()), 620, 30, "iResize", 0, true], [WellMahjong2S.MakeTextButton, 170, 50, "yellow1", "yellow1", 25, WellMahjong2L.strPublish, 615, 415, "iBPublish", 0, true], [WellMahjong2S.MakeTextButton, 170, 50, "yellow", "yellow", 25, WellMahjong2L.strTest, 615, 475, "iBTest", 0, true], [WellMahjong2S.ColorHeader, 200, 30, OWColorsSite, WellMahjong2L.strLayer, null, 600, 110, "strLayer", 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OILeft, "GEL", 0.8, 620, 155, "iWL", 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 660, 153, "iLayer", 0, true], [WellMahjong2S.MakeSpriteButton, 25, 25, "blue", "blue", OIRight, "GEL", 0.8, 750, 155, "iWR", 0, true], [WellMahjong2S.ColorHeader, 200, 30, OWColorsSite, WellMahjong2L.strTiles, null, 600, 210, "strTiles", 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWGameScoreF, 660, 250, "iCount", 0, true], [WellMahjong2S.MakeTextButton, 170, 50, "red", "red", 25, WellMahjong2L.strClear, 615, 355, "iBClear", 0, true], [WellMahjong2S.MakeTextButton, 170, 50, "magenta", "magenta", 25, WellMahjong2L.strClose, 615, 535, "iBClose", 0, true]];
public static var OWInstructionParam:Array = [[WellMahjong2S.BigFrame, 750, 580, "yellow", "white", 25, 10, null, 0, true], [WellMahjong2S.Header, 700, 60, "yellow", WellMahjong2L.strInstructions, 66, 30, null, 0, true], [WellMahjong2S.MakeTextButton, 300, 60, "aqua1", "aqua1", 30, WellMahjong2L.strClose, 250, 510, "iClose", 0, true], [WellMahjong2S.Header, 425, 25, "yellow", WellMahjong2L.strInstructionsText, 298, 197, null, 0, true], [WellMahjong2S.Header, 100, 25, "yellow", WellMahjong2L.strGroupA, 301, 358, null, 0, true], [WellMahjong2S.Header, 100, 25, "yellow", WellMahjong2L.strGroupB, 301, 439, null, 0, true]];
private static var OWPlayersCounterElement:Array = [OInterface.OTabMake, [[WellMahjong2S.Header, 17, 30, "0", " ", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "0", "0", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "30", "1", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "60", "2", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "90", "3", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "120", "4", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "150", "5", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "180", "6", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "210", "7", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "240", "8", 0, 0, null, 0, false], [WellMahjong2S.Header, 17, 30, "270", "9", 0, 0, null, 0, false]], 17, 30, WellMahjong2L.OTimerAnimator, null];
public static var OWGameParam:Array = [[WellMahjong2S.ColorHeader, 270, 33, WellMahjong2L.OWNameGameColor, WellMahjong2L.strGameName, null, 523, 0, "iNameGame", 0, false], [WellMahjong2S.ColorHeader, 270, 25, ["aqua1"], WellMahjong2L.strSite, null, 523, 37, "iSiteLink", 0, false], [WellMahjong2S.InvisibleButton, 270, 30, 530, 37, "iLink", 0, true], [WellMahjong2S.MakeTextButton, 0x0101, 45, "aqua1", "aqua1", 25, WellMahjong2L.strMenu, 530, 546, "iMenu", 0, false], [WellMahjong2S.MakeTextButton, 123, 45, "yellow1", "yellow1", 25, WellMahjong2L.strPause, 530, 491, "iPause", 0, false], [WellMahjong2S.MakeTextButton, 123, 45, "yellow", "yellow", 25, WellMahjong2L.strHint, 663, 491, "iHint", 0, false], [WellMahjong2S.MakeTextButton, 100, 45, "green", "green", 25, "Yes", 600, 380, "iApproveLevel", 0, false], [WellMahjong2S.MakeTextButton, 100, 45, "yellow", "yellow", 25, "No", 700, 380, "iNextLevel", 0, false], [WellMahjong2S.MakeTextButton, 200, 45, "red", "red", 25, "Prev Level", 600, 430, "iPrevLevel", 0, false]];
public static var OWGameScoreF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWGameScoreElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 20, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 40, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 60, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 80, 0, "iDigits", 4, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 100, 0, "iDigits", 5, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 120, 0, "iDigits", 6, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 140, 0, "iDigits", 7, true], [ODisplay.IDisplayObjectMake, OWGameScoreElement, 160, 0, "iDigits", 8, true]], 80, 30];
public static var fieldHeight:int = 530;
public static var OWInfoPUserNotFound:Array = [[WellMahjong2S.Header, 250, 30, "yellow", WellMahjong2L.strConnect1, 5, 200, null, 0, true], [WellMahjong2S.Header, 250, 30, "yellow", WellMahjong2L.strConnect1, 5, 265, 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 ONES:Array = [f01, f02, f03, f04, f05, f06, f07, f08, f09, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22, f23, f24, f25, f26, f27, f28, f29, f30, f31, f32, f33, f42];
public static var OWGameNameLevel:Array = [OInterface.OIObjectMake, [[WellMahjong2S.ColorHeader, 300, 60, WellMahjong2L.OWColors, WellMahjong2L.strLevel, OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [WellMahjong2S.ColorHeader, 300, 40, WellMahjong2L.OWColors, WellMahjong2L.strCreatedBy, OInterface.iDefSlowAnimators, 0, 75, null, 0, true]], null, 0, 0, null, 0, true];
public static var iNotMovedParam:Array = [[WellMahjong2S.ColorHeader, 500, 80, WellMahjong2L.OWColors, WellMahjong2L.strNotMoved, null, 15, 190, null, 0, true], [WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors, WellMahjong2L.strClickToContinue, null, 15, 270, null, 0, true]];
public static var OWInputParam:Array = [[WellMahjong2S.BigFrame, 600, 400, "yellow1", "yellow", 0, 0, null, 0, true], [WellMahjong2S.Header, 600, 40, "aqua1", WellMahjong2L.strInputText, 0, 30, null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "aqua1", "aqua1", 30, WellMahjong2L.strClose, 225, 310, "iClose", 0, true]];
public static var OWOpponentColor:Array = ["180", "210", "240", "270", "300", "330", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"];
public static var OWMenuReiting:Array = [[WellMahjong2S.Header, 800, 30, "yellow", "W", 0, (324 + 30), null, 0, true]];
public static var OWNameGame:Array = [[WellMahjong2S.ColorHeader, 310, 50, WellMahjong2L.OWNameGameColor, WellMahjong2L.strGameName, null, 480, -6, null, 0, true]];
public static var OWInfoPConnect:Array = [[WellMahjong2S.Header, 250, 30, "yellow", WellMahjong2L.strConnect1, 10, 200, null, 0, true], [WellMahjong2S.MakeTextButton, 230, 50, "yellow", "yellow", 25, WellMahjong2L.strPlayOnline, 21, 310, null, 0, true]];
public static var iNotTimeParam:Array = [[WellMahjong2S.ColorHeader, 500, 80, WellMahjong2L.OWColors, WellMahjong2L.strNotTime, null, 15, 190, null, 0, true], [WellMahjong2S.ColorHeader, 500, 40, WellMahjong2L.OWColors1, WellMahjong2L.strClickToContinue, null, 15, 270, null, 0, true]];
public static var OWNameGameColor:Array = ["red", "yellow1", "aqua1", "yellow", "magenta", "0", "30", "60", "90", "120", "150", "180", "210", "240", "270", "300", "330"];
public static var FallParticle:Class = WellMahjong2L_FallParticle;
public static var OWGameScoreElement:Array = [OInterface.OTabMake, [[WellMahjong2S.Header, 20, 35, "0", " ", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "0", "0", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "30", "1", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "60", "2", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "90", "3", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "120", "4", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "150", "5", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "180", "6", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "210", "7", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "240", "8", 0, 0, null, 0, false], [WellMahjong2S.Header, 20, 35, "270", "9", 0, 0, null, 0, false]], 23, 30, WellMahjong2L.OWGameCounterAnimator, null];
public static var OWHighScoreLocal:Array = [[WellMahjong2S.TextAlign, 510, 30, 30, "red", "W", 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "red", "9", 2, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "red1", "W", 0, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "red1", "9", 2, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "yellow", "W", 0, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "yellow", "9", 2, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "yellow1", "W", 0, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "yellow1", "9", 2, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "green", "W", 0, 1, 0, 140, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "green", "9", 2, 1, 0, 140, null, 0, true]];
public static var iCompleteInstrParam:Array = [[WellMahjong2S.ColorHeader, 200, 35, WellMahjong2L.OWColors, WellMahjong2L.strLevel_, null, 53, 246, null, 0, true], [WellMahjong2S.ColorHeader, 200, 35, WellMahjong2L.OWColors1, WellMahjong2L.strComplete, null, 53, 286, null, 0, true]];
public static var OWHighScorePersonal:Array = [[WellMahjong2S.TextAlign, 510, 30, 30, "aqua1", "W", 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "aqua1", "9", 2, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "blue", "W", 0, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "blue", "9", 2, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "blue1", "W", 0, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "blue1", "9", 2, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "magenta", "W", 0, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "magenta", "9", 2, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "magenta1", "W", 0, 1, 0, 140, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "magenta1", "9", 2, 1, 0, 140, null, 0, true]];
public static var OWHighRaitingPersonal:Array = [[WellMahjong2S.TextAlign, 510, 30, 30, "30", "W", 0, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "30", "9", 2, 1, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "90", "W", 0, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "90", "9", 2, 1, 0, 35, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "150", "W", 0, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "150", "9", 2, 1, 0, 70, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "210", "W", 0, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "210", "9", 2, 1, 0, 105, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "270", "W", 0, 1, 0, 140, null, 0, true], [WellMahjong2S.TextAlign, 510, 30, 30, "270", "9", 2, 1, 0, 140, null, 0, true]];
public static var OWMenu:Array = [[WellMahjong2S.Header, 800, 40, "magenta1", WellMahjong2L.strWelcome, 0, 10, null, 0, true], [WellMahjong2S.Header, 800, 30, "white", WellMahjong2L.strChangePlayer, 0, 55, null, 0, true], [WellMahjong2S.ColorHeader, 800, 80, WellMahjong2L.OWNameGameColor, WellMahjong2L.strGameName, null, 0, 75, "iGameName1", 0, true], [WellMahjong2S.ColorHeader, 800, 30, ["yellow"], WellMahjong2L.strMainMenuLevel, null, 0, 162, null, 0, true], [WellMahjong2S.InvisibleButton, 400, 75, 200, 10, "iBName", 0, true], [ODisplay.IDisplayObjectMake, OWPlayersCounterF, 20, ((182 + 27) + 5), "iCPlayers", 0, true], [WellMahjong2S.ColorText, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strPlayersOnline, null, 20, (176 + 27), "iPlayers", 0, true], [WellMahjong2S.MakeTextButton, 360, 80, "aqua1", "aqua1", 40, WellMahjong2L.strPlayOnline, 220, (231 + 30), "iQuickPlay", 0, true], [WellMahjong2S.MakeTextButton, 300, 50, "yellow", "yellow", 25, WellMahjong2L.strOptions, 70, (372 + 26), "iOptions", 0, true], [WellMahjong2S.MakeTextButton, 300, 50, "red", "red", 25, WellMahjong2L.strInstructions, 430, (372 + 26), "iInstructions", 0, true], [WellMahjong2S.MakeTextButton, 300, 50, "yellow1", "yellow1", 25, WellMahjong2L.strHighScores, 30, (446 + 17), "iHighScores", 0, true], [WellMahjong2S.MakeTextButton, 300, 50, "magenta1", "magenta1", 25, WellMahjong2L.strMoreGames, 470, (446 + 17), "iMoreGames", 0, true], [WellMahjong2S.MakeTextButton, 360, 50, "red1", "red1", 25, WellMahjong2L.strCreateOwnLev, 220, (520 + 8), "iEditor", 0, true]];
public static var OWOptions:Array = [[WellMahjong2S.BigFrame, 540, 390, "aqua1", "white", 0, 0, null, 0, true], [WellMahjong2S.Header, 540, 50, "aqua1", WellMahjong2L.strOptions, 0, 20, null, 0, true], [WellMahjong2S.ListBoxTextHSlider, 520, 50, "magenta", false, 90, 40, "magenta", WellMahjong2L.strSound, WellMahjong2L.iWOptionsVolume, 10, 90, "iSound", 0, true], [WellMahjong2S.ListBoxTextHSlider, 520, 50, "yellow", false, 90, 40, "yellow", WellMahjong2L.strMusic, WellMahjong2L.iWOptionsVolume, 10, 140, "iMusic", 0, true], [WellMahjong2S.ListBoxTextHSlider, 520, 50, "green1", false, 200, 40, "green1", WellMahjong2L.strWindow, null, 10, 190, "iResolution", 0, true], [WellMahjong2S.ListBoxTextHSlider, 520, 50, "red1", false, 90, 40, "red1", WellMahjong2L.strFullScreen, WellMahjong2L.iWOptionsOnOff, 10, 240, "iFullScreen", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strAccept, 110, 310, "iAccept", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strCancel, 280, 310, "iCancel", 0, true]];
public static var OOpponentFieldParam:Array = [[WellMahjong2S.SmallFrameFiltr, 0x0101, 410, "white", "white", 0.5, 0, 0, null, 0, true], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWOpponentColor, WellMahjong2L.strOpponent1, null, 0, 284, null, 0, true], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWOpponentColor, "Name", null, 0, 321, null, 0, true], [WellMahjong2S.ColorHeader, 120, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strScore, null, 10, 358, null, 0, true], [ODisplay.IDisplayObjectMake, WellMahjong2L.OWOpponentScoreF, 100, 365, "iScore", 0, true], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strOpponent1, null, 0, 81, "str1", 0, false], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strLevel_, null, 0, 116, "str2", 0, false], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strComplete, null, 0, 151, "str3", 0, false], [WellMahjong2S.ColorHeader, 0x0101, 30, WellMahjong2L.OWPlayersColor, WellMahjong2L.strNotMoved, null, 0, 128, "strNotMoved", 0, false]];
public static var OWOpponentScoreF:Array = [OInterface.OCounterMake, [[ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 0, 0, "iDigits", 0, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 20, 0, "iDigits", 1, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 40, 0, "iDigits", 2, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 60, 0, "iDigits", 3, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 80, 0, "iDigits", 4, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 100, 0, "iDigits", 5, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 120, 0, "iDigits", 6, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 140, 0, "iDigits", 7, true], [ODisplay.IDisplayObjectMake, OWOpponentScoreElement, 160, 0, "iDigits", 8, true]], 160, 30];
public static var OWResultsReiting:Array = [[WellMahjong2S.ColorHeader, 800, 60, OWPlayersColor, strYourReiting, OInterface.iDefSlowAnimators, 0, 0, null, 0, true], [WellMahjong2S.TextAlign, 800, 60, 60, "aqua1", "9", 1, 1, 0, 80, null, 0, true]];
private static var OWGameCounterAnimator:Object = {F:OA_AlphaFade.Make, iSAlpha:-1, iEAlpha:0, iSInd:[0], iEInd:[1], iPIter:4};
public static var FiltrFigureP:Number = 0.7;
public static var FiltrFigureO:Number = 0.5;
public static var OWLevelSender:Array = [[WellMahjong2S.BigFrame, 550, 260, "aqua1", "aqua1", 0, 0, null, 0, true], [WellMahjong2S.Header, 550, 40, "yellow", WellMahjong2L.strSendingLevel, 0, 30, null, 0, true], [WellMahjong2S.MakeTextButton, 250, 60, "yellow", "yellow", 30, WellMahjong2L.strClose, 150, 180, "iCancel", 0, true]];
public static var OWInfoPPlayer:Array = [[WellMahjong2S.ColorHeader, 270, 25, WellMahjong2L.OWColors, WellMahjong2L.strOpponent1, null, 0, 265, null, 0, true], [WellMahjong2S.ColorHeader, 270, 25, WellMahjong2L.OWPlayersColor, WellMahjong2L.strLevel, null, 0, 295, null, 0, true]];
public static var iGAME:OGame = new OCGame();
public static var indexGame:int;
public static var OWLinkSiteGame:Array = [[WellMahjong2S.ColorHeader, 310, 25, ["aqua1"], WellMahjong2L.strSite, null, 480, 50, null, 0, true]];
public static var OWQuestionLevelParam:Array = [[WellMahjong2S.BigFrame, 420, 270, "red", "yellow", 190, 165, null, 0, true], [WellMahjong2S.Header, 420, 30, "aqua1", WellMahjong2L.strQuestionLevel, (0 + 190), (85 + 165), null, 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "yellow1", "yellow1", 30, WellMahjong2L.strYes, (50 + 190), (190 + 165), "btnYes", 0, true], [WellMahjong2S.MakeTextButton, 150, 60, "red", "red", 30, WellMahjong2L.strNo, (220 + 190), (190 + 165), "btnNo", 0, true]];
}
}//package
Section 99
//WellMahjong2L_f01 (WellMahjong2L_f01)
package {
import mx.core.*;
public class WellMahjong2L_f01 extends SpriteAsset {
}
}//package
Section 100
//WellMahjong2L_f02 (WellMahjong2L_f02)
package {
import mx.core.*;
public class WellMahjong2L_f02 extends SpriteAsset {
}
}//package
Section 101
//WellMahjong2L_f03 (WellMahjong2L_f03)
package {
import mx.core.*;
public class WellMahjong2L_f03 extends SpriteAsset {
}
}//package
Section 102
//WellMahjong2L_f04 (WellMahjong2L_f04)
package {
import mx.core.*;
public class WellMahjong2L_f04 extends SpriteAsset {
}
}//package
Section 103
//WellMahjong2L_f05 (WellMahjong2L_f05)
package {
import mx.core.*;
public class WellMahjong2L_f05 extends SpriteAsset {
}
}//package
Section 104
//WellMahjong2L_f06 (WellMahjong2L_f06)
package {
import mx.core.*;
public class WellMahjong2L_f06 extends SpriteAsset {
}
}//package
Section 105
//WellMahjong2L_f07 (WellMahjong2L_f07)
package {
import mx.core.*;
public class WellMahjong2L_f07 extends SpriteAsset {
}
}//package
Section 106
//WellMahjong2L_f08 (WellMahjong2L_f08)
package {
import mx.core.*;
public class WellMahjong2L_f08 extends SpriteAsset {
}
}//package
Section 107
//WellMahjong2L_f09 (WellMahjong2L_f09)
package {
import mx.core.*;
public class WellMahjong2L_f09 extends SpriteAsset {
}
}//package
Section 108
//WellMahjong2L_f10 (WellMahjong2L_f10)
package {
import mx.core.*;
public class WellMahjong2L_f10 extends SpriteAsset {
}
}//package
Section 109
//WellMahjong2L_f11 (WellMahjong2L_f11)
package {
import mx.core.*;
public class WellMahjong2L_f11 extends SpriteAsset {
}
}//package
Section 110
//WellMahjong2L_f12 (WellMahjong2L_f12)
package {
import mx.core.*;
public class WellMahjong2L_f12 extends SpriteAsset {
}
}//package
Section 111
//WellMahjong2L_f13 (WellMahjong2L_f13)
package {
import mx.core.*;
public class WellMahjong2L_f13 extends SpriteAsset {
}
}//package
Section 112
//WellMahjong2L_f14 (WellMahjong2L_f14)
package {
import mx.core.*;
public class WellMahjong2L_f14 extends SpriteAsset {
}
}//package
Section 113
//WellMahjong2L_f15 (WellMahjong2L_f15)
package {
import mx.core.*;
public class WellMahjong2L_f15 extends SpriteAsset {
}
}//package
Section 114
//WellMahjong2L_f16 (WellMahjong2L_f16)
package {
import mx.core.*;
public class WellMahjong2L_f16 extends SpriteAsset {
}
}//package
Section 115
//WellMahjong2L_f17 (WellMahjong2L_f17)
package {
import mx.core.*;
public class WellMahjong2L_f17 extends SpriteAsset {
}
}//package
Section 116
//WellMahjong2L_f18 (WellMahjong2L_f18)
package {
import mx.core.*;
public class WellMahjong2L_f18 extends SpriteAsset {
}
}//package
Section 117
//WellMahjong2L_f19 (WellMahjong2L_f19)
package {
import mx.core.*;
public class WellMahjong2L_f19 extends SpriteAsset {
}
}//package
Section 118
//WellMahjong2L_f20 (WellMahjong2L_f20)
package {
import mx.core.*;
public class WellMahjong2L_f20 extends SpriteAsset {
}
}//package
Section 119
//WellMahjong2L_f21 (WellMahjong2L_f21)
package {
import mx.core.*;
public class WellMahjong2L_f21 extends SpriteAsset {
}
}//package
Section 120
//WellMahjong2L_f22 (WellMahjong2L_f22)
package {
import mx.core.*;
public class WellMahjong2L_f22 extends SpriteAsset {
}
}//package
Section 121
//WellMahjong2L_f23 (WellMahjong2L_f23)
package {
import mx.core.*;
public class WellMahjong2L_f23 extends SpriteAsset {
}
}//package
Section 122
//WellMahjong2L_f24 (WellMahjong2L_f24)
package {
import mx.core.*;
public class WellMahjong2L_f24 extends SpriteAsset {
}
}//package
Section 123
//WellMahjong2L_f25 (WellMahjong2L_f25)
package {
import mx.core.*;
public class WellMahjong2L_f25 extends SpriteAsset {
}
}//package
Section 124
//WellMahjong2L_f26 (WellMahjong2L_f26)
package {
import mx.core.*;
public class WellMahjong2L_f26 extends SpriteAsset {
}
}//package
Section 125
//WellMahjong2L_f27 (WellMahjong2L_f27)
package {
import mx.core.*;
public class WellMahjong2L_f27 extends SpriteAsset {
}
}//package
Section 126
//WellMahjong2L_f28 (WellMahjong2L_f28)
package {
import mx.core.*;
public class WellMahjong2L_f28 extends SpriteAsset {
}
}//package
Section 127
//WellMahjong2L_f29 (WellMahjong2L_f29)
package {
import mx.core.*;
public class WellMahjong2L_f29 extends SpriteAsset {
}
}//package
Section 128
//WellMahjong2L_f30 (WellMahjong2L_f30)
package {
import mx.core.*;
public class WellMahjong2L_f30 extends SpriteAsset {
}
}//package
Section 129
//WellMahjong2L_f31 (WellMahjong2L_f31)
package {
import mx.core.*;
public class WellMahjong2L_f31 extends SpriteAsset {
}
}//package
Section 130
//WellMahjong2L_f32 (WellMahjong2L_f32)
package {
import mx.core.*;
public class WellMahjong2L_f32 extends SpriteAsset {
}
}//package
Section 131
//WellMahjong2L_f33 (WellMahjong2L_f33)
package {
import mx.core.*;
public class WellMahjong2L_f33 extends SpriteAsset {
}
}//package
Section 132
//WellMahjong2L_f34 (WellMahjong2L_f34)
package {
import mx.core.*;
public class WellMahjong2L_f34 extends SpriteAsset {
}
}//package
Section 133
//WellMahjong2L_f35 (WellMahjong2L_f35)
package {
import mx.core.*;
public class WellMahjong2L_f35 extends SpriteAsset {
}
}//package
Section 134
//WellMahjong2L_f36 (WellMahjong2L_f36)
package {
import mx.core.*;
public class WellMahjong2L_f36 extends SpriteAsset {
}
}//package
Section 135
//WellMahjong2L_f37 (WellMahjong2L_f37)
package {
import mx.core.*;
public class WellMahjong2L_f37 extends SpriteAsset {
}
}//package
Section 136
//WellMahjong2L_f38 (WellMahjong2L_f38)
package {
import mx.core.*;
public class WellMahjong2L_f38 extends SpriteAsset {
}
}//package
Section 137
//WellMahjong2L_f39 (WellMahjong2L_f39)
package {
import mx.core.*;
public class WellMahjong2L_f39 extends SpriteAsset {
}
}//package
Section 138
//WellMahjong2L_f40 (WellMahjong2L_f40)
package {
import mx.core.*;
public class WellMahjong2L_f40 extends SpriteAsset {
}
}//package
Section 139
//WellMahjong2L_f41 (WellMahjong2L_f41)
package {
import mx.core.*;
public class WellMahjong2L_f41 extends SpriteAsset {
}
}//package
Section 140
//WellMahjong2L_f42 (WellMahjong2L_f42)
package {
import mx.core.*;
public class WellMahjong2L_f42 extends SpriteAsset {
}
}//package
Section 141
//WellMahjong2L_FallParticle (WellMahjong2L_FallParticle)
package {
import mx.core.*;
public class WellMahjong2L_FallParticle extends SpriteAsset {
}
}//package
Section 142
//WellMahjong2L_OBG02 (WellMahjong2L_OBG02)
package {
import mx.core.*;
public class WellMahjong2L_OBG02 extends SpriteAsset {
}
}//package
Section 143
//WellMahjong2L_OCursor (WellMahjong2L_OCursor)
package {
import mx.core.*;
public class WellMahjong2L_OCursor extends SpriteAsset {
}
}//package
Section 144
//WellMahjong2L_OFont (WellMahjong2L_OFont)
package {
import mx.core.*;
public class WellMahjong2L_OFont extends SpriteAsset {
}
}//package
Section 145
//WellMahjong2L_OIDown (WellMahjong2L_OIDown)
package {
import mx.core.*;
public class WellMahjong2L_OIDown extends SpriteAsset {
}
}//package
Section 146
//WellMahjong2L_OILeft (WellMahjong2L_OILeft)
package {
import mx.core.*;
public class WellMahjong2L_OILeft extends SpriteAsset {
}
}//package
Section 147
//WellMahjong2L_OIRight (WellMahjong2L_OIRight)
package {
import mx.core.*;
public class WellMahjong2L_OIRight extends SpriteAsset {
}
}//package
Section 148
//WellMahjong2L_OIUp (WellMahjong2L_OIUp)
package {
import mx.core.*;
public class WellMahjong2L_OIUp extends SpriteAsset {
}
}//package
Section 149
//WellMahjong2L_OSBubbleBang01 (WellMahjong2L_OSBubbleBang01)
package {
import mx.core.*;
public class WellMahjong2L_OSBubbleBang01 extends SoundAsset {
}
}//package
Section 150
//WellMahjong2L_OSBubbleBang02 (WellMahjong2L_OSBubbleBang02)
package {
import mx.core.*;
public class WellMahjong2L_OSBubbleBang02 extends SoundAsset {
}
}//package
Section 151
//WellMahjong2L_OSBubbleBang03 (WellMahjong2L_OSBubbleBang03)
package {
import mx.core.*;
public class WellMahjong2L_OSBubbleBang03 extends SoundAsset {
}
}//package
Section 152
//WellMahjong2L_OSBubbleBang04 (WellMahjong2L_OSBubbleBang04)
package {
import mx.core.*;
public class WellMahjong2L_OSBubbleBang04 extends SoundAsset {
}
}//package
Section 153
//WellMahjong2S (WellMahjong2S)
package {
import ENGINE.DISPLAY.*;
import flash.display.*;
import flash.geom.*;
import ENGINE.INTERFACE.*;
import ENGINE.INTERFACE.ANIMATORS.*;
import ENGINE.INTERFACE.ELEMENTS.*;
import ENGINE.DISPLAY.EFFECTS.*;
import ENGINE.CORE.*;
import flash.text.*;
import ENGINE.SKIN.*;
public class WellMahjong2S {
public static var iRegistered:Boolean = WellMahjong2S.Register();
public static function SmallFrameFiltr(_arg1:Array):OBitmap{
return (ODisplay.OBitmapAngleFrame([null, _arg1[1], _arg1[2], 6, 5, "GEL", _arg1[3], "border", 1, _arg1[4], "spanel ns", _arg1[5], OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7])]));
}
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.RegisterColor("GEL", "color0", {iCH:45, iCS:0.1, iCB:0.97, iSH:45, iSS:0.6, iSB:0.6});
OEffects.RegisterColor("GEL", "color1", {iCH:45, iCS:0.1, iCB:0.97, iSH:45, iSS:0.6, iSB:0.6});
OEffects.RegisterColor("GEL", "color2", {iCH:45, iCS:0.1, iCB:0.97, iSH:45, iSS:0.6, iSB:0.6});
OEffects.RegisterColor("GEL", "color3", {iCH:45, iCS:0.1, iCB:0.97, iSH:45, iSS:0.6, iSB:0.6});
OEffects.RegisterColor("GEL", "rcolor0", {iCH:45, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("GEL", "rcolor1", {iCH:45, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("GEL", "rcolor2", {iCH:45, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("GEL", "rcolor3", {iCH:45, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("GEL", "dcolor0", {iCH:45, iCS:0.6, iCB:0.89, iSH:45, iSS:0.9, iSB:0.5});
OEffects.RegisterColor("GEL", "dcolor1", {iCH:45, iCS:0.6, iCB:0.89, iSH:45, iSS:0.9, iSB:0.5});
OEffects.RegisterColor("GEL", "dcolor2", {iCH:45, iCS:0.6, iCB:0.89, iSH:45, iSS:0.9, iSB:0.5});
OEffects.RegisterColor("GEL", "dcolor3", {iCH:45, iCS:0.6, iCB:0.89, iSH:45, iSS:0.9, iSB:0.5});
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});
OEffects.RegisterEffect("PL", new OEffectPlastic());
OEffects.RegisterColor("PL", "red", {iCH:0, iCS:0.5, iCB:0.99, iSH:345, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "red1", {iCH:30, iCS:0.5, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "yellow", {iCH:60, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "yellow1", {iCH:90, iCS:0.6, iCB:0.99, iSH:105, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "green", {iCH:120, iCS:0.5, iCB:0.99, iSH:105, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "green1", {iCH:150, iCS:0.5, iCB:0.99, iSH:165, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "aqua", {iCH:180, iCS:0.4, iCB:0.99, iSH:165, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "aqua1", {iCH:210, iCS:0.4, iCB:0.99, iSH:225, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "blue", {iCH:240, iCS:0.3, iCB:0.99, iSH:225, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "blue1", {iCH:270, iCS:0.3, iCB:0.99, iSH:295, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "magenta", {iCH:300, iCS:0.4, iCB:0.99, iSH:295, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "magenta1", {iCH:330, iCS:0.4, iCB:0.99, iSH:345, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "white", {iCH:0, iCS:0, iCB:0.97, iSH:0, iSS:0, iSB:0.7});
OEffects.RegisterColor("PL", "color0", {iCH:45, iCS:0.1, iCB:0.97, iSH:45, iSS:0.6, iSB:0.6});
OEffects.RegisterColor("PL", "rcolor0", {iCH:45, iCS:0.6, iCB:0.99, iSH:45, iSS:0.9, iSB:0.6});
OEffects.RegisterColor("PL", "dcolor0", {iCH:45, iCS:0.6, iCB:0.89, iSH:45, iSS:0.9, iSB:0.5});
OEffects.RegisterFilter("PL", "cell", {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});
return (true);
}
public static function MakeSpriteButton(_arg1:Array):OButton{
var _local2:Array;
var _local3:OButton;
_local2 = [[ODisplay.OBitmapSpriteFillRect, _arg1[1], _arg1[2], [ODisplay.SpriteLib, _arg1[5]], "GEL", _arg1[3], _arg1[6], _arg1[7], 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]];
_local3 = new OButton(_local2);
_local3.Pos(OGlobal.ScaleFloor(_arg1[8]), OGlobal.ScaleFloor(_arg1[9]));
return (_local3);
}
public static function SmallFrame(_arg1:Array):OBitmap{
return (ODisplay.OBitmapAngleFrame([null, _arg1[1], _arg1[2], 6, 5, "GEL", _arg1[3], "border", 1, _arg1[4], "spanel ns", 1, OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])]));
}
public static function ListBoxTextElement(_arg1:Array):OListBoxElement{
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Array;
var _local6:OListBoxElement;
_local2 = (_arg1[2] - 10);
if (_local2 < 30){
_local2 = 30;
};
_local3 = Math.round((1 + (_local2 / 70)));
_local4 = ("text " + String((Math.round((_local2 / 10)) * 10)));
_local5 = [[ODisplay.OBitmapMake, [ODisplay.SpriteRoundBorder, _arg1[1], _arg1[2], 12, 6], 1, "GEL", _arg1[3], "border", 1, 0, 0, null, 0, false], [ODisplay.OBitmapMake, [ODisplay.SpriteTextInRect, WellMahjong2L.OFont, _local2, _local3, _arg1[4], _arg1[1], _arg1[2]], 1, "GEL", _arg1[5], _local4, 1, 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (12 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]];
_local6 = new OListBoxElement(_local5);
_local6.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7]));
return (_local6);
}
public static function BigFrame(_arg1:Array):OBitmap{
return (ODisplay.OBitmapAngleFrame([null, _arg1[1], _arg1[2], 16, 8, "GEL", _arg1[3], "border", 1, _arg1[4], "spanel ns", 1, OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6])]));
}
public static function Fishka(_arg1:Array):OBitmap{
var _local2:OSprite;
var _local3:Array;
var _local4:OBitmap;
_local2 = new OSprite();
_local2.graphics.beginFill(0);
_local2.graphics.drawRect(0, 0, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale));
_local2.graphics.endFill();
_local3 = [ODisplay.OBitmapSpriteFillRect, _arg1[1], _arg1[2], [ODisplay.SpriteLib, _local2], "PL", _arg1[3], "cell", _arg1[4], _arg1[5], _arg1[6], null, 0, true];
_local4 = ODisplay.OBitmapSpriteFillRect(_local3);
ODisplay.OBitmapSpriteFillRect(_local3).x = (_local4.x - _local2.x);
_local4.y = (_local4.y - _local2.y);
return (_local4);
}
public static function MakeTextButton(_arg1:Array):OButton{
var _local2:Number;
var _local3:String;
var _local4:Array;
var _local5:OButton;
_local2 = Math.round((1 + (_arg1[5] / 70)));
_local3 = ("text " + String((Math.round((_arg1[5] / 10)) * 10)));
_local4 = [[ODisplay.OBitmapAngleFrameText, _arg1[1], _arg1[2], (_arg1[2] / 8), 5, "GEL", _arg1[3], "border", 1, _arg1[3], "spanel ns", 1, WellMahjong2L.OFont, _arg1[5], _local2, _arg1[6], "GEL", _arg1[3], _local3, 1, 0, 0, null, 0, true], [OSprite.Make, [[ODisplay.SpriteRoundRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale), (24 * OGlobal.Scale)]], 0, 0, "iHit", 0, false]];
_local5 = new OButton(_local4);
_local5.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8]));
return (_local5);
}
public static function ColorHeader(_arg1:Array):OIObject{
var _local2:Number;
var _local3:String;
var _local4:Sprite;
var _local5:TextField;
var _local6:TextFormat;
var _local7:Rectangle;
var _local8:Number;
var _local9:Array;
var _local10:int;
var _local11:int;
var _local12:OIObject;
var _local13:String;
var _local14:Rectangle;
_local2 = Math.round((1 + (_arg1[2] / 70)));
_local3 = ("text " + String(Math.max(30, Math.min((Math.round((_arg1[2] / 10)) * 10), 90))));
_local4 = ((WellMahjong2L.OFont is Sprite)) ? (WellMahjong2L.OFont as Sprite) : new ((WellMahjong2L.OFont as Class));
if (!(_local4.getChildAt(0) is TextField)){
return (null);
};
_local5 = (_local4.getChildAt(0) as TextField);
_local5.autoSize = TextFieldAutoSize.LEFT;
_local5.text = _arg1[4];
_local6 = _local5.defaultTextFormat;
_local6.size = _arg1[2];
_local6.letterSpacing = _local2;
_local5.setTextFormat(_local6);
_local7 = _local5.getBounds(_local4);
_local8 = ((_arg1[1] - _local7.width) / 2);
_local9 = new Array();
_local10 = 0;
_local11 = 0;
while (_local11 < _local5.length) {
_local13 = _arg1[4].substr(_local11, 1);
if (_local13 == " "){
} else {
if (_local13 == "\n"){
} else {
_local14 = _local5.getCharBoundaries(_local11);
var _temp1 = _local10;
_local10 = (_local10 + 1);
_local9.push([ODisplay.OBitmapMake, [ODisplay.SpriteText, WellMahjong2L.OFont, _arg1[2], _local2, _local13], 1, "GEL", _arg1[3][(_temp1 % _arg1[3].length)], _local3, 1, (_local14.x + _local8), _local14.y, null, 0, true]);
};
};
_local11++;
};
_local12 = new OIObject(_local9, _arg1[5]);
_local12.Pos(OGlobal.ScaleFloor(_arg1[6]), OGlobal.ScaleFloor(_arg1[7]));
return (_local12);
}
public static function MakeForm(_arg1:Array):OBitmap{
var _local2:OBitmap;
_local2 = ODisplay.OBitmapSpriteFillRect([null, _arg1[1], _arg1[2], [ODisplay.SpriteLib, _arg1[4]], "PL", _arg1[3], "cell", _arg1[5], 0, 0, null, 0, true]);
_local2.x = (_local2.x - _arg1[4].x);
_local2.y = (_local2.y - _arg1[4].y);
return (_local2);
}
public static function SmallBorder(_arg1:Array):OBitmap{
return (ODisplay.OBitmapAngleBorder([null, _arg1[1], _arg1[2], 12, 6, "GEL", _arg1[3], "border", 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])]));
}
public static function Text(_arg1:Array):OBitmap{
var _local2:Number;
var _local3:String;
_local2 = Math.round((1 + (_arg1[1] / 70)));
_local3 = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90)));
return (ODisplay.OBitmapText([null, WellMahjong2L.OFont, _arg1[1], _local2, _arg1[3], "GEL", _arg1[2], _local3, 1, OGlobal.ScaleFloor(_arg1[4]), OGlobal.ScaleFloor(_arg1[5])]));
}
public static function ListBoxTextElementP(_arg1:Array, _arg2:String):void{
_arg1[4] = _arg2;
}
public static function ListBoxTextHSlider(_arg1:Array):OListBox{
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Rectangle;
var _local6:Number;
var _local7:Array;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:OListBox;
_local2 = _arg1[6];
_local3 = Math.round((1 + (_local2 / 70)));
_local4 = ("text " + String((Math.round((_local2 / 10)) * 10)));
_local5 = ODisplay.TextRect(WellMahjong2L.OFont, _local2, _local3, _arg1[8]);
_local6 = (_arg1[6] - 10);
_local7 = (_arg1[4]) ? [[WellMahjong2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array();
_local8 = [[ODisplay.OBitmapText, WellMahjong2L.OFont, _local2, _local3, _arg1[8], "GEL", _arg1[3], _local4, 1, 15, ((_arg1[2] - _local5.height) * 0.5), null, 0, true], [WellMahjong2S.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], WellMahjong2L.OILeft, "text 60", 1, ((_arg1[1] - _arg1[5]) - 75), ((_arg1[2] - _local6) * 0.5), "iUp", 0, false], [WellMahjong2S.MakeSpriteButton, _local6, _local6, _arg1[3], _arg1[4], WellMahjong2L.OIRight, "text 60", 1, (_arg1[1] - 45), ((_arg1[2] - _local6) * 0.5), "iDown", 0, false]];
_local7 = _local7.concat(_local8);
_local9 = [WellMahjong2S.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[7], "w", _arg1[7], 0, 0];
_local10 = [[((_arg1[1] - 45) - _arg1[5]), ((_arg1[2] - _arg1[6]) * 0.5)]];
_local11 = new OListBox(_local7, _local9, WellMahjong2S.ListBoxTextElementP, _local10, null);
_local11.iUp.prAnimatorParams = OInterface.iDefLBButtonAnimators;
_local11.iDown.prAnimatorParams = OInterface.iDefLBButtonAnimators;
_local11.prSelection = false;
_local11.prCycling = true;
_local11.prLBParams = _arg1[9];
_local11.Pos(OGlobal.ScaleFloor(_arg1[10]), OGlobal.ScaleFloor(_arg1[11]));
return (_local11);
}
public static function ColorText(_arg1:Array):OIObject{
var _local2:Number;
var _local3:String;
var _local4:Sprite;
var _local5:TextField;
var _local6:TextFormat;
var _local7:Array;
var _local8:int;
var _local9:int;
var _local10:OIObject;
var _local11:String;
var _local12:Rectangle;
_local2 = Math.round((1 + (_arg1[1] / 70)));
_local3 = ("text " + String(Math.min((Math.round((_arg1[1] / 10)) * 10), 90)));
_local4 = ((WellMahjong2L.OFont is Sprite)) ? (WellMahjong2L.OFont as Sprite) : new ((WellMahjong2L.OFont as Class));
if (!(_local4.getChildAt(0) is TextField)){
return (null);
};
_local5 = (_local4.getChildAt(0) as TextField);
_local5.autoSize = TextFieldAutoSize.LEFT;
_local5.text = _arg1[3];
_local6 = _local5.defaultTextFormat;
_local6.size = _arg1[1];
_local6.letterSpacing = _local2;
_local5.setTextFormat(_local6);
_local7 = new Array();
_local8 = 0;
_local9 = 0;
while (_local9 < _local5.length) {
_local11 = _arg1[3].substr(_local9, 1);
if (_local11 == " "){
} else {
_local12 = _local5.getCharBoundaries(_local9);
var _temp1 = _local8;
_local8 = (_local8 + 1);
_local7.push([ODisplay.OBitmapMake, [ODisplay.SpriteText, WellMahjong2L.OFont, _arg1[1], _local2, _local11], 1, "GEL", _arg1[2][_temp1], _local3, 1, _local12.x, _local12.y, null, 0, true]);
};
_local9++;
};
_local10 = new OIObject(_local7, _arg1[4]);
_local10.Pos(OGlobal.ScaleFloor(_arg1[5]), OGlobal.ScaleFloor(_arg1[6]));
return (_local10);
}
public static function TextAlign(_arg1:Array):OBitmap{
var _local2:Number;
var _local3:String;
_local2 = Math.round((1 + (_arg1[2] / 70)));
_local3 = ("text " + String(Math.min((Math.round((_arg1[2] / 10)) * 10), 90)));
return (ODisplay.OBitmapTextAlign([null, WellMahjong2L.OFont, _arg1[3], _local2, _arg1[5], _arg1[6], _arg1[7], "GEL", _arg1[4], _local3, 1, _arg1[1], _arg1[2], OGlobal.ScaleFloor(_arg1[8]), OGlobal.ScaleFloor(_arg1[9])]));
}
public static function ListBoxText(_arg1:Array):OListBox{
var _local2:Number;
var _local3:Number;
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:int;
var _local8:OListBox;
_local2 = (_arg1[1] + 80);
_local3 = ((_arg1[2] * _arg1[5]) + 30);
_local4 = [[WellMahjong2S.SmallBorder, _local2, _local3, _arg1[3], 0, 0, null, 0, true], [WellMahjong2S.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], WellMahjong2L.OIUp, "text 60", 1, (_local2 - 50), 20, "iUp", 0, false], [WellMahjong2S.MakeSpriteButton, 30, 30, _arg1[3], _arg1[4], WellMahjong2L.OIDown, "text 60", 1, (_local2 - 50), (_local3 - 50), "iDown", 0, false]];
_local5 = [WellMahjong2S.ListBoxTextElement, _arg1[1], _arg1[2], _arg1[3], "w", _arg1[4], 0, 0];
_local6 = new Array(_arg1[5]);
_local7 = 0;
while (_local7 < _arg1[5]) {
_local6[_local7] = [15, ((_local7 * _arg1[2]) + 15)];
_local7++;
};
_local8 = new OListBox(_local4, _local5, WellMahjong2S.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 Header(_arg1:Array):OBitmap{
var _local2:Number;
var _local3:String;
_local2 = Math.round((1 + (_arg1[2] / 70)));
_local3 = ("text " + String(Math.min((Math.round((_arg1[2] / 10)) * 10), 90)));
return (ODisplay.OBitmapTextInRect([null, WellMahjong2L.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 ListBoxTextVSlider(_arg1:Array):OListBox{
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Rectangle;
var _local6:Array;
var _local7:Number;
var _local8:Number;
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local12:OListBox;
_local2 = _arg1[6];
_local3 = Math.round((1 + (_local2 / 70)));
_local4 = ("text " + String((Math.round((_local2 / 10)) * 10)));
_local5 = ODisplay.TextRect(WellMahjong2L.OFont, _local2, _local3, _arg1[9]);
_local6 = [[((_arg1[1] - _arg1[5]) * 0.5), _arg1[7]]];
_local7 = (_arg1[6] - 10);
_local8 = (_local6[0][1] + ((_arg1[6] - _local7) * 0.5));
_local9 = (_arg1[4]) ? [[WellMahjong2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true]] : new Array();
_local10 = [[ODisplay.OBitmapText, WellMahjong2L.OFont, _local2, _local3, _arg1[9], "GEL", _arg1[3], _local4, 1, ((_arg1[1] - _local5.width) * 0.5), _arg1[10], null, 0, true], [WellMahjong2S.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], WellMahjong2L.OILeft, "text 60", 1, (_local6[0][0] - _local7), _local8, "iUp", 0, false], [WellMahjong2S.MakeSpriteButton, _local7, _local7, _arg1[3], _arg1[4], WellMahjong2L.OIRight, "text 60", 1, (_local6[0][0] + _arg1[5]), _local8, "iDown", 0, false]];
_local9 = _local9.concat(_local10);
_local11 = [WellMahjong2S.ListBoxTextElement, _arg1[5], _arg1[6], _arg1[8], "w", _arg1[8], 0, 0];
_local12 = new OListBox(_local9, _local11, WellMahjong2S.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 InputText(_arg1:Array):OInput{
var _local2:Array;
var _local3:OInput;
_local2 = [[WellMahjong2S.SmallBorder, _arg1[1], _arg1[2], _arg1[3], 0, 0, null, 0, true], [OInterface.OInputTextFieldMake, (_arg1[1] - 10), (_arg1[2] - 10), WellMahjong2L.OFont, (_arg1[2] - 30), 1, false, _arg1[5], _arg1[4], _arg1[6], 5, 8, "iText", 0, true]];
_local3 = new OInput(_local2);
_local3.Pos(OGlobal.ScaleFloor(_arg1[7]), OGlobal.ScaleFloor(_arg1[8]));
return (_local3);
}
public static function InvisibleButton(_arg1:Array):OButton{
var _local2:Array;
var _local3:OButton;
_local2 = [[OSprite.Make, [[ODisplay.SpriteRect, (_arg1[1] * OGlobal.Scale), (_arg1[2] * OGlobal.Scale)]], 0, 0, "iHit", 0, false]];
_local3 = new OButton(_local2, OAnimatorManager.iNullAnimators);
_local3.Pos(OGlobal.ScaleFloor(_arg1[3]), OGlobal.ScaleFloor(_arg1[4]));
_local3.prVisible = true;
_local3.prActive = true;
return (_local3);
}
}
}//package