开发者

Changing perspective in AS3 - fp9

Does anyone know the equivalent of using the perspectiveProjection property on a displayObject but in flash player 9.

The PerspectiveProjection开发者_JAVA技巧 class was only bought in in fp10 but 9 also renders a scene in perspective when 3d transforms have been applied to objects.

In fp10 this works..

var pp:PerspectiveProjection = new PerspectiveProjection();
pp.projectionCenter = new Point(stage.stageWidth/2, 40);
_closedHolder.transform.perspectiveProjection = pp;

I need an equivalent which can target flash 9?


The APIs you want to access are not supported until Flash Player 10. Full Native 3D will not be supported until Flash Player 11; with the introduction of STage3D / Molehill.

IF you need support in Flash Player 9; then you should investigate using one of the 3D frameworks, such as Away3D or PaperVision3D. I'm pretty sure Away3D is the currently preferred one; as development has halted on PaperVision.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜