A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash website creation..Please help me

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    16

    Flash website creation..Please help me

    Hi .. I am creating a website in flash cs6 with action script 2.0. I have a guestbook in it and I want the information to be sent to the mail id provided for the server. I am yet to purchase a server space so I don't know the mail id right now.
    I have an fla file, PHP file called 'contact.php' and ASP file called 'contact.asp' which I downloaded from a tutorial.

    They have given instance name for the name field as t1, email field as t2 and message field as t3.
    The Action script in the 1st keyframe of the movieclip is :

    rec="ice@template-help.com";
    serv="php";

    var fields_descriptions= Array ("",
    Array("t1", "your_name", "Name"),
    Array("t2", "your_email", "E-mail"),
    Array("t3", "message", "Message")
    );

    function reset_txt(name,name2,value) {
    path=eval(_target);
    path[name2]=value;

    this[name].onSetFocus=function() {
    path=eval(_target);
    if(path[name2]==value) { path[name2]="";}
    }

    this[name].onKillFocus=function() {
    path=eval(_target);
    if(path[name2]=="") { path[name2]=value;}
    }
    }


    for (i=1; i<=fields_descriptions.length; i++) {
    reset_txt("t"+i, fields_descriptions[i][1], fields_descriptions[i][2]);
    }


    Contact.php file

    <br />
    <b>Warning</b>: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in <b>/home/tejivide/public_html/2/sources/flash/contact.php</b> on line <b>16</b><br />
    <br />
    <b>Warning</b>: current() [<a href='function.current'>function.current</a>]: Passed variable is not an array or object in <b>/home/tejivide/public_html/2/sources/flash/contact.php</b> on line <b>23</b><br />
    Your message was successfully sent!<script>
    resizeTo(300, 300);
    </script>

    Contact.asp file

    <%
    for i=1 to 7
    message=Request("message")
    next
    message=message + Request("message")
    smtpServer = "enter your SMTP SERVER HERE"
    smtpPort = 25


    name = Request("Your_Name:")
    Set myMail = CreateObject("CDO.Message")
    myMail.Subject = "from " & name
    myMail.From = Request("Your_Email:")
    myMail.To = Request("recipient")
    myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
    myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
    myMail.Configuration.Fields.Update
    myMail.Send

    %>


    Can you please help me in editing it in such a way that it should be sent to my server email id. If u can just paste the edited code here it would be of great help. thanku so much..

  2. #2
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    You jus ask ask ask and never say thank.
    you change subjects too, add things and never say what or how, send files attach files, and be thanking.

    bye

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    16
    Quote Originally Posted by Terrencing View Post
    You jus ask ask ask and never say thank.
    you change subjects too, add things and never say what or how, send files attach files, and be thanking.

    bye
    Please I really need help

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center