In this tutorial, you'll learn all about the new 3D features included with Flash CS4. The latest release of Flash supports the ability to rotate and move flat objects (movie clips) around in 3D space. In the tutorial, you'll also learn how to animate the 3D rotation of an object using ActionScript's new rotationX, rotationY, and rotationZ properties.

Here is the code for this tutorial:

addEventListener(Event.ENTER_FRAME, rotate3D);
 
function rotate3D(e:Event):void
{
   sof_mc.rotationX += 4;
   sof_mc.rotationY += 4;
}

Click here for more comprehensive Flash video training