PDA

View Full Version : errors.



hotwireddriveby
June 18th, 2004, 06:43 PM
im making a flash based email system on my website. ive been using this tutorial (http://www.kirupa.com/developer/actionscript/flash_php_email.htm)


theses are the errors i have been getting

**Error** Symbol=send, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
form.loadVariables("email.php", "POST");
**Error** Scene=Scene 1, layer=form, frame=1:Line 1: Statement must appear within on handler
form.loadVariables("emailmarc.php", "POST");
Total ActionScript Errors: 2 Reported Errors: 2



I would attach the file, but its 6kb too big. ask me and i will send it to you

ScriptFlipper
June 18th, 2004, 08:06 PM
this means that you have placed these two lines of code...

form.loadVariables("email.php", "POST");
form.loadVariables("emailmarc.php", "POST");

... directly on a symbol, instead of placing it in the timeline (on a frame).
The error message is saying that you need to place the code within an on handler, which means that this...

on (release) {
form.loadVariables("email.php", "POST");
form.loadVariables("emailmarc.php", "POST");
}

...would get rid of the error - for example.

I hope I'm describing it so that you understand it. :)

hotwireddriveby
June 18th, 2004, 10:20 PM
it still says error.

Ordinathorreur
June 19th, 2004, 12:19 AM
Where do you have this code?

Send it to my mail address and I'll see what I can do (check my profile)

ScriptFlipper
June 19th, 2004, 07:42 AM
maybe you're looking at the wrong lines of code?
cause I'm sure that error is caused by something similar to what I described

webbit
June 23rd, 2004, 10:47 PM
this means that you have placed these two lines of code... <snip>... directly on a symbol...<snip> Sorry it isn't working for the thread starter, but that was exactly what I needed. Thank you, and Google!

ScriptFlipper
June 24th, 2004, 04:43 AM
you're welcome :)