# Check what's under the mouse?

**URL:** https://forum.kirupa.com/t/check-whats-under-the-mouse/279380
**Category:** flash
**Created:** [January 14, 2009, 4:04am UTC](https://forum.kirupa.com/t/check-whats-under-the-mouse/279380 "2009-01-14T04:04:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cholin](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cholin](https://forum.kirupa.com/u/cholin)
#### Post date: [January 14, 2009, 4:04am UTC](https://forum.kirupa.com/t/check-whats-under-the-mouse/279380/1 "2009-01-14T04:04:28Z")

</div>

I have a movieclip that lists a bunch of song artists, and I need to find out which movieclip is underneath the mouse at a given time.

They are all different sizes so I can’t run a simple for loop.

The only thing I could think of would be to add each movieclip to a huge array and then loop through the array checking each item’s position and width/height to determine whether the mouse lies over that specific item.

That seems REALLY inefficient though…

Any help?
