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.



16 responses so far ↓
1 AS2 Flash Contact Form // Aug 15, 2008 at 8:37 am
[…] Related Post: Flash Contact Form in ActionScript 3 […]
2 kick // Aug 22, 2008 at 10:29 am
how do i enter the email address to where i want the message to be sent?
3 admin // Aug 22, 2008 at 10:31 am
Hi kick, please follow http://www.webdesignmo.com/blog/2008/05/26/as2-flash-contact-form for it.
4 hyperbola // Aug 26, 2008 at 3:08 am
I believe I’ve set everything up correctly, however, I get an error message saying (I’ll translate from German to English (roughly)):
Error: Error #2101: The URLVariables.decode() passed String must have a URL-coded String with Name/Value-pair.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at test4_fla::MainTimeline/submit()
What have I missed out?
Thanks,
-Hyper
5 CobaltBlueDW // Sep 17, 2008 at 3:05 am
^hyperbola.
This problem is usually caused by extra &. In AS3 there can’t be any & at the beginning or end of the string, and there can only be one in between each name/value pair.
Try stripping out the extra & with this:
static public function strip(urlEncoding:String):String{
var x=-1;
while((x = urlEncoding.indexOf(”&”, x+1))!= -1){
var y=x;
while(urlEncoding.charAt(++y)==”&”);
urlEncoding = urlEncoding.substring(0,x+1)+urlEncoding.substring(y);
}
if(urlEncoding.charAt(0)==”&”)urlEncoding = urlEncoding.substring(1);
if(urlEncoding.charAt(urlEncoding.length-1)==”&”)urlEncoding = urlEncoding.substring(0,urlEncoding.length-1);
return urlEncoding;
}
6 CobaltBlueDW // Sep 18, 2008 at 4:01 am
I actually went a step further and made a replacement class for URLVariables. I posted it @ http://www.actionscript.org/forums/showthread.php3?p=791377#post791377
Enjoy!
7 Arjhun Srinivas // Sep 22, 2008 at 6:43 pm
Dear webdesignmo team ,
You have very wonderful reply forms .. keep it up
Good Luck ,
Arjhun
8 sv creation // Sep 30, 2008 at 4:38 pm
Thanks That is very useful to me i am really very-2 Thankful to you
Sunil Sharma
9 sv creation // Sep 30, 2008 at 4:41 pm
I am urgetely need flash contact form so it will very usefull to me
Thanks Webdesignmo
Sunil sharma
10 Tom Wheeler // Oct 6, 2008 at 4:35 am
Hi
Im new to actionscript so i may be doing something wrong but i have changed the reciever email to my email, uploaded the site to my server, when i test the contact form it says sending at the bottom but the doesnt do anything and i dont recieve an email?
Any help will be greatly appreciated
Regards
Tom
11 armin // Oct 18, 2008 at 6:21 pm
Hi guys, the form is great you did and it helps me a lot.
There is just one problem. It works great if I put the swf file like a separate page inside an index file, but if I put it inside another swf movie on the server you cannot put the words inside the box fields, on the other side, you can put them regulary on my desktop.
What can be the problem ?
12 Mr-Yellow // Oct 30, 2008 at 10:41 am
Putting the source as an image sucks.
I only need 2 lines and I have to type them out instead of copy & paste.
It’s not user friendly however “cool” it might look.
-Ben
13 admin // Oct 30, 2008 at 11:23 am
Mr-Yellow,
You may download the source file for copy and paste.
Thanks.
14 Jack // Oct 31, 2008 at 6:04 am
very nice… i’m going to try on my website. Thanks you
15 Disco Stu // Nov 1, 2008 at 11:28 pm
The download link goes to a template site.
16 shiraz // Nov 19, 2008 at 8:04 pm
i want to use this contact form but edit it because i want to make a reservation page for my website will it be easy to edit the code on this and if i edit the code will i need to edit the php file to
Leave a Comment