0 Replies Latest reply on Mar 26, 2010 7:02 PM by dethmashine

    Problem with deploying the app

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="622" height="336" themeColor="#659EB1" borderColor="#58B1F0"  backgroundGradientAlphas="[1.0, 0.34]" backgroundGradientColors="[#473B80, #3310E5]">
           <mx:Label x="130" y="24" text="CONTEC GROUP CENTRAL SOFTWARE" color="#F0072D" fontSize="23" fontFamily="Calibri" fontWeight="bold"/>
           <mx:TextInput x="292" y="89" id="userName"/>
           <mx:TextInput x="292" y="134" displayAsPassword="true" id="passWord"/>
           <mx:Label x="157" y="91" text="USERNAME" color="#EF161C" fontWeight="bold" fontSize="15"/>
           <mx:Label x="157" y="136" text="PASSWORD" color="#CA182D" fontSize="15" fontWeight="bold"/>
           <mx:Button x="219" y="216" label="LOGIN" width="204" color="#EF1433"/>
                import mx.validators.Validator;
                  import mx.events.ValidationResultEvent;
                  import mx.validators.ZipCodeValidatorDomainType;
                  import mx.controls.Alert;
                     public var user:String = userName.text;
                public     var pass:String = passWord.text;
                     public function  validate():void
                               Alert.show("USERNAME INVALID","LOGIN FAILED");
           <mx:StringValidator id="user_valid" source="{userName}" property="text" minLength="2" />


      The main problem with the above program is that when I run the program it shows me the default blank screen with no text inputs and button but when I remove the validator then it shows me the proper GUI. Can anyone help me???????