Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to go to next frame in a movie clip inside another movie clip

Participant ,
Apr 12, 2013 Apr 12, 2013

I have a master movie clip that my entire webpage is in, called masterMC.  If I double click it, I have another movie clip called transitionMC.  I want advance the timeline within masterMC when transitionMC completes playing, but not at the root level.  I want to advance the MasterMC timeline, not the root.  How do I go about doing this?

TOPICS
ActionScript
720
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Apr 12, 2013 Apr 12, 2013

This is what I had before:

stop();

if(MovieClip(root).currentFrame<MovieClip(root).totalFrames){

MovieClip(root).nextFrame();

}

i replaced (root) with parent.  it worked well.  Thanks!

Translate
Community Expert ,
Apr 12, 2013 Apr 12, 2013

on the last frame of transitionMC:

this.parent.nextFrame();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 12, 2013 Apr 12, 2013

This is what I had before:

stop();

if(MovieClip(root).currentFrame<MovieClip(root).totalFrames){

MovieClip(root).nextFrame();

}

i replaced (root) with parent.  it worked well.  Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2013 Apr 12, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines