# Flash & php email tut help

**URL:** <https://forum.kirupa.com/t/flash-php-email-tut-help/62300>\
**Category:** Uncategorized\
**Created:** [August 26, 2004, 5:37pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300 "2004-08-26T17:37:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![headznet](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@headznet](https://forum.kirupa.com/u/headznet)\
**Post date:** [August 26, 2004, 5:37pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/1 "2004-08-26T17:37:25Z")

</div>

I am trying to modify this tutorial: [http://www.kirupa.com/developer/actionscript/flash\_php\_email.htm](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”);  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 6:24pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/2 "2004-08-26T18:24:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 7:00pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/3 "2004-08-26T19:00:25Z")

</div>

Hey Headznet,

I know this is off topic but\>

There is a really good php emailer at [http://www.bigjolt.com/](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,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 11:51pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/4 "2004-08-26T23:51:18Z")

</div>

[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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 12:00am UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/5 "2004-08-27T00:00:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 12:37am UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/6 "2004-08-27T00:37:42Z")

</div>

[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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 12:49am UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/7 "2004-08-27T00:49:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 1:09am UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/8 "2004-08-27T01:09:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 2:45am UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/9 "2004-08-27T02:45:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 4:52pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/10 "2004-08-27T16:52:29Z")

</div>

Hey headznet,

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 9:58pm UTC](https://forum.kirupa.com/t/flash-php-email-tut-help/62300/11 "2004-08-27T21:58:21Z")

</div>

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