This is a demo of Flash physics and animation.

The .swf file has three instances of Tony Danza's head, moving according to different physics equations.

Tony Danza Head #1 moves up and down to this equation:

danzaOneHead._y = 200 + Math.sin(angle) * 50;

Meanwhile, Tony Danza Heads #2 and #3 have a relationship in their motions, under the following elliptical equations:

danzaHeadTwo._y = 401-(200 +

Math.sin(angle) * 50);
dx = danzaHeadTwo._x - danzaHeadThree._x; dy = danzaHeadTwo._y - danzaHeadThree._y;
radians = Math.atan2(dy,dx);
danzaHeadTwo._rotation = (2* Math.PI)-( radians * 180 / Math.PI);

Finally, the most-active Tony Danza Head, #3, has cyclical alpha fading, shrinking, and expanding - all to simulate a 3-D environment:

danzaHeadThree._xscale = danzaHeadThree._yscale = centerScale + Math.sin(angle) * range;
danzaHeadThree._alpha = centerScale + Math.sin(angle) * (range * 1.2);
danzaHeadThree._x = centerX + Math.cos((angle/2)) * radius;
danzaHeadThree._y = centerY + Math.sin((angle/2)) * radius;
angle += speed;

Since "angle" is a part of all equations, the Heads move in a rough correlation with each other.

The music is embedded and is from the Microsoft XP Installation CD.