A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Letter validation

  1. #1

    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.

  2. #2
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center