3D MovieClips with Flex and ActionScript 3

Tuesday, September 7th, 2010

ActionScript 3For whatever reason, tonight my brain will not shut up, even after hours of watching Hulu.  So it’s time to share some of what I learned today.  Attention, non-geeks – this will be quite a technology-heavy post.  But there will be pretty pictures.

Flash has had the ability to do 3D for quite some time now, natively, without using any of the fancy libraries out there like PaperVision3D.  All you have to do is set the z property on a MovieClip.  Seriously, that’s all it takes.  And you know how you can rotate a MovieClip by setting the rotation parameter?  Now there are rotationX, rotationY, and rotationZ parameters.  Changing any of these through code will result in the MovieClip being displayed in three dimensions.  Groovy! (more…)