# How do you trigger the btn inside a movie clip

**URL:** https://forum.kirupa.com/t/how-do-you-trigger-the-btn-inside-a-movie-clip/253547
**Category:** Uncategorized
**Created:** [March 2, 2008, 11:13pm UTC](https://forum.kirupa.com/t/how-do-you-trigger-the-btn-inside-a-movie-clip/253547 "2008-03-02T23:13:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![noblood](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@noblood](https://forum.kirupa.com/u/noblood)
#### Post date: [March 2, 2008, 11:13pm UTC](https://forum.kirupa.com/t/how-do-you-trigger-the-btn-inside-a-movie-clip/253547/1 "2008-03-02T23:13:02Z")

</div>

I have a box\_mc on the stage and I create a btn inside the box\_mc.

the code in the class:

========================

btn.addEventListener (MouseEvent.MOUSE\_DOWN, handleMouseDown)

function handleMouseDown ($evt:MouseEvent):void  
{  
do something();  
}

=======================  
Also try:

box\_mc.btn.addEventListener (MouseEvent.MOUSE\_DOWN, handleMouseDown)

function handleMouseDown ($evt:MouseEvent):void  
{  
do something();  
}

========================  
Error: 1120: Access of undefined property btn.

NOT WORKING… I AM MISSING SOMETHING??

Thanks.

NB
