-
Letter validation
Greetings all,
I have a variable that gets a value inputted from the keyboard at a different time to when this variable gets used.
What I want to check is if that value is from the alphabet only (uppercase or lowercase I don't mind). I can't use the "Key.getAscii();" command as the check isn't coming after someone has pressed their keyboard.
Thank you.
-
If they are typing into an input text field, you can use TextField.restrict to set it to only accept letters, not numbers or punctuation...
http://www.adobe.com/livedocs/flash/...html#wp4008356
K.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|