# Mouse position in certain area's triggers code?

**URL:** <https://forum.kirupa.com/t/mouse-position-in-certain-areas-triggers-code/311710>\
**Category:** flash\
**Created:** [July 14, 2010, 3:41pm UTC](https://forum.kirupa.com/t/mouse-position-in-certain-areas-triggers-code/311710 "2010-07-14T15:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tris3d](https://avatars.discourse-cdn.com/v4/letter/t/4da419/32.png) [@tris3d](https://forum.kirupa.com/u/tris3d)\
**Post date:** [July 14, 2010, 3:41pm UTC](https://forum.kirupa.com/t/mouse-position-in-certain-areas-triggers-code/311710/1 "2010-07-14T15:41:19Z")

</div>

Hey! I’m wondering whether its possible to trigger some script by what area the mouse is hovering over. I know this would be simple with roll over buttons, but I already have buttons and thats where the problem comes in because they share the same space.

So for instance I need something that says if the mouse is at X, Y ( or a broader area ) goto frame 2

Do you think this is possible?
