home *** CD-ROM | disk | FTP | other *** search
- package Code.WINDOWS.DIALOGS
- {
- import Code.LIB._bm350;
- import Code.LIB._ei76;
- import Code.LIB._hu299;
- import Code.LIB._nd174;
- import Code.LIB._nx518;
- import Code.OPTIONS._dx111;
- import Code.OPTIONS._eh358;
- import Code._vy402;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.text.TextField;
- import flash.text.TextFieldType;
- import flash.text.TextFormat;
-
- public class _dt399 extends _ei76
- {
-
-
- private var iCanceled:Boolean;
-
- public var iOk:_nx518;
-
- public var iCancel:_nx518;
-
- private var iAuto:Boolean;
-
- private var iInput:TextField;
-
- public function _dt399(param1:Boolean = false)
- {
- var _loc2_:Array = null;
- var _loc3_:Sprite = null;
- var _loc4_:TextFormat = null;
- this.iAuto = param1;
- _loc2_ = [[_vy402._yi495,_dx111.cGellRed,500,300,true,1,0,0,null,true],[_vy402._yi495,_dx111.cGellGreen,300,70,false,90,100,null,true],[_vy402._ap474,_dx111.iLanguage.strEnterName,_dx111.TColors,30,_hu299.BigText,70,20,null,true],[_vy402._jk562,_dx111.iLanguage.strOk,_dx111.cGellGreen,170,60,25,_dx111.cWhite,35,200,"iOk",true],[_vy402._jk562,_dx111.iLanguage.strCancel,_dx111.cGellRed,170,60,25,_dx111.cWhite,290,200,"iCancel",true]];
- super(_loc2_);
- if(param1)
- {
- this.iCancel.visible = false;
- }
- _loc3_ = new _eh358.OFont() as Sprite;
- this.iInput = TextField(_loc3_.getChildAt(0));
- (_loc4_ = new TextFormat()).color = _dx111.cWhite;
- _loc4_.size = 40 * _bm350._tc204;
- this.iInput.type = TextFieldType.INPUT;
- this.iInput.width = 250 * _bm350._tc204;
- this.iInput.height = 100 * _bm350._tc204;
- this.iInput.x = 100 * _bm350._tc204;
- this.iInput.y = 110 * _bm350._tc204;
- this.iInput.defaultTextFormat = _loc4_;
- this.iInput.maxChars = 10;
- this.iInput.restrict = "A-Z a-z 0-9 а-я А-Я";
- this.addChild(iInput);
- this.iInput.text = "";
- _bm350.prStage.focus = iInput;
- this._gm53(100,100);
- }
-
- public function get _go241() : String
- {
- if(iCanceled)
- {
- return null;
- }
- return this.iInput.text;
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- super.onEnterFrame(param1);
- if(this._rm382 && _bm350.prStage.focus != this.iInput)
- {
- _bm350.prStage.focus = this.iInput;
- }
- }
-
- override public function _lf305(param1:MouseEvent) : void
- {
- if(param1.target == this.iOk._ol346)
- {
- this.iInput.text = iInput.text.toUpperCase();
- if(this.iInput.text.length == 0 || this.iInput.text.indexOf("FUCK") != -1 || this.iInput.text.indexOf("BEATCH") != -1 || this.iInput.text.indexOf("BITCH") != -1 || this.iInput.text.indexOf("ASS") != -1 || this.iInput.text.indexOf("BICH") != -1 || this.iInput.text.indexOf("BEACH") != -1 || this.iInput.text.indexOf("FACK") != -1 || this.iInput.text.indexOf("HO") != -1 || this.iInput.text.indexOf("NIGER") != -1 || this.iInput.text.indexOf("NIGGA") != -1 || this.iInput.text.indexOf("PUSSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1 || this.iInput.text.indexOf("PUSY") != -1 || this.iInput.text.indexOf("PUZZY") != -1)
- {
- this.iInput.text = "";
- return;
- }
- if(iAuto)
- {
- _nd174._lg421(this.iInput.text);
- }
- this.iInput.visible = false;
- this.iCanceled = false;
- this.hide();
- }
- if(param1.target == this.iCancel._ol346)
- {
- this.iInput.visible = false;
- this.iCanceled = true;
- this.hide();
- }
- }
-
- override public function show() : void
- {
- super.show();
- if(this.iInput)
- {
- this.iInput.visible = true;
- }
- _bm350.prStage.focus = iInput;
- }
- }
- }
-