Flash Contact form for beginner

Hello,
I have been searching online for a tutorial to create a contact form on my flash website. I am using Flash CS3 and ActionScript 3. I am not fluent in ActionScript. I was looking to copy and paste the code and change the information to my own. Any help would be really appreciated.

You should be able to find a number of tutorials if you search Google using "AS3 contact form tutorial"
https://www.google.com/search?q=AS3+contact+form+tutorial

Similar Messages

  • Flash contact form key issue

    Hi my flash contact form will only accept certain keys, Like zxvywghjk.. and number keys will not type into it any ideas???
    motionstills.co.uk

    Forms in Flash use Input text objects. You have to embed the font or fonts that you want to use for those text objects. It sounds like either you embedded a font that doesn't contain a full set of glyphs or that a restricted set of glyphs was set in the Font Embed window.

  • Using PHP with Flash (contact form)

    I am trying to get a contact form on a flash site to work and
    for some reason the PHP isn't forwarding the message to my email.
    Below is the flash code I have used as well as the document I have
    saved as contact.php. Thank you so much for the help. This is the
    last thing I need to complete for the site and I just can't seem to
    get it right. Thanks.
    Flash Code For the Submit Button:
    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    if (this._currentframe<this._totalframes) {
    this.nextFrame();
    } else {
    if (this._currentframe>1) {
    this.prevFrame();
    on (release) {
    this._parent.getURL ("contact.php","_blank","GET");
    this._parent.name = "Your Name:";
    this._parent.email = "Your Email:";
    this._parent.phone = "Your Phone Number:";
    this._parent.text4 = "e-mail:";
    this._parent.message = "Your Message:";
    Here is what I have for Contact.php:
    <?php
    $your_name = $_GET['name'];
    $your_email = $_GET['email'];
    $your_phone = $_GET['phone'];
    $your_message = $_GET['message'];
    $recipient_email = "[email protected]";
    $subject = "from " . $your_email;
    $headers = "From: " . $your_name . "<" . $your_email .
    ">\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1';
    $content = "<html><head><title>Contact
    letter</title></head><body><br>";
    $content .= "Name: <b>" . $your_name .
    "</b><br>";
    $content .= "E-mail: <b>" . $your_email .
    "</b><br><hr><br>";
    $content .= "Phone: <b>" . $your_phone .
    "</b><br>";
    $content .= $your_message;
    $content .= "<br></body></html>";
    mail($recipient,$subject,$content,$headers);
    ?>
    <html>
    <body bgcolor="#282E2C">
    <div align="center"
    style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
    Your message was sent. Thank you.
    </div>
    </body>
    </html>
    <script>resizeTo(300, 300)</script>

    well...that's true..I wanted "name" to be cleared when
    clicked...this version I found doesn't clear "name" when clicked,
    but it needs selected and erased manually...anyway..it's better
    then nothing...
    Reason I want this is because I'm using a design that is not
    giving me much space and I have to trick the low space with this
    option.
    If you want I can send you the fla to get a better
    picture...I believe you deserve it :)

  • CAPTCHA in Flash Contact form

    Hello every one.
    I wonder if anyone have worked with CAPTCHA in contact form, it's will be great for anty spam. If some one have a template or a solution for this please write here or PM
    Kind regards,
    Alexei

    http://www.google.com/search?hl=en&source=hp&q=flex+captcha&meta=&aq=f&oq=
    http://www.google.com/search?hl=en&q=flash+captcha&aq=f&oq=&aqi=g1g-m1

  • Flash Contact form with Php Error

    Hi again (".)
    I've making this contact form on flash & i got  the script  for the action script but i'm unable to integrate a php script that would send the mail from my form.
    I'm using two input feilds with instance names as theEmail and theMessage
    Would relly appreciate it if i culd get some help on it. thank you so much.
    Here is the action action script code i'm using -
    snd_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              if (theEmail.text == "" || theMessage.text == "")
                        theFeedback.text = "Please fill in all fields.";
              else
                        // create a variable container
                        var allVars:URLVariables = new URLVariables();
                        allVars.email = theEmail.text;
                        allVars.message = theMessage.text;
                        //send info to a URL
                        var mailAddress:URLRequest = new URLRequest("mail.php");
                        mailAddress.data = allVars;
                        mailAddress.method = URLRequestMethod.POST;
                        sendToURL(mailAddress);
                        theFeedback.text = "Thank You!";
      theEmail.text = "";
                        theMessage.text = "";

    Actaully is i got this Action script from a tutorial and i learnt from it but the mail.php was not part of the tutorial.
    Would you be able to provide me a php script based on the instances names i mention above?

  • PHP files and Flash contact form

    Hello,
    I am creating a website in flash CS4 and I made a contact form and when I test the site out, I can type and click the submit button, so everything is fine there but it doesn't go to anything. Now I know I need a code to tell the contact form where to go, but I can't find one that works, or I may be doing something wrong.  I also have been reading about PHP but I am not sure what that is. I found a site that said to put this code in the actions panel.
    on(release){
        getURL("http://www.mail.menaceaudio.com", "", "POST");
    The www.mail.menaceaudio.com is the site for the companies email.
    So when I test it out this error comes up:
    1087: Syntax error: extra characters found after end of program.

    The code you show is AS2, not AS3. Try searching for 'as3 form php' and you should find plenty of info.
    PHP is a server-side scripting language. You put PHP files on your server and can then call them from Flash...

  • How can I create a contact form for sending emails in SharePoint Online?

    Dear Forum members,
    I´ve got a question about creating a custom contact form to send emails for a public site in SharePoint online.
    Could someone help us with some advise?
    In advance, thank you very much.
    Kind regards,
    Frits

    You can create Custom list and make alerts enable to send emails as soon as contact created.
    Bala

  • Contact form for iweb?

    Im just starting to play with the new iweb 08. The contact links are just simple mailto links. Is there a way to add a contact form? Mailto links tend to attract a lot of spam.
    Thanks

    I have used some of the forms from Form Logix...
    http://www.formlogix.com/CreateWebForms.aspx
    They have a wide variety and are very easy to use. The downside is that you are required to have their logo on them - to offset the cost of the free email service I guess.
    This method of getting form information is a lot quicker than setting up your own form mail on a server. You can direct the replies to any email account on your Mac.

  • GoDaddy PHP Flash Contact Form Woes...

    Hello! 
    I hope someone can help me.
    I also having terrible problems getting my Mailing List Subscription form to work on my Flash Site. I'm also with Godaddy and they have basically been zero help so far. I'm using CS3 and AS 2.0.
    My form just has 2 fields for name and email and then a submit button. The strange thing is that the way I have it now, I am able to receive the subscription emails if I test it locally from within Flash. But, as soon as I upload it to Godaddy it stops working! What's up with that?
    However, even though when I test it from within Flash and receive the email, the "success" or "failed" response part still doesn't work for my form.
    I've spent so many hours on this... Please help!
    Here's my PHP:
    <?PHP
    ini_set('SMTP', 'relay-hosting.secureserver.net');
    $theName = $_POST['theName'];
    $theEmail = $_POST['theEmail'];
    $to  = '[email protected]' . ', ';
    $subject = "Newsletter Subscription";
    $message = "Name: " .$theName;
    $message .= PHP_EOL . PHP_EOL ."Email: $theEmail";
    $headers = "From: $theEmail";
    $headers .= "\rReply-To: $theEmail";
    $sentOk = mail($to,$subject,$message,$headers);
    echo "sentOk=" . $sentOk;
    ?>
    and here's my AS 2:
    stop();
    var senderLoad:LoadVars = new LoadVars();
    var receiveLoad:LoadVars = new LoadVars();
    sender.onRelease = function() {
    senderLoad.theName = theName.text;
    senderLoad.theEmail = theEmail.text;
    senderLoad.sendAndLoad("http://www.website.com/send.php",receiveLoad, "POST");
    receiveLoad.onLoad = function() {
    if(this.sentOk) {
    _root.gotoAndStop("success");
    else {
    _root.gotoAndStop("failed");
    theName.tabIndex = 1;
    theEmail.tabIndex = 2;

    Actaully is i got this Action script from a tutorial and i learnt from it but the mail.php was not part of the tutorial.
    Would you be able to provide me a php script based on the instances names i mention above?

  • Problems of forms for beginner

    I am new to orcale portal. Here is some simple questions. I hope someone will help me. Thanks in advance.
    How to detect duplicate records when insert or update?
    e.g. I created a form based on table/view. My requirement is when I am doing insert or update, it will check the database for duplicate record. If duplicate is found, It will generate a user defined meaningful message and stops processing else submits the form. Can this be done by adding PL/SQL codes with 'insert' button?
    Another question is, I want a 'preview' button to show the user the content that he just filled in before submitting the content. e.g, if a user put some HTML codes in one field of the form, he is given the preview before he submitting the content. My question is, if I use javascripts event handlers for the 'preview' button, how to get the value that the user put in from the session?

    This first problem is solved by using 'p_session.get_value' and 'select' in PL/SQL Button Event Handler to check the value.
    For the second problem, if JavaScript Event Handlers is used, how to get the input value (is there any function such as 'p_session.get_value')? Or, if PL/SQL Button Event Handler is employed, I am able to get the input value, however, htp.script does not work here.
    For example, I put such a simple line in the 'PL/SQL Button Event Handler' for a button, say 'CLOSE',
    htp.script('window.close();', 'Javascript');
    It does not work. I checked the source for the displayed page, there's no 'onClick' event for button 'CLOSE', which means no javascript is generated from htp.script(). What's the problem?

  • Include adobe flash in forms for RIA

    Hi everybody.
    I have a question.
    I know that some Forms & Reports programmers have included Flex and maybe also Adobe Flash into their Forms Modules.
    Anybody that know something about this can give me some links about this.
    Regards everybody.

    Hi selezeus
    Anybody that know something about this can give me some links about this.Yesss i do know 1 of Embed Animated Flash Objects (*.swf file) in Oracle Forms.
    But u should mention ur forms version at least embeded with ur post... :)
    Hope this helps...
    Regards,
    Amatu Allah

  • Is SWFOBject messing up my Flash/PHP 'contact form'?

    Hi all,
    First post, and first project using Flash!
    Here's the
    page I'm having problems with...
    It's an email contact page that uses a Flash contact form
    that I purchased from iStockphoto. The swf uses a PHP script that I
    keep in the same location on my server as the swf. The PHP sends
    the email to my specified address. In theory that should work fine,
    but in the interests of keeping things working across browsers, and
    maintaining my Validation, I've been calling the swf using
    SWFObject.
    However, something is screwed up. When I click on 'Send' on
    the successfully embedded Flash form, nothing happens. Neither my
    hosting providers nor the author of the flash have been able to
    work out why - although they both agree that SWFObject may have
    something to do with it.
    Please bear in mind that I'm REALLY new to Flash, although
    I'm by no means a technonewbie - tell me what I'm looking for and
    what to change and I can keep up, but someone posted the following
    on another forum I frequent and I have no idea what it means:
    quote:
    Submitting a form relies on either a post or get method,
    maybe SWFObject needs specific configuration to do this. If it
    doesn't support either of those two methods you may need to use an
    interim piece of javascript or something to accept the form
    variables then call your sendmail.
    Help much appreciated!
    Owen

    kglad,
    The actionscript calls the PHP form but dosen't post any information, it loads in the browser and I get the email but nothing in it?
    I'm just looking for the correct Actionscript to paste into flash and hopefully get it working. Thanks for the help.

  • Setting up Contact forms on AS3, Flash CS5????

    Does anyone have a clear answer for me please, I have been through Training with Trani on HD and also with the Lynda.com package, as I try to make the second contact form - the program tells me that there is a function repitition so what must I do cause I am making more than 1 contact form for my website?
    Does someone have an easy solution for me to go through cause its been like a week and I am tired of this silly issue, my website is done and now waiting to publish yet this error is not helping at all. Thanks for all the help...

    If you understand what I am saying I do not see the challenge of which you speak. You can rename functions to anything you like, just not the same name as another function.  The only thing I can imagine is that you do not understand that functions you see defined in code are named by whoever wrote the code.  So if you see a function like...
    function someWords(){
       // code
    that is a function that you can rename as you please...
    function someOtherWords(){
       // other code
    so long as you change whatever calls upon that function as well.
    But if the code within the functions is not going to change, then you don't need to have two functions defined to do the same thing anyways... just share the same one for both forms

  • Problem with contact form

    Hi-
    I found a contact form for my Flash website but it's not working properly. It uses ActionScript 3 and PHP, both of which I don't know much about. Because of this, I can't pinpoint the problem or how to fix it. Here's what's going on:
    1) Each field in the form only allows 3 characters and no special characters such as @ _ ! . , etc...
    2) When the user goes to the next field in the form, the previous field appears blank but the when clicking on that again, the original text appears.
    3) When submitting the form, it just keeps saying "in progress" and never shows the confirmation text nor does the email get sent. There is an HTML file included with this form but I am not sure if I need to put that in as I have embedded this form into an SWF file so I don't think I need that code but please let me know if I am wrong about this.
    I am posting both the AS code and PHP code below.. if someone can help me figure this out I would greatly appreciate it. I am not sure which file the problem is in. If someone here doesn't know PHP then at least see the AS code and let me know if the problem is in that or not. That way I can pinpoint which file the problem is coming from and then seek further help if needed. To see the form in action, go here: http://www.poojasdesigns.com/ and click on "Contact Me".. here are the codes:
    ActionScript 3.0
    //presistant reference to this movie's mail timeline:
    var mainTL:MovieClip = this;
    //start off with submit button dimmed
    submit_mc._alpha = 40;
    //create the LoadVars objects which will be used later
    //one to send the data...
    var dataSender:LoadVars = new LoadVars();
    //and one to recieve what comes back
    var dataReceiver:LoadVars = new LoadVars();
    create listener for Key Object
    this is just a U.I. thing - "wakes up" the submit button
    when all fields have at least some content
    var formCheck:Object = new Object();
    formCheck.onKeyUp = function() {
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              //clear any alert messages
              alert_txt.text = '';
              //enable the submit button
              submit_mc._alpha = 100;
         } else {
              //remain disabled until all fields have content
              submit_mc._alpha = 40;
    Key.addListener(formCheck);
    /*#######SET STYLES FOR TEXT FIELDS#######*/
    //define styles for both normal and focussed
    //set hex values here that work with your site's colors
    var normal_border:Number = 0x000000;
    var focus_border:Number = 0xFA8D00;
    var normal_background:Number = 0xFFFFFF;
    var focus_background:Number = 0xE9E3E3;
    var normal_color:Number = 0xFFFFFF;
    var focus_color:Number = 0x000000;
    //create an array containing the fields we wish to have styles applied to
    inputs=[name_txt,email_txt,subject_txt,message_txt];
    a "for in" loop now iterates through each element in the "inputs" array
    and applies our "normal" formatting to each input text field
    for( var elem in inputs) {
         inputs[elem].border = true;
         inputs[elem].borderColor = normal_border;
         inputs[elem].background = true;
         inputs[elem].backgroundColor = normal_background;
         inputs[elem].textColor = normal_color;
         /*this takes care of applying the "normal" style to each of the four input fields;
              the following TextField prototypes handle highlighting when an input field
              gains focus and resetting to normal when a field loses focus*/
         inputs[elem].onSetFocus = function() {
              this.borderColor = focus_border;
              this.backgroundColor = focus_background;
              this.textColor = focus_color;
         inputs[elem].onKillFocus = function() {
              this.borderColor = normal_border;
              this.backgroundColor = normal_background;
              this.textColor = normal_color;
    //finally: make the first field (name_txt) selected when the movie loads
    Selection.setFocus(name_txt);
    /*DEFINE SUBMIT BUTTON BEHAVIOR*/
    submit_mc.onRelease = function() {
         //final check to make sure fields are completed
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              alert_txt.text='';//clear any previous error messages or warnings
              //advance playhead to frame 2 - the "processing" message
              mainTL.play();
              //assign properties to LoadVars object created previously
              dataSender.name = name_txt.text;
              dataSender.email = email_txt.text;
              dataSender.subject = subject_txt.text;
              dataSender.message = message_txt.text;
              //callback function - how to handle what comes abck
              dataReceiver.onLoad = function() {
                   if (this.response == "invalid") {
                        mainTL.gotoAndStop(1);
                        alert_txt.text = "Please verify your email address - it appears to be incorrect."
                   } else if (this.response == "passed") {
                        mainTL.gotoAndStop(4);
              //now send data to script
              NOTE: the line below presumes the Flash swf file and php script are in the
              SAME DIRECTORY on your server. If this is not the case (if for example you
              wish to put the php script along with other similar items in a "scripts"
              directory) you MUST MODIFY THE PATH. Otherwise the Flash movie won't be
              able to locate the php script.
              dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
         } else {
              //warning if they try to submit before completing
              alert_txt.text = "Please fill out all the fields before submitting the form.";
    PHP
    <?php
    //create short variable names
    $name=$_POST['name'];
    $email=$_POST['email'];
    $subject=$_POST['subject'];
    $message=$_POST['message'];
    $name=trim($name);
    $email=trim($email);
    $subject=StripSlashes($subject);
    $message=StripSlashes($message);
    /*my email address - dummy address inserted for privacy in this forum*/
    $toaddress='[email protected]';
    if (preg_match ("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $email)) {
    mail($toaddress,$subject,$message,"From: $name <$email>\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
    //clear the variables
    $name='';
    $email='';
    $subject='';
    $message='';
    echo "response=passed";
    else {
    echo "response=invalid";
    exit;
    ?>
    Please let me know how to proceed. Thanks so much!
    *Pooja*

    You say you don't know much about AS3, and that you have embedded this form into an swf.  In what manner did you embed it, and what version of AS does the swf use?  Have you tried using the form in the page that was provided as a standalone test to see if it works?

  • Contact Form won't display input text

    Hi,
    I'm trying to create a flash contact form that sends the
    user's message on enter key. Therefore I need you to help me do
    this and also help me understand why my form isn't displaying right
    when I have a mask for it.
    To get a better picture of the problem
    here you can
    see how the form should look like and
    here you can
    see the same form, but with the mask

    I'm not sure I understand what you mean by "embed the fonts
    in each of the text fields"
    Please have a look at the .fla file:
    http://www.claudiudesign.org/test/sterg.fla
    (this fla has the mask; if you remove it you will be able to
    see the working contact form)
    It won't take you more than 1 min to understand what's up
    with it if your good at this.
    Thing is I'm behind the schedule with this and I have to
    solve the problem as soon as possible.
    Thank You

Maybe you are looking for

  • Illustrator CC Suddenly Crashes when mouse cursor moves a drawn object

    I've relaunched and tried re-installing Illustrator CC twice and didn't solve this unexpected crash problem. It has never happened since I paid for this software months ago. Illustrator won't crash when: - using the keyboard arrows to manually move a

  • Performance tunning in ADF

    Hi, I am using JDeveloper version 11.1.1.2.0 and weblogic server 10.3.2.But Problem is I have lot of records the Database ,iApprox 1 lacs or above Data .its is taking more time to fetch the Data. In Performance Tunninng,In AM i have added LoadCompone

  • ITunes volume control issue?

    Ever since I updated my Mac to iTunes 8.2.1 I've noticed that the volume control in iTunes is fixed on about 40% volume. I can drag the control up or down and it changes the volume but it snaps back to where it was when I let go. I can still change t

  • Tecera A4 Wrong Image Size for Bios update....

    using the site tools to id the machine to bios...it led me to a file named...sm45v20.exe, which i downloaded & attempted to update the bios...via floppy / usb drive method. Done this with other machines (not this one) hundreds of times before...(fix

  • File lost in logic pro x project

    Can I find lost audio tracks from a project that I bounced?