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