# Advice: Mouse movement tracking issue

**URL:** <https://forum.kirupa.com/t/advice-mouse-movement-tracking-issue/162898>\
**Category:** flash\
**Created:** [September 17, 2005, 11:53am UTC](https://forum.kirupa.com/t/advice-mouse-movement-tracking-issue/162898 "2005-09-17T11:53:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SWiSH](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/swish/32/1746_2.png) [@SWiSH](https://forum.kirupa.com/u/SWiSH)\
**Post date:** [September 17, 2005, 11:53am UTC](https://forum.kirupa.com/t/advice-mouse-movement-tracking-issue/162898/1 "2005-09-17T11:53:04Z")

</div>

Hi all,

I’m having an issue with a dock-style menu I’m working on. The code I’ve found came from Flashkit and it seems to work quite well, however I would like to modify it slightly.

The mouse interacts with the menu as it is moved around the stage. I am trying to limit this interaction to a certain section, as I don’t want the menu to be effected when the mouse is moving somewhere else.

It’s a little hard to explain, so I’ve attached the fla I’m working on. I have added a red rectange which I’m trying to limit the mouse interaction within

The script for each movieClip that causes the interaction is as follows:

```auto
 onClipEvent (enterFrame)
{
     Mouse = _xmouse;
     if (Mouse<0) {
          Mouse = -1*Mouse;
     }
     scale = 180-Mouse;
     if (scale<100) {
          scale = 100;
     }
     if (scale>180) {
          scale = 180;
     }
     setProperty ("", _xscale, scale);
     setProperty ("", _yscale, scale);
} 

```

**NOTE:** I should also point out, the fla is saved in MX 2004 format, but I must export to Flash 5.

Could anyone provide me with some pointers on how I may achieve this?

Cheers. 🙂
