Skip to main content
Inspiring
October 13, 2011
Question

Targeting Nested movieclip on different frame??

  • October 13, 2011
  • 1 reply
  • 719 views

I always face this problem when coding with flash, and still not able to get a solution for this problem....

if the nested mc is in the 1st frame then I can use:

Level1_mc.Level2_mc.Level23_mc.gotoAndStop("2");

If refering nested btn I will use:

MovieClip(parent).gotoAndStop("2");

so my question is, how about refering an mc from main timeline into nested mc but different frame( frame 4,5 or 6....)?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 13, 2011

1.  you must go to that frame before trying to reference any objects created on that frame.

2.  if you exit that frame and go elsewhere where that object no longer exists, you can no longer reference that object.

Inspiring
October 13, 2011

I see, thanks for the advice, coding is really harder than i thought lol

kglad
Community Expert
Community Expert
October 13, 2011

spreading code over more than 1 frame makes things difficult.

using more than 1 main timeline frame can make coding somewhat more difficult but this should be managable because there's almost no circumstance where you would need to use more than a few main timeline frames.