Skip to main content
campbellma
Inspiring
January 17, 2013
Answered

Access main timeline from movieclip

  • January 17, 2013
  • 1 reply
  • 1063 views

I want the to have a command on the end frame of a move clip to gotoAndPlay the second frame on the main time line. How can I do that?

I tried it as gotAndPlay (2), I added Scene 1, and that didn't work. I even put a frame label on it and it doesn't recognize the frame label.

This topic has been closed for replies.
Correct answer moccamaximum

Delete the additional scene, as it only complicates the matter.

At the end of your nested MovieClip write:

MovieClip(root).gotoAndPlay(2)

or


MovieClip(root).gotoAndPlay("framelabel")

//substitute framelabel with the actual label you put on the frame

1 reply

moccamaximumCorrect answer
Inspiring
January 17, 2013

Delete the additional scene, as it only complicates the matter.

At the end of your nested MovieClip write:

MovieClip(root).gotoAndPlay(2)

or


MovieClip(root).gotoAndPlay("framelabel")

//substitute framelabel with the actual label you put on the frame

campbellma
Inspiring
January 17, 2013

Thanks I knew it has something to do with root but I kept tryin root.gotoAndPlay("framelabel").