It's a known limitation I think. Basically the Number class doesn't support more digits and therefore the formatter doesn't either. Not sure if Flex 2 has advanced its support.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 11:19 AM To: [email protected] Subject: [flexcoders] Currency Formatter -- formats only numbers up to 15 characters in length? Could anyone try this code? Enter a number of 16 characters for example:123456789012345. Click the button to get the format... you get $1. Anything below 15 characters works fine. am I missing something? or is this a bug? Thanks <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ function getNewFormat() { var str_a:String=USDformatter.format(txt_svDollarAmount.text); mx.controls.Alert.show(str_a,'str_a'); } ]]> </mx:Script> <mx:CurrencyFormatter id="USDformatter" precision="0" currencySymbol="$" useThousandsSeparator="true" alignSymbol="left" /> <mx:TextInput id="txt_svDollarAmount" width="160" maxChars="16" textAlign="left" restrict="[0-9]" /> <mx:Button label="Button" click="getNewFormat()"/> </mx:Application> ------------------------------------------------------------------------ --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. ------------------------------------------------------------------------ --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

