# Button only for flash email with PHP

**URL:** https://forum.kirupa.com/t/button-only-for-flash-email-with-php/265354
**Category:** flash
**Created:** [July 7, 2008, 11:48pm UTC](https://forum.kirupa.com/t/button-only-for-flash-email-with-php/265354 "2008-07-07T23:48:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![circleof5ths](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@circleof5ths](https://forum.kirupa.com/u/circleof5ths)
#### Post date: [July 7, 2008, 11:48pm UTC](https://forum.kirupa.com/t/button-only-for-flash-email-with-php/265354/1 "2008-07-07T23:48:48Z")

</div>

[FONT=Arial]I have created the sample “[COLOR=#003366] **Flash** -Based[/COLOR][COLOR=#003366] Email Form Using PHP” that [kirupa.com](http://kirupa.com) has posted and explained. I created one myself, works great. [/COLOR][/FONT]

[FONT=Arial][COLOR=#003366]My question is: Do I have to use a “Button” object for “[/COLOR][/FONT][FONT=Arial]form.loadVariables(“email.php”, “POST”);” to function, meaning, to pull the variables properly. [/FONT]

[FONT=Arial]I have a template already created with an email/contact section with excellent animation. The “Send” object they used is a Document object with action script for "on (rollOver){this.gotoAndPlay(“s1”);}[/FONT]  
[FONT=Arial]on (releaseOutside, rollOut){this.gotoAndPlay(“s2”);}[/FONT]  
[FONT=Arial]on (release) {…etc.[/FONT]

it triggers a movie clip animation for that document object and it looks like a button but, its a document.

If I add [FONT=Arial][COLOR=#003366]"[/COLOR]form.loadVariables(“email.php”, “POST”);" for the “on (release)” function on this document, it fails.[/FONT]

[FONT=Arial]I’m assuming I need a “Button” object since flash sees the button "on (release) using the “loadVariables” string to pull the var from the text boxes.[/FONT]  
[FONT=Arial]Is there a way to action script the document object to do this. If so, I don’t have to recreate all the animation. Still a newbie.[/FONT]

[FONT=Arial]Thanks in advance, and drill me on info that I failed to provide.[/FONT]

---

<div class="post-metadata">

### Author: ![s5nelson](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@s5nelson](https://forum.kirupa.com/u/s5nelson)
#### Post date: [July 14, 2008, 10:31pm UTC](https://forum.kirupa.com/t/button-only-for-flash-email-with-php/265354/2 "2008-07-14T22:31:42Z")

</div>

Yes, in this particular case you do need a button. It’s safe to assume that any time you see the on(release) function a button is involved. Hope this helps!
