home *** CD-ROM | disk | FTP | other *** search
- package Code.WINDOWS
- {
- import Code.LIB._ei76;
- import Code.LIB._hu299;
- import Code.LIB._nd174;
- import Code.LIB._nx518;
- import Code.LIB._pw224;
- import Code.OPTIONS._dx111;
- import Code.WINDOWS.DIALOGS._dt399;
- import Code._vy402;
- import flash.events.Event;
- import flash.events.MouseEvent;
-
- public class _lo294 extends _ei76
- {
-
- public static const stNormal:int = 0;
-
- public static const stEnterName:int = 1;
-
-
- private var iPlayers:Array;
-
- private var iLabel:_pw224;
-
- public var iEnterName:_dt399;
-
- public var iOk:_nx518;
-
- public var iCancel:_nx518;
-
- public var iDelete:_nx518;
-
- public var iNew:_nx518;
-
- public var iBLeft:_nx518;
-
- private var iInd:int;
-
- public var iBRight:_nx518;
-
- public function _lo294()
- {
- var _loc1_:String = null;
- var _loc2_:Array = null;
- _loc1_ = _dx111.iLanguage.strOk;
- _loc2_ = [[_vy402._ps359,_dx111.iLanguage.strChangePlayer,_dx111.cGreen,30,_hu299.SmallText,70,40,null,true],[_vy402._jk562,_dx111.iLanguage.strOk,_dx111.cGellGreen,170,60,25,_dx111.cWhite,35,300,"iOk",true],[_vy402._jk562,_dx111.iLanguage.strCancel,_dx111.cGellRed,170,60,25,_dx111.cWhite,300,300,"iCancel",true],[_vy402._yi495,_dx111.cGellAqua,660,170,false,0.7,20,110,null,true],[_vy402._jk562,_dx111.iLanguage.strNew,_dx111.cGellGreen,170,60,25,_dx111.cWhite,480,120,"iNew",true],[_vy402._jk562,_dx111.iLanguage.strDelete,_dx111.cGellRed,170,60,25,_dx111.cWhite,480,200,"iDelete",true],[_vy402._ai205,40,40,"<",_dx111.cOrange,40,50,210,"iBLeft",true],[_vy402._ai205,40,40,">",_dx111.cOrange,40,200,210,"iBRight",true]];
- super(_loc2_);
- this.iPlayers = _nd174._du300;
- _nk262();
- }
-
- public function _nk262() : void
- {
- this.iLabel = new _pw224(30,_dx111.cAquaLight,_hu299.SmallText);
- this.addChildAt(iLabel,6);
- this.iLabel._vt351 = 40;
- this.iLabel._lh238 = 120;
- this.Label = _nd174._ai238;
- this.iInd = _nd174.iPlayerPos;
- this.State = stNormal;
- this._gm53(50,10);
- }
-
- private function set Label(param1:Array) : void
- {
- var _loc2_:* = null;
- _loc2_ = new String();
- _loc2_ = _dx111.iLanguage.strPlayerName + ": " + String(param1[0]) + "\n";
- _loc2_ += _dx111.iLanguage.strLevel + ": " + int(param1[1]._wd393 + 1).toString() + "\n";
- this.iLabel.Text = _loc2_;
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- super.onEnterFrame(param1);
- switch(this.state)
- {
- case stNormal:
- break;
- case stEnterName:
- if(this.iEnterName._rm382 == false)
- {
- if(!this.iEnterName._go241 && !_nd174._ai238)
- {
- this.iEnterName.show();
- return;
- }
- this.removeChild(this.iEnterName);
- if(this.iEnterName._go241)
- {
- _nd174._lg421(this.iEnterName._go241);
- this.iPlayers = _nd174._du300;
- this.iInd = _nd174.iPlayerPos;
- this.Label = _nd174._ai238;
- }
- this.iEnterName._fy281();
- this.iEnterName = null;
- this.State = stNormal;
- }
- }
- }
-
- override public function _lf305(param1:MouseEvent) : void
- {
- if(this.iEnterName)
- {
- return;
- }
- if(param1.target == this.iNew._ol346)
- {
- this.State = stEnterName;
- }
- if(param1.target == this.iBLeft._ol346)
- {
- if(this.iInd == 0)
- {
- return;
- }
- --this.iInd;
- this.Label = this.iPlayers[this.iInd];
- }
- if(param1.target == this.iBRight._ol346)
- {
- if(this.iInd >= this.iPlayers.length - 1)
- {
- return;
- }
- ++this.iInd;
- this.Label = this.iPlayers[this.iInd];
- }
- if(param1.target == this.iDelete._ol346)
- {
- _nd174._hb542(this.iPlayers[this.iInd][0]);
- if(!_nd174._ai238)
- {
- this.State = stEnterName;
- this.iLabel.Text = " ";
- return;
- }
- this.Label = _nd174._ai238;
- this.iInd = _nd174.iPlayerPos;
- }
- if(param1.target == this.iOk._ol346)
- {
- _nd174._xk301(this.iPlayers[this.iInd][0]);
- this.hide();
- }
- if(param1.target == this.iCancel._ol346)
- {
- this.hide();
- }
- }
-
- public function set State(param1:int) : void
- {
- this.state = param1;
- switch(this.state)
- {
- case stNormal:
- break;
- case stEnterName:
- this.iEnterName = new _dt399();
- this.addChild(this.iEnterName);
- }
- }
- }
- }
-