What it should do is strip all the non-numberic characters
from the input string THEN run that error check. Instead it just
Also, the code in that proc is really long(old) when some
pattern matching using RegEx could cut that code down to 3-4 lines.
I think that Class should be re-written.
so you have to strip all the non-numeric characters from the
string before you send it to the format() function.
public function stripToNumbersOnly(inputStr:String):String
// rips the non-numeric characters from a string
// in preparation for PhoneFormatter (which sucks)
var regex:RegExp = /\D/g;
var retStr:String = inputStr.replace(regex,"");
trace ("stripping: " + inputStr+ " = " + retStr);
SURE WOULD BE NICE TO BE ABLE TO POST CODE IN THIS