Skip to main content
Participant
July 16, 2013
Question

TypeError #1034: Type Coercion failed

  • July 16, 2013
  • 1 reply
  • 352 views

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!!


This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 16, 2013

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.