Skip to main content
February 3, 2007
Answered

Menu MovieClip to follow mouse

  • February 3, 2007
  • 3 replies
  • 308 views
Hi there,

I think my previous post lost anyone who read it, thus no responses. I will try and explain it more clearly.

If u look at this site www.douglasfisher.co.uk and click on "portfolio" and then one of the images he has a mouse following menu thats works really well - how can I create that!!?

I can manage to make a similar menu that follows the mouse well, the problem I have is when the user rolls off the MC from the right or bottom - the MC keeps sticking as the mouse re-enters the MC

Any help would be greatly appreciated.

Mark

This topic has been closed for replies.
Correct answer
if your subMenu (the one the follow the mouse) called "subMenu", you need to assign onRollOver and onRollOut event to it

subMenu.onRollOver=function(){
//stop menu Movement
}

subMenu.onRollOut=function(){
//follow the mouse
}

3 replies

kglad
Community Expert
Community Expert
February 4, 2007
your easing should stop your menu's movement when the mouse is close to the menu. you shouldn't need to enable and disable mouse movement based on a rollover or rollout.
Correct answer
February 4, 2007
if your subMenu (the one the follow the mouse) called "subMenu", you need to assign onRollOver and onRollOut event to it

subMenu.onRollOver=function(){
//stop menu Movement
}

subMenu.onRollOut=function(){
//follow the mouse
}
kglad
Community Expert
Community Expert
February 4, 2007
create a menu movieclip and apply and easing to it.
February 4, 2007
Thanks for getting back kglad.

As I said in my first post - I can get the movie clips movements working just fine - its a problem with turning on and off the rollover coding. Can anyone else shed light on to what I need to do, been trying to work it out 4 days now