# Follow the mouse in AS3, please help

**URL:** https://forum.kirupa.com/t/follow-the-mouse-in-as3-please-help/328320
**Category:** flash
**Created:** [May 8, 2012, 11:04am UTC](https://forum.kirupa.com/t/follow-the-mouse-in-as3-please-help/328320 "2012-05-08T11:04:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iMitchellHD](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@iMitchellHD](https://forum.kirupa.com/u/iMitchellHD)
#### Post date: [May 8, 2012, 11:04am UTC](https://forum.kirupa.com/t/follow-the-mouse-in-as3-please-help/328320/1 "2012-05-08T11:04:46Z")

</div>

Hi,  
so im trying to make a horizontal menu bar that goes all of the way across the stage, this will be split into 5 equal rectangle boxes and i want to have a much thinner bar that slides across the top of the menu box dependant on where the mouse is [if the mouse is on the far right box i want the highlight bar to sit above the far right box]  
i only want the highlight bar to track horizontally and if possible only track when the mouse if over the menu bar.

if anyone needs any images i can add them to this, just ask

any help would be great!

Thanks in advance, Mitchell
