# How can I check how many movieClips exist in a container

**URL:** https://forum.kirupa.com/t/how-can-i-check-how-many-movieclips-exist-in-a-container/319917
**Category:** flash
**Created:** [March 8, 2011, 5:51pm UTC](https://forum.kirupa.com/t/how-can-i-check-how-many-movieclips-exist-in-a-container/319917 "2011-03-08T17:51:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)
#### Post date: [March 8, 2011, 5:51pm UTC](https://forum.kirupa.com/t/how-can-i-check-how-many-movieclips-exist-in-a-container/319917/1 "2011-03-08T17:51:01Z")

</div>

Hi,

How can I check how many movieClips exist in a container and how much space are they taken?

In other words, how can I make this calculation if I have a rectangular movieClip (containerMc) that is 5x1px and five square movieClips (sq1Mc,sq2Mc, sq3Mc, sq4Mc and sq5Mc) that are 1x1px and which can dynamically be placed inside containerMc and I want to know how many and which of these five movieClips already exist in containerMc so I can determine where the next square movieClip needs to be placed?

Can someone be so kind and show me how to do this or direct me where I can find the answer?

Thanks a lot!
