开发者

3d flipping/rotation in flex-actionscript 3

开发者 https://www.devze.com 2022-12-31 11:09 出处:网络
I want to make an flipping card object which has three sides, basic requirement is like below as in image, I want to rotate from horizontal center of card but I can not find any way to change orie

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

3d flipping/rotation in flex-actionscript 3

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 elega开发者_StackOverflow中文版ntly? any suggestions appreciated...


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号