-
how to do this menu
Hi,
Ive been trying like hell to create a menu like the one on http://www.sassoon.com/
I can do the menu, and make the grey square move towards the mouse position, but not as smooth as the one one their website.
Would be gratefull for ANY tip as to how this is done?
Cheers,
Mads
-
Try This
Here is the code I use for smooth movement, works like a charm. Hope it helps!!!
onClipEvent (enterFrame) {
CurposX = graybox._x;
MovementX = button._x-Curposx;
speedx = MovementX/5;
graybox._x = Number(CurposX)+Number(speedX);
}
In the words of Homer the Great! If it's too hard, it's not worth doing!
Finally found a use for all the forwards I received Inboxity.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|