The sample application, Validation_sample.fla, shows how you can validate a form using the DataValidation library and give the user feedback.

When the user clicks the submit button, the function formIsValid() runs through all of the fields and shows if they are valid or not. If any fields are invalid, the user is also informed of this by an alert window.
The form will not be submitted until all the compulsory fields have been entered and are valid. The optional fields are only checked if the user has entered something in there. If everyting is correct then the data is submitted using a LoadVars object.