Flash & php email tut help

I am trying to modify this tutorial: http://www.kirupa.com/developer/actionscript/flash_php_email.htm

I am trying to make the code into a function so that I can place it in a frame instead of attaching it to a mc. I would appreciate any help.

problem areas:

onClipEvent(data){
this.sendSent.text = “MESSAGE WAS SENT”;
this.textEmail.text = “EMAIL”;
this.textSubject.text = “SUBJECT”;
this.textName.text = “NAME”;
this.textMessage.text = “MESSAGE”;
}

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
this._parent.form.loadVariables(“email.php”, “POST”);
}

Here is the file if that will help. (Its flash mx 2004 format.)

Hey Headznet,

I know this is off topic but>

There is a really good php emailer at http://www.bigjolt.com/ goto the lab and hit the php_mailer. I use it all the time it is great, it also has a auto responder on it!! I hope this might help,

[color=black][font=Arial][font=Times New Roman][size=3]Thanks for the idea Flash Playa, but I’am kind of knew to flash and really new to php. [/size][/font][size=3][font=Times New Roman]So I am trying to learn the small stuff first for a couple more months.[/font][/size][/font][/color]

Well I can help you gettin workin, there really is nothin that hard. I can walk you through the steps;)

[font=Times New Roman][size=3]Ok, thank you. I would like to make the movie size smaller and I want to have all the actionscript in and on frame 1. The only problem I am having with that is when it confirms that the input fields are correctly filled, it boots you to frame 5 and gives this:[/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[size=3][font=Times New Roman]loadVariablesNum(mailform, 0);[/font][/size]

[font=Times New Roman][size=3]answer = confirm;[/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[font=Times New Roman][size=3]Then it immediately goes into a loop on frame 6:[/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[size=3][font=Times New Roman]if (answer != confirm) {[/font][/size]

[size=3][font=Times New Roman] gotoAndPlay (“done”);[/font][/size]

[font=Times New Roman][size=3]}[/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[font=Times New Roman][size=3]I really don’t need help with arranging the input and dynamic fields onto one frame, but I do need help with the AS.[/size][/font]

Why do you want all the actions on 1 frame? just dump it into a clip and place it on the timeline…

Thanks for the advice on using this email system. I have figured out how to do what I needed to be done. I am uploading the file so you can see if it is right.

I had spoken to soon. I have a little problem with the AS recieving information from the php file when I put it in a MC. It still sends the email to my account and the reply to the sender, but the “answer” var dynamic text box only gives the message:

please wait for confrimation…

I’ve atached the file.

Hey headznet,

Yeah I had that same prob… I just made a clip that say’s message sent;)

Thanks, Flash Playa I’ll just do the same thing.