Flash Contact Form in ActionScript 3
Posted by admin in ActionScript 3, Flash, Tutorials
This flash contact form is simply made in Adobe Flash CS3 ActionScript 3. Email validation is better than previous version in ActionScript 2. It sends the form field variables to PHP and loads the response variables back to Flash using URLVariables, URLLoader, and URLRequest classes. It will be very useful for you to use or adapt it for your Flash projects.










Scott, if you wish to use auto response, remove “send_email.php” first and then just rename auto response file to “send_email.php” file. That’s it.
I’ve tried to send out the email by using this form, it gone sucessfully, but when I check my inbox, it’s not in there. Does anyone knows why? Thank you
The download source files link goes to a template website!! i’d reeeeally like to be able to download this!
I was having trouble getting this to work on a WordPress site – all I had to do was to use the absolute path for the .php file, instead of just “send_email.php”. Works great, thank you very much for sharing!
Mauricio – there’s a link to download the .fla source file at the bottom right corner of the page.
how do i adjust the send_email.php file so that it can word with my Gmail account?
and how do i config. my xampp server running on mijn pc to work with this?
hi ok forget het xampp server thing… i just got a free real host…
what do you mean by absolute path Teresa coulde you please help me with this ?
This looks very cool and handy. by the way I found another as3 contact us form which also seems easy to use. We just need to create an Object of this class and it doest rest of things. If anyone wants to have look on it.
http://www.msinghinteractive.com/blog/tag/as3-contact-us-form-flash-tutorial/
Cheers
R
I can’t get it to work at all anymore. I had originally used it on one project and it was fine. Now the code wont work on a different and the examples I download don’t work. They both just said failed sending.
Now it just displays sending but that’s it. I haven’t altered the code except for the name of the button that sends the file and I fixed it in the AS. The server has PHP and all the files are in the same directory.
Hello, I need your help with the script, it gives me errors like this:
1120: Access of undefined property timer.
Where is the timer. I imagine it is an object created somewhere on the stage.
hi
the link does not take me to the source code
I’m an idiot at this kind of stuff, but I have to ask to make sure.
I’m having the same ’stuck on Sending’ issue as well. Is there anything else I have to change in the ’send_email.php’ besides where it says:
$receiver = “admin@survivethegame.com”;
I also don’t know if I need to add any information to the ActionScript, I just left it alone since I really don’t know what I’m doing. The rest of the site template I’ve been able to figure out on my own.
If you need to know, I’m using Flash Template #188 for my site (AS3).
UPDATE – Just tested it again, it actually DOESN’T
stick on ’sending,’ it just straight-up fails.
I have Yahoo as a web host, and it is supposed to be PHP-enabled, if that makes any difference.
Hello my contact form don’t work, I used this template… can help me?
Hello, i been using the latest templates but the email from send_email.php or something doesnt works I’ve tried to send out the email says it gone sucessfully, but when I check my inbox, it’s not in there. Do you know why? Thank you
Me again, i guess i know whats the problem that im not recieving the messages on my inbox, in the server where is my page doesnt work the contact form in Action Script 3, in the same server theres another page with contact form in Action Script 2 and it works perfectly.
Any suggestions ?
Hi,
I am trying to get the contact form to work with a server side aspx mail script but after many weeks still have not succeeded. It is a free of charge job for a non profit ballet society and I would very much appreciate some help as they launch this weekend at their agm.
The AS3 contact form is so cool I really want to keep it but our server only has asp.net.
Cheers,
Brett
Hello, I’m trying flshmo 188. everything works perfect, except for flash contact form. Actualy it works fine also, but special characters do not show up correctly. I guess I need them in UTF-8 or iso-8859-2. I have tried to add “header(‘Content-Type: text/html; charset=utf-8′);” to contact form action script, tried even in php file but it just dont work. Contact form itself shows all characters fine while writing on web page, but after I press send and receive email, all special characters are gone. Is there any way to fix that?
Thank you in advance.
BTW i embeded all in input fields but does not help. So I think it must be somehow specified in script itself.
Thank you very much that’s work perfectly. You are Star.
I am working on a website and am soooo grateful for this tutorial, everything seems to work great but when I hit send I also get the “Failed! Your message cannot be sent” message and its really frustrating! Please help me. I’m not sure what the problem is, but I have seriously tried all that my mind can think about! Any help would be so appreciated!
Okay, I have published my site now and everything seems to work great, but I am having the same problem Josh said where it says it sends but there is nothing in my inbox. Please help!
I used the code b4 and it worked but now im using it and it simply stopped sending the mails,the program tells me the mails are sent anyways they never reach the mailbox is there something i did wrong?
this thing is getting me fired if i dont find an answer soon!