Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advanced Menu 2

Status
Not open for further replies.
Something like this:

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.
 
Hows this :

Regards

David Byng

spider.gif


davidbyng@hotmail.com

while (Me < Drunk) {
Beer++
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top