Skip to main content
GogetaX
Inspiring
July 14, 2018
Answered

Cant spot a but with AS3

  • July 14, 2018
  • 1 reply
  • 471 views

hey everyone, not sure why the compiler says i have problem with this line, please help me to figure it out.

im trying to access a movieclip named SubMC at root point, i want to see what frame it is atm.

This topic has been closed for replies.
Correct answer Flipline

It looks like the problem here is that the root property is a DisplayObject, so it can't reference instances like subMC unless you cast root as a MovieClip. If you switched it to MovieClip(MovieClip(root).subMC).currentFrame it should work though.

1 reply

Flipline
FliplineCorrect answer
Inspiring
July 15, 2018

It looks like the problem here is that the root property is a DisplayObject, so it can't reference instances like subMC unless you cast root as a MovieClip. If you switched it to MovieClip(MovieClip(root).subMC).currentFrame it should work though.