This content has been marked as final. Show 6 replies
You need a few things first.
One is a php/asp file that is going to do whatever you need to do with this form data i.e. e-mailing it to a central internal e-mail account to be processed.
The second is a LoadVars class object that stores all of your text field text properties to identically named (to the php/asp) variables that can be sent via POST through a sendAndLoad call.
The third is another LoadVars class object that will handle whatever data you need to get back from the php/asp file i.e. success code of some sort so that you can display a valid message to the user about what did/didn't happen with the form. The second LoadVars object will be sent as an arguement to your first LoadVars sendAndLoad call.
Find a decent php/asp file on the web, there a plenty of pre-built ones out there. As a matter of fact, a php version can be downloaded from my site (part of an AS3 contact form) - http://www.sd-dezign.com/files/as3contact.zip Feel free to e-mail me with question but the file is pretty simple and a good starting ground for what you need (assuming you are using PHP).
The LoadVars class is pretty well documented in the AS2.0 Help Files inside Flash but if you need help, feel free to ask about that as well.
Hi and Thanks for Response:
I downloaded from your site. Dreamweaver Document (mail.php) opened fine, but the Contactform.fla document would not open. Do I need it? I run MacOS 10.4.9.
Could you save your fla file down to Flash 8? I also have been trying to get my flash form to send e-mail.
Thanks so much,
The FLA is CS3 and uses AS3 code so saving it in Flash 8 format isn't going to help. The mail.php file is a bare bones file and will work for any version of Flash. For Flash 8 AS2, look into the LoadVars class. I'll try to add a post tomorrow showing the AS code for AS2 and AS3.
Thanks so much!