Is there a way to detect if the mouse is outside a movieclip area?
Thanks
Printable View
Is there a way to detect if the mouse is outside a movieclip area?
Thanks
hi,
Here are 3 options:
If the mouse isn't touching the movie clip it's because it's outside.
You can use hitTest() and onMouseMove() to check this (if there are no other movie clips or buttons on top of the movie clip)
or
You can use the _xmouse and _ymouse VS my_mc._x, my_mc._y, my_mc._width and my_mc._height.
If my_mc.onRollOver() doesn't get triggered or my_mc.onRollOut gets triggered, it's because the mouse it's outside my_mc.