Help with Flash8 code

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Perseid
Padawan Learner
Posts: 357
Joined: 2005-03-10 09:10am
Location: Somewhere between Here and There

Help with Flash8 code

Post by Perseid »

Trying to design a website using Studio 8, however I've come across a snag. I can't work out the code for a "Contact" form in Flash and it's driving me mad. The code I've got at the moment is:

Code: Select all

bSubmit.onRelease = function()
{
        email();
}
function email()
{
        var sMessage = "Name: " + tName.text + "\nE-mail: " + tEmail.text + "\Subject: " + tSubject.text + "\nMessage: " + tMessage.text;
        lvSend = new LoadVars();
        lvReply = new LoadVars();
        lvSend.msg = sMessage;
        lvSend.address = "enquiry@ittrainingtorbay.co.uk"; 
        tName.text = "Sending Message…";
        tEmail.text = "";
		tSubject.text = "";
        tMessage.text = "";
        lvReply.onLoad()
        {
                        tName.text = "Message Sent";
        }
        lvSend.sendAndLoad('mail.php', lvReply, 'POST');
}
But I keep getting error messages when I try publishing, and they don't work when I try them on my site.
Image
Post Reply