Skip to main content
Participant
August 9, 2010
Answered

Very simple question...would love some help!

  • August 9, 2010
  • 1 reply
  • 551 views

Noob... check!

panadol...double check!

I am trying to "gotoAndStop" on a frame in a nested timeline from the main timeline,

but can't seem to figure out the correct way to write it with it's 'parents' etc...

this is how I have tried which makes sense to me (have tried other ways too) but no success.

gotoAndStop(parent."framename");

would absolutely love some help, have been staring at this far too long now!

Thanks

This topic has been closed for replies.
Correct answer Ned Murphy

You may need to clarify your simple question as it is somewhat confusing to interpret.

" "gotoAndStop" on a frame in a nested timeline from the main timeline"

That tells me you have a movieclip and you want the main timeline to tell it to gotoAndStop in a certain frame... so the solution to that would be...

mcInstanceName.gotoAndStop("framename");

But when you bring the mention of a parent into the story/code, then that makes me think you want the movieclip to tell the main timeline to gotoAndStop...

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

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
August 9, 2010

You may need to clarify your simple question as it is somewhat confusing to interpret.

" "gotoAndStop" on a frame in a nested timeline from the main timeline"

That tells me you have a movieclip and you want the main timeline to tell it to gotoAndStop in a certain frame... so the solution to that would be...

mcInstanceName.gotoAndStop("framename");

But when you bring the mention of a parent into the story/code, then that makes me think you want the movieclip to tell the main timeline to gotoAndStop...

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

nellNewAuthor
Participant
August 9, 2010

The first way was right. sorry wasn't quite sure how to word it either! very new.

Thank you very much for your help.

Ned Murphy
Legend
August 9, 2010

You're welcome