Of course phone numbers, email addresses, and other formatters would be appreciated!

wade


On Nov 9, 2005, at 1:33 PM, Wade Arnold wrote:

I am about to start writing a customFormatter but I have to ask if this has been done a million times before. I have searched almighty google and this list and not have found an answer. I am wondering if CustomFormatter only works for data-binding and not actually for manual input. Assuming that this is a common task I have to ask if I am going about this the wrong way. Please let me know what steps I need to take to get the below result.

I have two text formatters for the textinput class:

The first is to handle percentages. people like to type in percentages a lot of ways. I want the result of this input field to give me a type number of 0.06 with the following inputs:

6%
.06
6

People like to type monitory numbers a lot of different ways. I want the result of what they type to be a number with out all of the character formating. With the following inputs I would like the the result to be 6666:

6666
6,666
6,666.00
$6,666.00
$6,666
$6666


With both examples I would like to be able to set the number back to the text area and have the text area display it with the proper formating.

Example:
 0.06 would be displayed as 6%
6666 would be displayed as $6,666.00


Thanks;
Wade Arnold
www.T8DESIGN.com




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to