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

TypeError #1034: Type Coercion failed

New Here ,
Jul 16, 2013 Jul 16, 2013

Good morning all!

I've got a problem getting one thing in my file to work. I am getting this error, but I don't know why:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@7fff9e7c0d1 to flash.display.MovieClip.

          at _0102title_fla::Content_17/frame130()

Here's the code where the error comes from:

stop();

var getRoot:MovieClip = MovieClip(root);

var rootLevel:MovieClip = MovieClip(getRoot.parent.root);

rootLevel.rdcmndNextSlide = 1;

I need your help!!! please!!


TOPICS
ActionScript
338
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 ,
Jul 16, 2013 Jul 16, 2013
LATEST

the error message is pretty clear.  the parent of the root is the stage and the stage is not a movieclip.

so, you can't cast the stage as a movieclip.

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