Question : I want for my textbox to only accept numbers and decimal numbers

HI.
I have a textbox where the client can input only numbers but now the client wants to input decimal numbers.

This will allow the client to only write number but how can I change this to make it accept decimal numbers too.
   Panel_mc.Area3_mc.ExistingCoverage_mc.ExistingCoveragetxt.restrict ="0-9";

Thanks

ps: I am using ActionScript 3

Answer : I want for my textbox to only accept numbers and decimal numbers

try this:
  Panel_mc.Area3_mc.ExistingCoverage_mc.ExistingCoveragetxt.restrict ="0-9.";
(Note the "." at the end)
Random Solutions  
 
programming4us programming4us