Mega Code Archive

 
Categories / Flex / Data Model
 

Override default error message for a specific PhoneNumberValidator

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:PhoneNumberValidator id="pnV"                             source="{phoneInput}"                          property="text"                           wrongLengthError="Please enter a 10-digit number." />   <mx:TextInput id="phoneInput" />   <mx:TextInput id="zipCodeInput" /> </mx:Application>