You can do it in either. You will have some button I assume that you use to process the textfields. Before you process them you can check them for valid content.
is there a good resource to learn how to do it in flash? I don't have money... so it will have to be a free resource. I really need to know how to do it. Oh please.