When I process the form I use this code to call my validator.
private var vResult:ValidationResultEvent;
private function addTrans():void
vResult=MyIndex_Num.validate(); // Make sure the index
number is an integer.
if (vResult.type == ValidationResultEvent.INVALID)
x = 1;
The thing is this validator works fine if I take out the
required flag from the validator tag. But if I leave the
required="false" in the validator the code does not fail if
the user enters characters into the Input_Index_Num field in
addition to digits.
I don't want this field to be required but I do want it to
fail if the user enters something other than digits into the
Input_Index_Num field. Can you see anything wrong with this code
because I can't and it is driving me to drink!!!