A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to do this menu

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Posts
    116

    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

  2. #2
    Member
    Join Date
    May 2004
    Location
    Springfield
    Posts
    50

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center