"Statement must appear with on handler" - Help

Subscribe to "Statement must appear with on handler" - Help 5 posts, 2 voices

 
avatar for YourTimeHasCome YourTimeHasCome 26 posts

I get this: http://i30.tinypic.com/2emq0k1.png I’m using Flash MX 2004 PRO, and I get this error when I use ANY script.

 
avatar for BigCheese BigCheese 367 posts

Where do you have the code? On a movieclip or on the frame? If it’s on a movieclip is must be within a clip event, such as enterframe.

onClipEvent(enterframe){
    stop();
}
 
avatar for YourTimeHasCome YourTimeHasCome 26 posts

Its on a button usually. but what are they fore frames and stuff like that?

 
avatar for BigCheese BigCheese 367 posts
If the code you have is on a button, then you would need to put:
on(release){
    stop();
}

What do you mean by usually?

 
avatar for YourTimeHasCome YourTimeHasCome 26 posts

i make a lot of buttons, but sometimes I make movie clips.