# Access a MC inside a MC

**URL:** <https://forum.kirupa.com/t/access-a-mc-inside-a-mc/310523>\
**Category:** flash\
**Created:** [June 12, 2010, 11:16am UTC](https://forum.kirupa.com/t/access-a-mc-inside-a-mc/310523 "2010-06-12T11:16:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenDoliveira](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rubendoliveira/32/3905_2.png) [@RubenDoliveira](https://forum.kirupa.com/u/RubenDoliveira)\
**Post date:** [June 12, 2010, 11:16am UTC](https://forum.kirupa.com/t/access-a-mc-inside-a-mc/310523/1 "2010-06-12T11:16:22Z")

</div>

Hi,

I’m using OOP code only, no frames nothing.

I have a movieclip called “test” which contains another movieclip called “subtest” inside.

Now, on my code I have:

```auto
var _test:test = new test;

```

Now, I want to access the MC “subtest”, how do I do that?

I gave the instance name “subtest”, if I do something like below  
, it says that the type subtest is not found:

```auto
MovieClip(_teste.getChildByName("subteste"));

```

Any ideas?

Thanks
