7/2/2010 12:17:39 AM
Title:
Supress alphabets
How to supress alphabets in a Textinput in Adobe AIR.please provide an example.
7/2/2010 12:40:05 AM
do you want convert uppercase letters to lowercase while writing ? or don't allow to enter on alphabets ?
7/2/2010 12:47:35 AM
you can change the alphabets to lowercase by using toLowerCase() function on string . You do that on change event of your textbox . this will make uppercase to lowercase as you type in the textbox
// call this on change event of myTextBox
myTextBox.text=myTextBox.text.toLowerCase());
Kiney
Points: 530
Posts:0
7/2/2010 12:50:48 AM
you can use regex to allow only lowercase letters in textbox .
// only allow lowercase letters from a to z
myTextBox.restrict = "a-z";