Hi to all,
To add, I’m a newbie to php and Flash. Though I can get around in Flash, (i.e. locate Buttons in MovieClips, edit, etc.) I’m having a difficult time creating a php form in Flash “that works”.
I found the tutorial “Flash-Based email form using php” by Senocular. It was easy enough, the problem was the form I was working on (with the tutorial) was already created in my .fla file. All I needed was to add the php script within the form and create the .php file and upload.
Problem:
The tutorial says,
"Next, create a button. This will serve as the send button. This will exist not within the form, but in the same place as the form. It’s on this button that the loadVariables script will be added. That script is as follows:
[color=#000050]form[/color].[color=#0000d0]loadVariables[/color][color=#0000ff]([/color][color=#666666]“email.php”[/color], [color=#666666]“POST”[/color][color=#0000ff])[/color];
As I mentioned earlier, the Send button was already created. I added the form.load… to the button, and did a check and Flash output error says this,"
Error Symbol=page5, layer=1, frame=13:Line 1: Statement must appear within on/onClipEvent handler
form.loadVariables(“email.php”, “POST”);
I placed the form.load… in the Button MovieClip. Not sure if this was the cause of the error.
Anywho, I didn’t get much further than that.
Any “step-by-step” Helps would be appreciated.
Thx much