# Help targeting a button within an MC from another MC - Erro 1061 ALL DAY

**URL:** <https://forum.kirupa.com/t/help-targeting-a-button-within-an-mc-from-another-mc-erro-1061-all-day/302669>\
**Category:** flash\
**Created:** [January 5, 2010, 3:52pm UTC](https://forum.kirupa.com/t/help-targeting-a-button-within-an-mc-from-another-mc-erro-1061-all-day/302669 "2010-01-05T15:52:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matius](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@matius](https://forum.kirupa.com/u/matius)\
**Post date:** [January 5, 2010, 3:52pm UTC](https://forum.kirupa.com/t/help-targeting-a-button-within-an-mc-from-another-mc-erro-1061-all-day/302669/1 "2010-01-05T15:52:15Z")

</div>

I know what the error 1061 means, but have no idea how to fix it. I’ve tried to correct it a million & one ways…

```auto
1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject.

```

I’m trying to target a button named ‘mcTargetButton’ (a SimpleButton) that’s inside a movie clip called ‘mcTargetParent’ _from_ a movie clip called ‘mcCallFromThisClip’.

Both clips are on the main timeline. _Note, I am using a document class… if I trace (this.parent) from ‘mcCallFromThisClip’ it prints the name of the document class._

```auto
trace(this.parent.getChildByName("mcTargetParent")); // traces 'mcTargetParent', yea!

```

Trying to go one step further to reach the nested button, Flash shows no love.

```auto
trace(this.parent.getChildByName("mcTargetParent").getChildByName("mcTargetButton")); // traces 1061 above

```

Apparently, no matter how I try to cast the button… Object, DisplayObjectContainer, Sprite, MovieClip - I will still get the 1061.

Any ideas, how hard should it be to reach a button from a different movie clip?
