Recently, I ‘ve been searching the web to find information on how to create a dock (mac, tsunami, fish-eye, these are some terms that refer to the same type of menu) menu. What I found interesting, was that almost everyone that worked on a menu like that, tried to think in circles (polar – coordinates, PI radians etc.). The first thing I thought was to calculate the distance between the mouse cursor and the items, and check if this distance is less than a specified radius. I also try to keep a fixed distance between those items, by continuously updating the items’ position according to the mouse movement (see the example below).
Well, the result is quite good if you consider the fact that it took 30 minutes approximately for me to create it. It’s a little buggy on the edges, and it doesn’t respond well on fast mouse movements. But I think it’s a good start? What do you think . You can always make suggestions.
Dowload .fla


