I want that the users will be able to insert only numbers in a specific TextInput. Anybody knows how to do this ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#restrict
You can use a range like so:
In AS3:
myTextInput.restrict = '0-9';In Flex:
<mx:TextInput id="myTextInput" restrict="0-9" />I haven’t tested this, but it should work just fine, according to the docs.