Simple AS3 Contact Form Using PHP

This contact form class is super-customizable and simple to use. I’ve used it in lots of projects and it’s easy to make it look different every time. Pretty much everything can be easily customized including all the colors and text and validation copy. Requires a server running PHP for the email to send.

Free for any use other than reselling.

Add Comment

Discussion 34 Comments

  1. vlado says:

    It says – access is denied for me (download source )

  2. teskostudio says:

    Same here, can´t download the source.

  3. Ian Yates says:
    Staff

    Sorry guys, I’d set the file permissions incorrectly. Have another go..

  4. sushidub says:

    thanks man for this great resource… :)

  5. samBrown says:

    good stuff, thanks!

  6. stevie says:

    Awesome!! Thanks!

  7. Mike says:

    Thanks!

  8. Dan says:

    Fantastic contact form. Thanks!

  9. Gilbert says:

    Great form!!
    is it possible to add fields?

  10. jamie says:

    when i try to use this i get the errors

    1180: Call to a possibly undefined method FontText.

  11. siddharta says:

    hey dude pero no es un tuto?, yo kiero aprender a hacer uno, no templetearme el tuyo, osea gracias por el recurso, pero podrias explicar como hacerlo por favor?, gracias
    *I don’t see a tuto, i want a tuto, i need build a contact form, anyperson have a link for a tuto?, thanks

  12. Ricky says:

    This is good one. I have found another flash as3 contact us form which also seems to be nice and simple. If anyone of you guys want to try it.

    http://www.msinghinteractive.com/blog/tag/as3-contact-us-form-flash-tutorial/

    Cheers
    Ricky

  13. John62 says:

    So, that can be your opinion. ,

  14. Yohei Chino says:

    I currently have a website and wanted to know how I can use this form? Thanks.

  15. obi says:

    I get the following error:
    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
    at Error$/throwError()
    at flash.net::URLVariables/decode()
    at flash.net::URLVariables()

  16. Tony says:

    i’m sorry is it possible to have it works even in asp?

    thank you

    Tony

  17. Tim says:

    Thanks Jay, works great! (just as soon as I realized the bit about the fonts).

    • Demetrius says:

      The form works great! I’m struggling trying to figure out how to change the font and how to add Send to the arrow button. Does anyone know how to do this. I would greatly appreciate your assistance. And again great job on the form.

  18. matt says:

    hi. how can i change the send message button if its possible?

  19. annahface says:

    Hey, firstly, thank you. secondly, i’ve got a flash website that i’ve just made in AS3. exactly how do i put this onto my contact page?

  20. Jeff says:

    I try to publish the SWF, everything work but I can’t see any text on the send button, please help.

  21. Gyoon says:

    Thanks!! It would be helping me a lot!!!

  22. Jeannine says:

    LOVE it!!! Thank you soooo much! This works great and so nicely done! I have now been looking for a simple form for as3 for 1½ days… :-/ So grateful that I found yours :-)

    Cheers
    Jeannine

  23. jack says:

    Great flash contact form.
    Thanks a lot!

  24. Andersen says:

    The form is nice, but it does not understand Cyrillic alphabet. I am so sad.

  25. vasilev says:

    the form is great , but when i copy all of code to another fla file , and when publish it .. i cannot write in the fields . why ?

    • Peter K says:

      When I load the code from ContactForm.fla into a different .fla file (the code for a page of my website), I can no long input into the fields or see text.

      I saw that someone else had this problem as well.

      Suggestions?

      Thank you,

      • Peter K says:

        I am also getting two error messages: “Call to a possibly undefined method FontText and FontSmall on lines 240 and 370″ on ContactForm.as.

        Originally, I assumed that you meant var font:Font = new Font(), not var font:Font = new FontText(), so I changed the code.

        However, since I am unable to see as text in my form, I was wondering if the methods FontText and FontSmall are supposed to be imported from somewhere in addition to what has already been included?

        I use CS5, and perhaps the library location changed?

        Thoughts?

  26. Ack says:

    I was able to import the swf file into a Flash Catalyst file and it actually works. But I gotta ask you, HOW does this work? The FLA file consists of nothing! Just a blank file with AS3 script in first frame that merely assigns colors to the text, button, etc, but nothing else. How did you do this?

    Also, why is it that this can be imported into Flash Catalyst but when I write my own extremely simple contact form and import the swf file, it does not load when I put it on my server? I have to reload the site and then it appears, but yours appears the first time I go to my site. So many questions, I know, but your form is like finding a rock that defies gravity. You just have to ask how it works!

  27. Dannyw says:

    Hi Andrea,

    You asked me to contact you regarding a solution to your slow computer.
    Take a look at this tool I just found, tought you might be interested, here is the link: http://bit.ly/CleanupWindows

    Enjoy

  28. Lana says:

    Does anyone know how to customize the PHP for a godaddy site. When uploaded to the godaddy server, it says the message has been sent, but I don’t receive the e-mail.

    I’m pretty sure it’s an issue with godaddy. Any suggestions??

    • Mike says:

      I’ve though i read somewhere that godaddy disables the phpmail function. i can’t confirm this to be true though. I read it when i was trying to set up a mailing list.

      whether it’s true or not. i would suggest you find a better hosting service. I had nothing but problems and restrictions from godaddy.

  29. wiyono says:

    Hallooo….
    Can you tell me how to put on Gaia Framework……….

    Thank you
    Regard
    Wiyono

    this my email:
    wioyno04@yahoo.com

  30. george says:

    hey
    how can I add this to my flash website?

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.