Skip to main content
Inspiring
July 12, 2010
Answered

question about _root.stop()

  • July 12, 2010
  • 1 reply
  • 577 views

Have a question about the  _root.stop().

I  have a pause and play feature in a flash player so the user can stop  the presentation along with all the voiceover that streams with the  presentation.

I  used the _root.stop() in the flash player hoping it will stop the main  timeline, but also other embedded movieclip timelines. It stopped the main  timeline,  but not the other ones.

How do I stop both timelines at the same  time? the _root.stop() was not working for me.

Thank you, Brian

This topic has been closed for replies.
Correct answer kglad

again, apply the stop() method to the other movieclips you want to stop.

for example, if you have a movieclip on your _root timeline with instance name mc1, you can use:

_root.mc1.stop()

1 reply

kglad
Community Expert
Community Expert
July 12, 2010

apply the stop() method to the other movieclips you want to stop.

3-PuttAuthor
Inspiring
July 12, 2010

my movie player pause the main timeline, but not the movieclip until, of course, it reaches the end frame of that movieclip. I need the movieclip to pause with the timeline.

The movieclip has captions that sync up with audio in the main timeline so when I do hit pause I lose the caption for the voiceover. I would normally just place the captions in the main timeline, but the user has the option of making them visible so I have them in a movieclip.

Does that help explain myself at all?

Thanks,  Brian

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 12, 2010

again, apply the stop() method to the other movieclips you want to stop.

for example, if you have a movieclip on your _root timeline with instance name mc1, you can use:

_root.mc1.stop()