Development Flex



  
    
      import mx.events.ValidationResultEvent;
      import mx.controls.Alert;
      private function runValidators(event:Event):void {
        var validationResultEvent:ValidationResultEvent = validator.validate(null, true);
        if(validationResultEvent.type == ValidationResultEvent.INVALID) {
            Alert.show("Required");
        }
      }