So I have a Movieclip with a Listener listening for MOUSE_OVER, and on mouse over it triggers a function ToolTip.
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
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 …