header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Maggy
Points:0
Posts:0

7/2/2010 12:17:39 AM

Title: Supress alphabets


How to supress alphabets in a Textinput in Adobe AIR.please provide an example.



1
Rex
Points: 1180
Posts:0
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 ?

2
bob_senior
Points: 1300
Posts:0
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());


3
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";




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions