Text field input mask

I need to limit my users to only enter dates with a custom format. I want to have something like this example in jQuery: http://www.youtube.com/watch?v=BMaTiGKykl8&feature=player_embedded

How can I archive this in AS3?

+3
source share
2 answers

You need to catch the KeyPressed event on a TextField. Check if the key is pressed correctly at the specified position, if so, do nothing, if not, cancel the event (Event.cancel = true).

( , ) TextField String , TextField.

+1

Source: https://habr.com/ru/post/1775004/


All Articles