Monday, September 8, 2008

Flash Player 10 : rotation (x,y,z) properties example

One of the new ActionScript APIs include in Flash Player 10 are the addition of z based proprties (joining the existing x and y). The DisplayObject.z and DisplayObject.rotationZ properties allow you to manipulate your display object on the z axis (relative to the 3D parent container).

Below is a simple example that shows how changing the rotationX, rotationY and rotationZ properties affect a DisplayObject instance.

The UI is in Flex, but of course, the APIs also work in Flash Authoring. The example requires the Flash Player 10 RC release from labs.


You can find more information on the z and rotationZ properties in the DisplayObject entry in the Flash Player 10 ActionScript APIs docs.


post signature