Adobe Masked TextInput
By
FlexExchangeAdmin
November 27, 2006
13,746 Downloads
25 votes
The Masked Text Input component is a single-line, text input field. This component adds support for the validation of input against a specified mask expression on a character by character basis. Updated for Flex 2.0.1 with following changes text and fullText properties are now made Bindable
SUPPORT INFORMATION
Informally supported by Adobe engineering. See the Flex Team blog post: http://weblogs.macromedia.com/flexteam/archives/2006/11/component_maske.cfm
| License: | Freeware |
|---|---|
| Language: | |
| Cost: | Free |
| Platform: | Flash Player 9 |
| File format: | ZIP | 544.8 KB |
Additional extension information
| Author: | FlexExchangeAdmin |
|---|---|
| Author website: | http://weblogs.macromedia.com/flexteam |
| Date published: | November 27, 2006 |
| Approval: | None |
| Compatible product(s): | Flex 2.0.1 |
Reviews
1-5 of 12 reviews | Show all reviews
Alan1213 02-Jul-11
I've got the same problem. Hundreds of our customer complain that all MaskedTextInput controls in the app appear with a very bad layout now. Flash Player 10.3.181.14 has a bug!
loriling01 26-May-11
When i use the flash player 10.3.181.14 to run this component, it seemed a display bug on it. I debugged it and found that measureText("w").width returned a wrong value. Its very oddness. Any suggestion?
SSzretter 15-May-11
Is this working properly in Flex 4?
Prathi_Kiran 22-Apr-10
Setting the text alignment to right mesh up the control. This property should show no effect for the control.
<ns1:MaskedTextInput id="txtCost1" inputMask="#,###,###,###,###/.##" textAlign="right" >
And in the above control if I would like to enter only 1.0, it does not allow me to do so. Is this expected behavior.
Thanks for the great efforts.
Kevin__K 21-Oct-09
Update - the below fixes setting the text property but causes the cursor to advance improperly when typing. Use this instead:
//if first character is not a viable input position...
if(!isMask(maskMap[0][0]) && !(event is TextEvent))
{
advancePosition(); //advance to the first viable input position
}
