[flexcoders] Re: Formatting a TextInput

2009-03-20 Thread donald_d_hook
Faster yet ... sample below define the formatters: == Use in your code: = txtCurrentBalance.text = currencyFormatter.format(account.currentCashBalance); txtGainPct.text = percentFormatter.format((gain / account.initialCashBalance) * 100); --- In flexc

[flexcoders] Re: Formatting a TextInput

2009-03-20 Thread stuarthuss
You can use Flex Framework formatter classes, for a demonstration on how to use them check out the short (6 mins) video "Formatting Data" from Adobe's Flex in a week tutorial [ http://www.adobe.com/devnet/flex/videotraining/ ] It's on Day 3. --- In flexcoders@yahoogroups.com, "christophe_jacque

[flexcoders] Re: Formatting a TextInput

2009-03-20 Thread stuarthuss
You can get more info on formatting data at [ http://www.adobe.com/devnet/flex/quickstart/formatting_data/ ]. You might also want to consider validating the data so check out [ http://www.adobe.com/devnet/flex/quickstart/validating_data/ ]. --- In flexcoders@yahoogroups.com, "christophe_jacquel