Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Statement must appear within on/onClipEvent handler

Explorer ,
Apr 17, 2008 Apr 17, 2008
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
TOPICS
ActionScript
946
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Apr 17, 2008 Apr 17, 2008
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!
Translate
Community Expert ,
Apr 17, 2008 Apr 17, 2008
because that code is attached to a movieclip or button and should be attached to a frame.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2008 Apr 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2008 Apr 17, 2008
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!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 17, 2008 Apr 17, 2008
LATEST
you're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines