import mx.validators.PhoneNumberValidator; private var v:PhoneNumberValidator = new PhoneNumberValidator(); private function createValidator():void { v.source = phoneInput; v.property = "text"; }