Using the CurrencyValidator to validate US currency : CurrencyValidator « Data Model « Flex
- Flex
- Data Model
- CurrencyValidator
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>
Related examples in the same category