# MovieClips inside other MovieClips - detecting all

**URL:** <https://forum.kirupa.com/t/movieclips-inside-other-movieclips-detecting-all/255824>\
**Category:** flash\
**Created:** [March 27, 2008, 12:05pm UTC](https://forum.kirupa.com/t/movieclips-inside-other-movieclips-detecting-all/255824 "2008-03-27T12:05:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyleeharris](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jonnyleeharris](https://forum.kirupa.com/u/jonnyleeharris)\
**Post date:** [March 27, 2008, 12:05pm UTC](https://forum.kirupa.com/t/movieclips-inside-other-movieclips-detecting-all/255824/1 "2008-03-27T12:05:45Z")

</div>

I have a movieclip called mapWindow, inside mapWindow are dynamically created movieclips of various sizes. The movieclips inside the mapWindow don’t take up the entire space of the mapWindow and thus I use a startDrag on the mapWindow upon detection of a mouse press. The problem is, I don’t want the start drag to start if the mouse is detected over any of the child movieclips inside mapWindow.

I have a few ideas of how to proceed, but I’m not sure how to reference all child movieclips of a particular movieclip - or something along those lines.

It would be easy to use the hittest function if I knew how to reference all the movieclips I need to, but alas…

Thanks in advance.
