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
]]>