PDA

View Full Version : simple email form problem



J_S
January 9th, 2005, 06:38 PM
I have followed the "Flash-Based Email Form Using PHP by senocular " tutorial on this site, and have got it to work. However, when my Flash email form .swf is loaded into another Flash movie, when the user clicks 'Send' , the email sends but the flash movie is not moved onto the next frame (where it says thanks for sending an email etc). This is the ActionScript which is applied to the form:

onClipEvent(data){
// show email sent screen
_root.nextFrame();
}

I dont understand why this works when the email swf is played on its own, but doesnt work when loaded into another movie. I have placed this line in frame 1 but still no joy:

this._lockroot = true;

any help please?

zero_one
June 21st, 2005, 03:49 AM
to make it work i wrote the actionscript for the button as:

on (release) {
loadVariablesNum("email.php",0, "POST");
nextFrame();
}

and put the form fields on the main timeline, together with the button, not in another movieclip as shown in the tutorial on this page.

now it is working fine.