home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / WINDOWS / DIALOGS / _dt399.as next >
Encoding:
Text File  |  2008-09-26  |  4.2 KB  |  117 lines

  1. package Code.WINDOWS.DIALOGS
  2. {
  3.    import Code.LIB._bm350;
  4.    import Code.LIB._ei76;
  5.    import Code.LIB._hu299;
  6.    import Code.LIB._nd174;
  7.    import Code.LIB._nx518;
  8.    import Code.OPTIONS._dx111;
  9.    import Code.OPTIONS._eh358;
  10.    import Code._vy402;
  11.    import flash.display.Sprite;
  12.    import flash.events.Event;
  13.    import flash.events.MouseEvent;
  14.    import flash.text.TextField;
  15.    import flash.text.TextFieldType;
  16.    import flash.text.TextFormat;
  17.    
  18.    public class _dt399 extends _ei76
  19.    {
  20.        
  21.       
  22.       private var iCanceled:Boolean;
  23.       
  24.       public var iOk:_nx518;
  25.       
  26.       public var iCancel:_nx518;
  27.       
  28.       private var iAuto:Boolean;
  29.       
  30.       private var iInput:TextField;
  31.       
  32.       public function _dt399(param1:Boolean = false)
  33.       {
  34.          var _loc2_:Array = null;
  35.          var _loc3_:Sprite = null;
  36.          var _loc4_:TextFormat = null;
  37.          this.iAuto = param1;
  38.          _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]];
  39.          super(_loc2_);
  40.          if(param1)
  41.          {
  42.             this.iCancel.visible = false;
  43.          }
  44.          _loc3_ = new _eh358.OFont() as Sprite;
  45.          this.iInput = TextField(_loc3_.getChildAt(0));
  46.          (_loc4_ = new TextFormat()).color = _dx111.cWhite;
  47.          _loc4_.size = 40 * _bm350._tc204;
  48.          this.iInput.type = TextFieldType.INPUT;
  49.          this.iInput.width = 250 * _bm350._tc204;
  50.          this.iInput.height = 100 * _bm350._tc204;
  51.          this.iInput.x = 100 * _bm350._tc204;
  52.          this.iInput.y = 110 * _bm350._tc204;
  53.          this.iInput.defaultTextFormat = _loc4_;
  54.          this.iInput.maxChars = 10;
  55.          this.iInput.restrict = "A-Z a-z 0-9 ╨░-╤Å ╨É-╨»";
  56.          this.addChild(iInput);
  57.          this.iInput.text = "";
  58.          _bm350.prStage.focus = iInput;
  59.          this._gm53(100,100);
  60.       }
  61.       
  62.       public function get _go241() : String
  63.       {
  64.          if(iCanceled)
  65.          {
  66.             return null;
  67.          }
  68.          return this.iInput.text;
  69.       }
  70.       
  71.       override public function onEnterFrame(param1:Event) : void
  72.       {
  73.          super.onEnterFrame(param1);
  74.          if(this._rm382 && _bm350.prStage.focus != this.iInput)
  75.          {
  76.             _bm350.prStage.focus = this.iInput;
  77.          }
  78.       }
  79.       
  80.       override public function _lf305(param1:MouseEvent) : void
  81.       {
  82.          if(param1.target == this.iOk._ol346)
  83.          {
  84.             this.iInput.text = iInput.text.toUpperCase();
  85.             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)
  86.             {
  87.                this.iInput.text = "";
  88.                return;
  89.             }
  90.             if(iAuto)
  91.             {
  92.                _nd174._lg421(this.iInput.text);
  93.             }
  94.             this.iInput.visible = false;
  95.             this.iCanceled = false;
  96.             this.hide();
  97.          }
  98.          if(param1.target == this.iCancel._ol346)
  99.          {
  100.             this.iInput.visible = false;
  101.             this.iCanceled = true;
  102.             this.hide();
  103.          }
  104.       }
  105.       
  106.       override public function show() : void
  107.       {
  108.          super.show();
  109.          if(this.iInput)
  110.          {
  111.             this.iInput.visible = true;
  112.          }
  113.          _bm350.prStage.focus = iInput;
  114.       }
  115.    }
  116. }
  117.