import mx.events.ValidationResultEvent;
private var vResult:ValidationResultEvent;
private function currencyFormat():void {
vResult = numValidator.validate(inputCurrency.text);
if (vResult.type==ValidationResultEvent.VALID) {
inputCurrency.text =
currencyFormatter.format(inputCurrency.text);
} else {
inputCurrency.text= "";
}
}