PDA

View Full Version : Statement must appear within on handler


oddo jespersen
02-19-2003, 02:26 PM
Statement must appear within on handler!

i get this message allmost every time i write a code, even in normal mode and im soo pluckin tierd of it, i asume it verry verry easy thats why its soo annoyng

pleace help me

snapple
02-19-2003, 03:42 PM
oddo jespersen,

Yeah, Flash is just telling you that your code (attached to an MC) must be contained in one of the following clip events :

onClipEvent (enterFrame) {

//statement here

}

enterFrame can be replaced with, load, Unload, Mouse down, Mouse up, Mouse move, Key down, Key up, Data.

snapple

bit-101
02-19-2003, 04:13 PM
unless you are specifically trying to add code to a movie clip or button, you should click on a time line frame before adding code.

oddo jespersen
02-19-2003, 04:23 PM
thanks guys i sorted it out now