hey guys i'm really stumped -
in my movie the user submits a form to PHP, which validates the form, and if all's cool it emails me.
i'm trying to give the user a message depending on what PHP returns but am having a miserable time figuring out where that passed variable is...
attached to my movie,
view_contact_form, is:
ActionScript Code:
onClipEvent(data){
gotoAndPlay("loadcomplete");
}
inside the movie,
view_contact_form, on the frame "loadcomplete" is:
ActionScript Code:
if (message=="m1"){ // all is ok
play();
}
if (message=="m3"){ // invalid email
this.attachMovie("error_box", "error_box5", 25);
this.error_box5._x = -40;
this.error_box5._y = -5;
error_box5.error_msg = "Invalid email address";
stop();
}
to submit the form:
ActionScript Code:
on (release){
if (some error trapping here){
} else {
loadVariables("question.php", this);
}
}
message is the variable returned from PHP and appears just fine in the dynamic text box i have sitting on on the
view_contact_form timeline after i submit the form, but i can't seem to check it with my "if " statements. i tried putting the
"if (message=="m1...." inside the onClipEvent(data){ but that didn't work either.
any help would really be appreciated!!
i'm using flash 5 btw