# MouseEvent triggered twice

**URL:** <https://forum.kirupa.com/t/mouseevent-triggered-twice/296395>\
**Category:** flash\
**Created:** [September 14, 2009, 3:48pm UTC](https://forum.kirupa.com/t/mouseevent-triggered-twice/296395 "2009-09-14T15:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)\
**Post date:** [September 14, 2009, 3:48pm UTC](https://forum.kirupa.com/t/mouseevent-triggered-twice/296395/1 "2009-09-14T15:48:41Z")

</div>

```auto
stage.addEventListener(MouseEvent.MOUSE_UP, onmouseUp);
var container:Sprite = new Sprite()
var box = new myBox()//symbol from library
addChild(container)
container.addChild(box)
container.addEventListener(MouseEvent.MOUSE_UP, onmouseUpBox);
function onmouseUp(e:Event)
{
 trace("mouseUp From Stage")
}
 
function onmouseUpBox(e:Event)
{
 trace("mouse up from box")
}

```

At the moment when I click on the continer sprite, both mouse events are bringing triggered, from the stage and the container sprite. How can I make it so I only get the object I’m clicking on and not the stage as well??
