Jiffy Loop
07-09-2002, 12:04 AM
I have some source code that was originally created in Flash 5. I'm trying to rewrite the code in Flash MX using the new LoadVars Object. I'm just having a little difficulty trying to rewrite the syntax. The project I'm working on is an email form with a few fields and a submit button. After entering the form, the submit buttons sends this to a PHP file which then sends out the email. This is what I have so far:
//Frame 1:
fscommand ("allowscale", "false");
mailform = "mailform.php";
action = "";
stop ();
//Frame2:
loadVariablesNum(mailform, 0);
answer = "please wait for confirmation ...";
stop();
//Button:
on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("mailform.php", 0, "POST");
nextFrame();
} else {
vemail = "Please enter email";
action = "";
stop();
}
}
So basically my question is, how do I rewrite the loadVariables to use the new LoadVars?? I get confused with the new methods of send, sendAndLoad and load....
Any help would be appreciated.
jiffy loop
//Frame 1:
fscommand ("allowscale", "false");
mailform = "mailform.php";
action = "";
stop ();
//Frame2:
loadVariablesNum(mailform, 0);
answer = "please wait for confirmation ...";
stop();
//Button:
on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("mailform.php", 0, "POST");
nextFrame();
} else {
vemail = "Please enter email";
action = "";
stop();
}
}
So basically my question is, how do I rewrite the loadVariables to use the new LoadVars?? I get confused with the new methods of send, sendAndLoad and load....
Any help would be appreciated.
jiffy loop