# gotoAndStop stops children (gotoAndPlay also)

**URL:** <https://forum.kirupa.com/t/gotoandstop-stops-children-gotoandplay-also/268784>\
**Category:** flash\
**Created:** [August 18, 2008, 8:18pm UTC](https://forum.kirupa.com/t/gotoandstop-stops-children-gotoandplay-also/268784 "2008-08-18T20:18:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lachhh](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@Lachhh](https://forum.kirupa.com/u/Lachhh)\
**Post date:** [August 18, 2008, 8:18pm UTC](https://forum.kirupa.com/t/gotoandstop-stops-children-gotoandplay-also/268784/1 "2008-08-18T20:18:58Z")

</div>

Please, check the demo i’ve attached to that post

Hi there, i’ve just discovered that when you call gotoAndStop on a MovieClip, all the movieClip children of that MovieClip are stopped for one frame.

That is a problem for me because i’m doing a gotoAndStop in a EnterFrame event to control the speed o the animation. So the parent movieClip plays but all his children are stopped !!!.

You can reproduce the bug by doing this which is the same as a play() :

```auto

addEventListener(Event.ENTER_FRAME, Update) ;
function Update(evt:Event):void {
 _mc.gotoAndStop((mc.currentFrame%mc.totalFrames) +1);
}

```

Is there a super duper way to bypass that ? Does anyone know what’s happening in the internal gotoAndStop of MovieClip ?

Thanks !

Lachhh
