|
-
[F8] Detect mouse outside movieclip area
Is there a way to detect if the mouse is outside a movieclip area?
Thanks
-
Registered User
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|