View Full Version : [AS3] Limiting a fl.Controls.TextInput to allow only Numbers?
ColinDiam
04-24-2010, 03:47 AM
I have a formthat contain a Few TextInputs. The thing is I only want the user to be able to enter Numbers into the TextInputs so I can then parse them as integers. Is there anyway to do this so the user can enter say "123" but not "asd"?
Mazoonist
04-24-2010, 04:38 AM
myInput.restrict = "0-9";
That will allow as input only the digits 0 through 9, and no spaces or any other characters.
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.