Frame1
this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "submit";
//onRollOver
this.contactForm.submitBtn.onRollOver = function(){
contactForm.submitBtn.gotoAndStop (2);
}
//onRollOut
this.contactForm.submitBtn.onRollOut = function(){
contactForm.submitBtn.gotoAndStop (1);
}
//OnRelease
this.contactForm.submitBtn.onRelease = function () {
if (contactForm.userName.text == "" || contactForm.userEmail.text == "" || contactForm.userComments.text == ""){
gotoAndStop("error");
} else{
gotoAndStop("correct");
}
}
Frame 10 (labeled error, where the error message displays)
this.contactForm.backBtn.btnLabel.autoSize = "center";
this.contactForm.backBtn.btnLabel.text = "< back";
//onRollOver
this.contactForm.backBtn.onRollOver = function(){
contactForm.backBtn.gotoAndStop (2);
}
//onRollOut
this.contactForm.backBtn.onRollOut = function(){
contactForm.backBtn.gotoAndStop (1);
}
//OnRelease
this.contactForm.backBtn.onRelease = function () {
gotoAndStop(1);
}
Any help would be appreciated