# Targeting mc children only

**URL:** https://forum.kirupa.com/t/targeting-mc-children-only/318444
**Category:** flash
**Created:** [January 20, 2011, 12:14pm UTC](https://forum.kirupa.com/t/targeting-mc-children-only/318444 "2011-01-20T12:14:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mikewazovsky](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mikewazovsky](https://forum.kirupa.com/u/mikewazovsky)
#### Post date: [January 20, 2011, 12:14pm UTC](https://forum.kirupa.com/t/targeting-mc-children-only/318444/1 "2011-01-20T12:14:22Z")

</div>

Hi everybody,

i want to target all the mc nested in a parent mc and I’m using this script

```auto

for (var i:uint = 0; i<container_mc.numChildren; i++)
{
         if (container_mc.getChildAt(i) is MovieClip)
        {
                trace ("mc");
         }
}

```

The problem is that it is not targeting only the movieclips, but also the text fields and the drawing objects (Are they considered movieclips?).  
There is a way to get only the real movieclips?

Thank you
