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
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
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
3 matches
Mail list logo