Flash ActionScript 3.0 port of Erin Catto's 2D Physics library Box2D.
And example of some gear joints.
Bodies can be created from a group of shapes.
Tower of boxes collapses.
A group of bodies resting on a segmented bridge.
A heavy ball weighs down the right side of this pulley.
A piston type setup using revolute and prismatic joints.