I believe you can just pass the phone number to the phone number validator, and if the validation
result array has a length greater than zero , you set that to the error string of the text input.
How would you do that?
did it say invalid characters? you didn't add the space character to your allowed characters list.
<?xml version="1.0" encoding="utf-8"?>
protected function clickHandler():void
var event:ValidationResultEvent = phoneValidator.validate();
if (event.type == ValidationResultEvent.VALID)
<s:Button label="submit" click="clickHandler()"/>
Belated thanks (we were out yesterday).
I'll be checking on the space this morning. More later...
The space was there. I think it was the approach I was taking (validateNow()). After I changed it to the way you suggested, it works. Thanks for the time and for everyone else for the time to help a guy.