PDA

View Full Version : need help with submit button for form in Flash


brigit
12-4-04, 04:45 AM
I have purchased a flash template and have edited everything I need without problems except for one thing. The template comes with a ready-made form but the submit button is inactive. The button symbol is a movie clip in the properties. I am a total newbie with flash and am quite surprised I've managed to edit everything else without problems but I am stuck when it comes to the submit button. Can anyone tell me, in PLAIN english, how to edit the button to work. I already have sendmail.pl installed. I just need to know how in Flash (I'm using Flash 2004 pro) to make the form button work.

P.S. I have contacted the tech support for the template provider but they are taking forever to get back to me. Any help would be appreciated.

corey snyder
12-7-04, 11:21 PM
hello.

To be honest you are going a completly diffucult way about the mail script. there are a million easier ways to go about flash mail forms other then pearl. I can show you the PHP way, which is a million times easier and you will be able to understand how to fix it if something goes wrong, easier casue the "language" is a little more like english.

I am giving you a link to Kirupa, an open source for web guys that I contrubite to. It will save me the typing, plus you can download the files and it will help you learn better.

Teach to fish :)

link > http://www.kirupa.com/developer/actionscript/flash_php_email.htm

Cheers,
Corey
any questions post or google

jkatz
1-6-05, 02:38 AM
I battled the same question, a non-working submit button on a flash template, all afternoon. Finally got it to work by attaching this action to the submit button:

on(press) {
stuff = new LoadVars ();
stuff.name = _parent.var1;
stuff.email = _parent.var2;
stuff.comment = _parent.var3;
stuff.recipient = "contact@site.com";
stuff.subject = "Web form submission";
stuff.emailprint = stuff.email;
stuff.send ("http://site.com/cgi-bin/FormMail.pl", "", "POST");
}

all the stuff.variables are lines that formmail recognizes. hope it's not too confusing, i've been working on it too long to tell...!