# Controlling Nested Movieclips

**URL:** <https://forum.kirupa.com/t/controlling-nested-movieclips/322345>\
**Category:** flash\
**Created:** [May 18, 2011, 2:39pm UTC](https://forum.kirupa.com/t/controlling-nested-movieclips/322345 "2011-05-18T14:39:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhilez](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhilez](https://forum.kirupa.com/u/nhilez)\
**Post date:** [May 18, 2011, 2:39pm UTC](https://forum.kirupa.com/t/controlling-nested-movieclips/322345/1 "2011-05-18T14:39:59Z")

</div>

You’d think this would be an easy one, but …

I have an animation of a spinning globe made from 2 maps placed back-to-back and a circular mask over them. The animation loops endlessly to simulate a spinning globe. This animation was made into a movieclip (globeSpin) which is nested inside another movieclip (container\_mc). I want to stop the spinning effect when a user mouses over and start it up again when they mouse out. Code is below:

```auto
container_mc.addEventListener(MouseEvent.MOUSE_OVER, stopSpin);
container_mc.addEventListener(MouseEvent.MOUSE_OUT, startSpin);
function stopSpin(me:MouseEvent):void {
 container_mc.globeSpin.stop();
}
function startSpin(me:MouseEvent):void {
 container_mc.globeSpin.play();
}

```

As you might have guessed by now, this actually does nothing … mousing over container\_mc does not stop globeSpin from spinning. Any suggestions as to what I’m missing?
