# BIG QUESTION! BIG QUESTION! mouseEvent

**URL:** https://forum.kirupa.com/t/big-question-big-question-mouseevent/254483
**Category:** Uncategorized
**Created:** [March 12, 2008, 3:50pm UTC](https://forum.kirupa.com/t/big-question-big-question-mouseevent/254483 "2008-03-12T15:50:43Z")
**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 12, 2008, 3:50pm UTC](https://forum.kirupa.com/t/big-question-big-question-mouseevent/254483/1 "2008-03-12T15:50:43Z")

</div>

I create a box\_mc on stage. I create another smallBox\_mc in library.

my code:

package com… {  
…

box\_mc.addChild(smallBox\_mc());

smallBox\_mc.addEventListener(MouseEvent.MOUSE\_DOWN, handleMouseDown);

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

…  
}

Problem and error.  
smallBox\_mc undefine.

I name the instance name smallBox\_mc is smallBox\_mc

Any ideas?

thanks,

NB
