Development Flex


    
    xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
    
        
    

     
         
        import mx.events.ValidationResultEvent; 
        private var vEvent:ValidationResultEvent; 
        private function validateData():void { 
            if (String(country.selectedValue) == "Canada") { 
                vEvent = zipCN.validate(zipInput.text); 
            } 
            else { 
                vEvent = zipUS.validate(zipInput.text); 
            } 
        } 
      
    

    
                    listener="{zipInput}" />
                    listener="{zipInput}" />