Apple's Mac OSX dock is one of the most attractive computer user interfaces of the past several years.
In "Part 1" of this two-part series, I started recreating this excellent visual effect on any website or application.
In Part 2, I'll finish up our Mac OSX style dock. We'll start off exploring event handling and creating an event listener that will notify the dock when all the icons have been properly loaded.
The dock will then size and position the icons before sending another event to the main timeline, which will position the dock on the stage. No dock would be complete without the magnification effect. To achieve this we'll go over the principles of the Pythagorean theorem and use it to calculate the proximity of the mouse in relation to the icons in the dock.
