# A hierarchy question

**URL:** <https://forum.kirupa.com/t/a-hierarchy-question/321368>\
**Category:** flash\
**Created:** [April 18, 2011, 1:28pm UTC](https://forum.kirupa.com/t/a-hierarchy-question/321368 "2011-04-18T13:28:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieldmm](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@danieldmm](https://forum.kirupa.com/u/danieldmm)\
**Post date:** [April 18, 2011, 1:28pm UTC](https://forum.kirupa.com/t/a-hierarchy-question/321368/1 "2011-04-18T13:28:51Z")

</div>

A silly question but then, I can’t find any answer to it…  
On my library I have 2 movieclips: container (linkage:container) and bt1(linkage:bt1, only a button), I dropped bt1 on the container’s stage, now in order to display it I go:

```auto

var myMenu:menu = new menu();
    addChild(myMenu);
    myMenu.x = 250;
    myMenu.y = 150;

```

Now the question, how do I acces the bt1 within the myMenu?? because this doesn’t work:

```auto

myMenu.bt1.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent)
    {        
    }
    
}

```
