TextInput control focusOut event
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import flash.events.Event;
private function performValidation(eventObj:Event):void {
zipV.source = eventObj.currentTarget;
zipV.property = "text";
zipV.validate();
}
</mx:Script>
<mx:ZipCodeValidator id="zipV" triggerEvent="" />
<mx:TextInput id="shippingZip" focusOut="performValidation(event);" />
</mx:Application>
Related examples in the same category