Skip to main content
Inspiring
April 17, 2008
Answered

Statement must appear within on/onClipEvent handler

  • April 17, 2008
  • 2 replies
  • 941 views
Here's my code on my main timeline; and it makes each movie clip (A, B, C, D, E) 'glow' when mousing-over.
Why do I keep getting this error message?

Thanks
This topic has been closed for replies.
Correct answer chrisgolfs
I figured out what I did wrong there kglad. You were right - I had the code attached to a movie clip (the parent of the movie clip that the correct code is on the timeline of). In other words, I had code in two different places, so eliminated the code from the parent movie clip and the error disappeared.
Thanks!

2 replies

kglad
Community Expert
Community Expert
April 17, 2008
you're welcome.
kglad
Community Expert
Community Expert
April 17, 2008
because that code is attached to a movieclip or button and should be attached to a frame.
Inspiring
April 17, 2008
Actually kglad, the code is on a frame, not attached to a movie clip or button. The code is on it's own layer on frame one of the main timeline.