topical media & game development

talk show tell print

professional-flex-code-15-CustomValidator.mx

professional-flex-code-15-CustomValidator.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
     backgroundColor="#FFFFFF" width="550" height="300" xmlns:comps="*">
    
    <comps:professional_flex_code_15_PasswordValidator required="true" source="{passwordtxt}" property="text"
      trigger="{validatebtn}" triggerEvent="click" listener="{passwordtxt}"/>
   
    <mx:Panel title="Password Validator" width="350" height="150">
            <mx:TextArea width="100%" height="45" editable="false" borderStyle="none" 
                    text="Password must be between 6-10 characters and contain at least 1 upper case, 1 lower case, and 1 number." />
      <mx:HBox paddingLeft="3">
        <mx:TextInput id="passwordtxt" width="75"/>
        <mx:Button id="validatebtn" label="Validate Password"/>          
      </mx:HBox>
    </mx:Panel>
  </mx:Application>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.