onClipEvent (load) {
//if your movie is 700 px wide
screenPosition = 350;
//controls the speed of the "x" following the mouse
speed = 5;
}
onClipEvent (enterFrame) {
//moves menu
this._x = screenPosition-_root._xmouse;
//moves "x"
_root.xClip._x -= (_root.xClip._x-_root._xmouse)/speed;
}
Give the clip following the mouse the instance name "xClip" and then attach this script to your menu clip.
The menu in their example is likely to be a series of separate clips where this is only for one big block graphic but the principle is the same.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.