Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delay behaviour of button in contact form

Status
Not open for further replies.

flasher123

Technical User
Dec 20, 2006
1
GB
Hiya,

Here is the curent code for my contact form.

Code:
bSubmit.onRelease = function()
{
        email();
}
function email()
{
        var sMessage = "Name: " + tName.text + "\nE-mail: " + tEmail.text + "\nComments: " + tComments.text;
        lvSend = new LoadVars();
        lvReply = new LoadVars();
        lvSend.msg = sMessage;
        lvSend.address = "email@email.com"; //Change this to your e-mail.
        tName.text = "Sending Message…";
        tEmail.text = "";
        tComments.text = "";
        lvReply.onLoad()
        {
                        tName.text = "Message Sent";
        }
        lvSend.sendAndLoad('mail.php', lvReply, 'POST');
}

Now, my question is once the form has been filled out and the visitor hits the submit button i would like the "Contact Form" to jump to a point in the timeline to run and play a motion tween which results in the contact form moving off the main movie.

any assistance wil be greatly appreciated.

Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top