Search code examples
apache-flexactionscript-33d

3d flipping/rotation in flex-actionscript 3


I want to make an flipping card object which has three sides, basic requirement is like below

card flip

as in image, I want to rotate from horizontal center of card but I can not find any way to change orientation of rotation except put card in an container and set its x to -(width/2) I am using appendRotation method after setting its z component to 1 and everytime appending -5 rotation on Y axis.

How to achieve this elegantly? any suggestions appreciated...


Solution

  • For a simple two sided 3D object using the native 3D capabilities of the Flash Player, check out this handy class: http://blog.soulwire.co.uk/code/open-source/two-sided-planes-in-flash-player-10