Hi,
Is there anyway to make a movieclip follow the mouse. I have a menu, as a movieclip and when i roll over the menu i want something to pop up where the mouse is that says 'click & drag to scroll'
my main menu is called: container_mc
the movieclip i want to appear i have exported it for actionscript and is called mouseovermenu.
This is the AS3 i have so far:
At the moment the pop up appears when i roll over but it dosnt follow the mouse. Also, i am getting more than one instance of the rollover movieclip appearing.Code:container_mc.addEventListener(MouseEvent.ROLL_OVER, onRollOverHandler); container_mc.buttonMode = true; container_mc.useHandCursor = true; function onRollOverHandler(myEvent:MouseEvent){ var myPopup:DisplayObject = addChild(new mouseovermenu()); myPopup.x = mouseX; myPopup.y = mouseY; }
Can anyone help?
Thanks
Matt




Reply With Quote