Easy to use Flash AS3 Contact Us form class September 3rd, 2009

admin

I have created a new easy to use Flash AS3 Contact Us Class. This clas creates all the required elements of a flash contact us form like Name, Email, Subject, Message Input fields and Submit and Reset buttons. On backend I am using php script to post the flash email form data to server. Here is the sample code how to create an instance of this class and your contact us form is ready with minimum efforts. Below I will show you how to use this code to create the dynamic contact us form.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
package{
import classes.*;
import flash.display.*;

public class main extends Sprite{
public var contactForm:ContactUsForm;

public function main(){
contactForm=new ContactUsForm(400,450);
addChild(contactForm);
contactForm.x=100;
}
}
}

This Action Script code is free and available to download below but  you need to do few things before it can be fully functional according to your requirement.

1. Edit the send_email.php file and change $receiver variable and put your email id there.

2. Or you can change the send_email.php file path in ContactUsForm to point it to the folder wher you upload php file.

3. Make sure send_email.php is in same folder as the contact us form swf  is on server.

And your contact us form ready:

Soure Code Download

Enjoy!

M

Tags: , , , ,

This entry was posted on Thursday, September 3rd, 2009 at 4:12 pm and is filed under AS3. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


8 Responses to “Easy to use Flash AS3 Contact Us form class”

  1. Nawbee says:

    Hello,
    Can you please provide me with the correct php mail script for the following ActionScript. I have tried everything and can’t get it to work.
    Thank you so much for your help.

    on (rollOver){this.gotoAndPlay(”s1″);}
    on (releaseOutside, rollOut){this.gotoAndPlay(”s2″);}
    on (release) {
    _parent.t1_2 = “Your full name:”;
    _parent.t2_2 = “E-mail address:”;
    _parent.t3_2 = “Your telephone:”;
    _parent.t4_2 = “Message:”;
    _parent.loadVariables(”mail.php”,”POST”);
    }

  2. Eyeris says:

    This is by far the best and most easy flash contact form I have encountered yet!

    Clean, Clear, neat, nice look, and very easy adjustable…

    Thanks man

    was looking for days

  3. Eyeris says:

    Nawbee, keep it real! :)

    it’s for AS3, your code is AS2!

  4. Hi Manjit,
    I have been trying to get contact form from Flashmo to work with asp serverside script for weeks but no joy. I had hoped your action scrript and contact form would be more suited to use with asp file so downloaded. My cs3 can’t open your .fla file (unexpected file format).
    Could you please help me help this ballet society (all non profit including me) and provide me with the correct fla file and instructions on where to load your class file as I am very new to flash. I would be eternally thankful for any help you could provide.
    Many thanks,
    Brett

  5. Monica says:

    Manjit-

    Thanks for the contact form for Flash, however I am having the same problem as Brett had mentioned previously – opening the fla file in CS3 gives an unexpected file format error. Could you please re-post the fla file so that we can open it in CS3? Thank you.

  6. Duarte says:

    This file is corrupted, as stated by Bret, Can you send or re-post the correct file? thanks in advance.

  7. Robert Jay says:

    Hi!
    Big thanx for this clean and neat form.
    I’m a beginner in AS3 and was able to get it working in no time.
    Thanx for sharing this!
    Regards
    Bob

  8. I like what you guys are up also. Such smart work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site :) .

Leave a Reply