At 10:07 PM 5/10/2009, you wrote:
On Sun, May 10, 2009 at 1:18 PM, Laurence MacNeill <<mailto:[email protected]>[email protected]> wrote: I'd like it to fire when the field loses focus, so the typist knows immediately when they've made a mistake.


Then write your own function to fire on that event, and call the validator conditionally, as in the example.

That's all well and good. But when I write my own function, it doesn't automatically pop up the little red error message next to the box when the ZIP Code is invalid. So obviously I need to do that manually. But I have no clue how to do that -- LiveDocs says nothing whatsoever about it (at least, nothing I can find).

private function valZIPCode():void {
  if (inputCountry.selectedItem.toString() == "USA") {
    var vResult:ValidationResultEvent = zipV.validate(inputZIPCode.text);
    if (vResult.type==ValidationResultEvent.VALID) {
      roZIPCodes.returnCityState(inputZIPCode.text.substring(0,5));
    } else {
      //It should pop up the little red Error Message here - how do I do that?
    }
  }
}


Thanks,

Laurence MacNeill
Mableton, Georgia, USA



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to