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

Stop child movieclip playing

Explorer ,
May 01, 2018 May 01, 2018

Hello,

Very simple question with a tricky answer I presume....

Basically I have a MC with two nested child MC's inside.

MainMC > SubMC > SubSubMC

When I play the MainMC timeline 'MainMC.play()' only its timeline will play.

When I play the second childs (SubSubMC) timeline 'MainMC.SubMC.SubSubMC.play()' this will only play SubSubMC timeline, perfect.

However when I try to play the first child (SubMC) 'MainMC.SubMC.play()' this will play its timeline AND the second childs timeline (SubSubMC).

How could I stop this from happening? I have thought about tracking the frame number of the first child then stopping this timeline when reaching the end but I cant seem to get this working. Perhaps there is an easier method?

Thanks for the help!

380
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

LEGEND , May 02, 2018 May 02, 2018

Does the sub-subclip exist along the entire timeline of the subclip? If it doesn't, it will get reinitialized and start playing when the subclip loops.

Translate
Community Expert ,
May 01, 2018 May 01, 2018

If they are two separate instances, each instance would require a play() command, if stopped. Are the two instance timelines stopped, initially? Because they will automatically play, otherwise.

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
Explorer ,
May 01, 2018 May 01, 2018

Yes all of these MC's are stopped. The last nested MC seems to play when I play the middle nested MC. I think this may be a bug....

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 ,
May 02, 2018 May 02, 2018

Can you share the file, possibly?

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
LEGEND ,
May 02, 2018 May 02, 2018
LATEST

Does the sub-subclip exist along the entire timeline of the subclip? If it doesn't, it will get reinitialized and start playing when the subclip loops.

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