Validate in flash

hi! I looked at the others validate examples but they will not work for me.
I´m using the php script from this site and the form in flash. I have four variables in that form. message,subject,name,email. I want it to validate when i click the send button before it sends to the php-file. Need some help please!

regards
/Robert