views:

220

answers:

2

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...

A: 

I'd suggest looking at Papervision 3d or away 3D and make a 2 sided plane, one side of the plane being a view stack that contains views 1 and 2.

quoo
Thanks quoo, but, I am not using papervision 3d and away 3d, thinking to achieve this using flash player 10 3d apis
Bhavesh.Bagadiya
The Flash Player 10 3D api's aren't very fleshed out and are really meant for very simple transitions and to support the third party 3d API's. So I think your solution is best, if you're restricted to using the built in 3D. Or am I misunderstanding the problem?
quoo
yes, I'm restricted to use only built in 3D APIs, but this seems to have lot of limitations and so lot of problems...
Bhavesh.Bagadiya
+1  A: 

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

Matt W