Skip to main content
illustrate_this
Participant
May 1, 2018
Answered

Stop child movieclip playing

  • May 1, 2018
  • 2 replies
  • 444 views

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!

    This topic has been closed for replies.
    Correct answer ClayUUID

    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.

    2 replies

    ClayUUIDCorrect answer
    Legend
    May 2, 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.

    Joseph Labrecque
    Community Expert
    Community Expert
    May 1, 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.

    illustrate_this
    Participant
    May 1, 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....

    Joseph Labrecque
    Community Expert
    Community Expert
    May 2, 2018

    Can you share the file, possibly?