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

<*> 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/
 


Reply via email to