I am making an interactive map and am trying to contain my mouse movement to only stay within a certain box instead of the whole page / flash movie template.
I have made a Movie Clip and given it an Instance Name of “menu”
This is the code I have used to make the mouse move all around at free will.
[COLOR=“Grey”]difference = _xmouse - arrow._x;
arrow._x = arrow._x + (difference/delay);
menu._x = - arrow._x;
difference = _ymouse - arrow._y;
arrow._y = arrow._y + (difference/delay);
menu._y = - arrow._y;
//second frame
prevFrame();
play();[/COLOR]
Here’s a link to the actual file so you can look at it and know exactly what I mean. > http://www.inkworth.com/smart/map.html <
I want to keep that mouse movement for that map inside the grey box so when I move outside of it, the map stops moving.
Can anyone help??