Mega Code Archive

 
Categories / Flex / Data Model
 

Using the CurrencyValidator to validate European-formatted price

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:CurrencyValidator id="eurV"                          source="{priceEU}"                          property="text"                       alignSymbol="right"                        decimalSeparator=","                        thousandsSeparator="."                       trigger="{valButton}"                        triggerEvent="click" />   <mx:Label text="Enter a European-formatted price:" />   <mx:TextInput id="priceEU" />   <mx:Button id="valButton" label="Validate Currencies" /> </mx:Application>