Only numbers in a textField

I did a restriction on a textfield in flash mx some time ago. But now, i can’t do it in mx 2004. How can i do it? I need to restrict input data, to just numbers
Thanks