# DispatchEvent Question

**URL:** <https://forum.kirupa.com/t/dispatchevent-question/313352>\
**Category:** flash\
**Created:** [August 26, 2010, 7:52pm UTC](https://forum.kirupa.com/t/dispatchevent-question/313352 "2010-08-26T19:52:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Post date:** [August 26, 2010, 7:52pm UTC](https://forum.kirupa.com/t/dispatchevent-question/313352/1 "2010-08-26T19:52:23Z")

</div>

So I have a Movieclip with a Listener listening for MOUSE\_OVER, and on mouse over it triggers a function ToolTip.

```auto

MC.addEventListener(MouseEvent.MOUSE_OVER, toolTip);
MC.addEventListener(MouseEvent.MOUSE_OUT, exitToolTip);
function toolTip(e:MouseEvent):void
{
    showToolTip();
}
function exitToolTip(e:MouseEvent):void
{
    trace('exit tooltip');
}

```

I have another MovieClip when clicked triggers another function

```auto

MC2.addEventListener(MouseEvent.MOUSE_DOWN, onClickBtn);
function onClickBtn(e:MouseEvent):void
{
     MC.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));
}

```

which triggers the tooltip function

but the problem is that… when the mouse is clicked on MC2 showToolTip works fine… but when I mouse\_out of MC2 it runs exitToolTip function from MC shouldnt it run exitToolTip only when you mouse out of MC?  
how do I make exitToolTip run only when we mouse out of MC rather than MC2 …
