Mega Code Archive

 
Categories / Flex / Data Model
 

Using the CurrencyValidator to validate US currency

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:CurrencyValidator id="usV"                          source="{priceUS}"                          property="text"                       alignSymbol="left"                        trigger="{valButton}"                        triggerEvent="click" />   <mx:Label text="Enter a US-formatted price:" />   <mx:TextInput id="priceUS" />   <mx:Button id="valButton" label="Validate Currencies" /> </mx:Application>