Example of Currency Formatter
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Bindable]
private var dollarValue:Number=1234;
</mx:Script>
<mx:CurrencyFormatter id="Price" precision="2"
rounding="none"
decimalSeparatorTo="."
thousandsSeparatorTo=","
useThousandsSeparator="true"
useNegativeSign="true"
currencySymbol="$"
alignSymbol="left"/>
<mx:TextInput text="The price is {Price.format(dollarValue)}."/>
</mx:Application>
Related examples in the same category