title: multi-field validation
body: <p>I have a simple form with email &amp; password. I want to show the submit button once BOTH the email &amp; password are valid. My thoughts were when I run my handleValidator function I can check some sort of value of the "valid" property for email &amp; "valid" property of pass. How do I access the valid property of an item? </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
  xmlns:s="library://ns.adobe.com/flex/spark"                     
      xmlns:mx="library://ns.adobe.com/flex/mx" 
              &gt;
  &lt;fx:Script&gt;
      import mx.events.ValidationResultEvent;
      private function handleValidator ( eventObj:ValidationResultEvent ):void {
  
          if( eventObj.type==ValidationResultEvent.VALID
                            // what goes here?????
                            //  &amp;&amp; emailValidator.valid = true ?????
                            //  &amp;&amp; passValidator.valid = true  ??????
  
                            ){ 
              submit.visible = true;
          }
          else {
              submit.visible = false;
          }
      }
  
  
  &lt;/fx:Script&gt;
  
  &lt;fx:Declarations&gt;
  
      &lt;mx:EmailValidator id="emailValidator" source="{email}" property="text"
                         trigger="{email}" triggerEvent="change"
                         valid="handleValidator(event)" invalid="handleValidator(event)"
                         /&gt;
      &lt;mx:StringValidator id="passValidator" source="{pass}" property="text"
                          trigger="{pass}" triggerEvent="change"
                          valid="handleValidator(event)" invalid="handleValidator(event)"
                          minLength="5" maxLength="10"
                          /&gt;
  &lt;/fx:Declarations&gt;
  &lt;s:VGroup&gt;
  
  &lt;s:TextInput id="email" /&gt;
  &lt;s:TextInput id="pass" /&gt;
  &lt;s:Button id="submit" visible="false" /&gt;
  
  &lt;/s:VGroup&gt;
  &lt;/s:Application&gt;
  </code></pre>