# Flash + php form working but one problem

**URL:** <https://forum.kirupa.com/t/flash-php-form-working-but-one-problem/183816>\
**Category:** Uncategorized\
**Created:** [March 30, 2006, 9:54am UTC](https://forum.kirupa.com/t/flash-php-form-working-but-one-problem/183816 "2006-03-30T09:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frez](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@frez](https://forum.kirupa.com/u/frez)\
**Post date:** [March 30, 2006, 9:54am UTC](https://forum.kirupa.com/t/flash-php-form-working-but-one-problem/183816/1 "2006-03-30T09:54:36Z")

</div>

ok … i’ve got the flash + php form working (as described  
in the kirupa tutorial) … email works! 🙂

however, instead of a two frame scene where the form is  
on frame 1 and the feedback is on frame 2, i would like  
to have a one frame scene and simply display a new  
movie clip after the form has been submitted.

the problem:

1. the browser keeps saying ‘transferring data from  
[domain.com](http://domain.com)’ even after the email has been sent.

2. in the onClipEvent routine for the ‘form’ movieclip, i  
am setting the visibility of another movieclip to 1, but  
it doesn’t seem to work. a trace command confirms  
that the onClipEvent routine is getting called, but  
I’m not sure why functions or commands don’t work.

---

<div class="post-metadata">

**Author:** ![frez](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@frez](https://forum.kirupa.com/u/frez)\
**Post date:** [March 30, 2006, 11:29am UTC](https://forum.kirupa.com/t/flash-php-form-working-but-one-problem/183816/2 "2006-03-30T11:29:33Z")

</div>

ok #2 is fixed. discovered that it was a scope problem. adding a ‘\_root.’ prefix to the mc’s and functions fixed it.

would be nice to know why #1 happens though.

---

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [March 30, 2006, 11:33am UTC](https://forum.kirupa.com/t/flash-php-form-working-but-one-problem/183816/3 "2006-03-30T11:33:43Z")

</div>

> [@frez](#):
>
> ok … i’ve got the flash + php form working (as described  
> in the kirupa tutorial) … email works! 🙂
> 
> however, instead of a two frame scene where the form is  
> on frame 1 and the feedback is on frame 2, i would like  
> to have a one frame scene and simply display a new  
> movie clip after the form has been submitted.
> 
> the problem:
> 
> 1. the browser keeps saying ‘transferring data to  
> [domain.com](http://domain.com)’ even after the email has been sent.
> 
> 2. in the onClipEvent routine for the ‘form’ movieclip, i  
> am setting the visibility of another movieclip to 1, but  
> it doesn’t seem to work. a trace command confirms  
> that the onClipEvent routine is getting called, but  
> I’m not sure why functions or commands don’t work.

Hi frez,

1. 

```auto
onClipEvent(data){
      _root.nextFrame();
}

```

really sends it to PHP script which sends it to your email, and in my case too, browser is still preloading something… even though email already arrived to my inbox. But how to get response from the server that variables have been sent? no clue, maybe you can have a look at LoadVars.send() or LoadVars.load(), but i’m not sure you can find something helpful there.

1. do not use 1 or 0, instead use true and false:

```auto
mc._visible = false;
mc._visible = true;

```

EDIT #2: hehe, you just did it! 😛

If that doesnt help, post your FLA 🙂
