Just been working on a sliding menu that is assigned this AS:
onClipEvent (load)
{
xcenter=300;
speed=1/5;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-600;
if (_x < -600) _x=0;
}
I've place the menu on frame 2. 1 and 2 both have stop() assigned. I've place a static unscripted instance of the menu within a button with a mouse event telling the movie to go to frame two to the onClipEvent(). What I'm trying to work out is how to script this MC on frame 2 so that when the mouse rollsOut the slider menu reverts back to its static impression on frame 1.
I really want to work out how to make the slider stop moving once the mouse has left the movie.
Instead of going back to frame 1 is there a way with AS to tell the movie that the mouse has left and that it should stop now, kinda thing, in a more advanced way than I've been trying.