# Script troubles- form.loadVariables

**URL:** <https://forum.kirupa.com/t/script-troubles-form-loadvariables/156407>\
**Category:** flash\
**Created:** [July 25, 2005, 5:24pm UTC](https://forum.kirupa.com/t/script-troubles-form-loadvariables/156407 "2005-07-25T17:24:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davese](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Davese](https://forum.kirupa.com/u/Davese)\
**Post date:** [July 25, 2005, 5:24pm UTC](https://forum.kirupa.com/t/script-troubles-form-loadvariables/156407/1 "2005-07-25T17:24:49Z")

</div>

I’ve got a bit of a problem here.

In Flash i’ve created an email form. The form is in a movie clip (emailformholder) on an information page.

On the website this information page is loaded into a movie clip named content in the main website window. It sends the information off fine but doesn’t move to the “send” frame:

on (release) {  
form.loadVariables(“email.php”, “POST”);  
emailformholder.gotoAndStop(“sent”);  
}

but when i add the root or parent codes to enable the gotoandstop “sent” to work (shown below) the email stops getting sent whilst the movie clip moves to “sent” state?

on (release) {  
form.loadVariables(“email.php”, “POST”);  
\_parent.emailformholder.gotoAndStop(“sent”);  
}

on (release) {  
form.loadVariables(“email.php”, “POST”);  
\_root.content.emailformholder.gotoAndStop(“sent”);  
}

i tried adding the root and parent extensions to the

form.loadVariables(“email.php”, “POST”);

but couldn’t get that to work either.

Any actionscript expert willing to tell me where im going wrong???  
cheers dave

any questions give us an e-mail. cheers
