Advice: Mouse movement tracking issue

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:

 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. :slight_smile: