Does anybody know how to implement input masks for flash textfields? (AS3)
Thanks in Advance,
H3li0
Does anybody know how to implement input masks for flash textfields? (AS3)
Thanks in Advance,
H3li0
Flash's TextField class doesn't support input masks (the flex TextInput class does however).
What you probably need to do is create a regular expression to validate against
You could listen to the Event.CHANGE of the TextField and run some code that trys to match the string against your regular expression. If it matches it's valid, if it doesn't you notify the user somehow.
Check out the TextField restrict property
Not as glamorous as a true input mask, but gets the job done on restricting input