Is there a way... Restrict numbers in a Dyn Textbox?

Is there way in flash to restrict dynamic text box to a range of numbers? i.e. 0-120

Thanks,
Gary