Search code examples
apache-flexactionscripttextinput

Flex: Text Input that accepts number only


Need a code that only accepts numbers. Upon inputting, the code must check if it is number, if not, it must remove the entered key or not enter it at all


Solution

  • look at the restrict property on the TextInput class. Set it to "0-9"