creationComplete="doValidate()">
import mx.validators.*;
private var phoneV:PhoneNumberValidator;
private function doValidate():void
{
phoneV = new PhoneNumberValidator();
phoneV.source = phoneTxt;
phoneV.property = "text";
phoneV.required = true;
phoneV.allowedFormatChars = "+,-";
phoneV.allowedFormatChars = "+-";
phoneV.invalidCharError = "Invalid char.";
phoneV.wrongLengthError = "Invalid format";
phoneV.requiredFieldError = "required";
phoneV.trigger = phoneTxt;
phoneV.triggerEvent = "change";
}