AS3:与模拟矩阵的rotationX [英] AS3: Simulating RotationX with Matrix

查看:291
本文介绍了AS3:与模拟矩阵的rotationX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要使用Flash CS3,所以我不能使用属性的rotationX,roationY和的rotationZ。

I have to use Flash CS3, so I can't use the properties rotationX, roationY and rotationZ.

我有一个影片剪辑,看起来像这样。现在是平的,没有3D旋转或剪切

I have a movieclip, that looks like this. It is now flat, no 3D rotation or shearing

不过,我想的是,这个影片剪辑具有的rotationX,或者说,它是在透视像这样有点:

But what I want is that this movieclip has a rotationX, or that it is a bit in perspective like this:

正如我所说的,我不能用的rotationX,所以我一直在玩弄矩阵。 但我无法得到它的权利。

As I said, I can't use rotationX, so I have been playing around with Matrix. But I can not get it right.

下面是我尝试这样做。

myMC.transform.matrix =新   矩阵(1,0.15,0.35,1,0,0)

myMC.transform.matrix = new Matrix(1,0.15,0.35, 1, 0, 0);

这是结果

您可以帮我获得其矩阵权,或有另一种方式?

Can you help me to get the matrix right, or is there another way?

感谢您, 文森特

推荐答案

让你的生活更轻松,只需下载一个3D引擎为Flash 9:

Make your life easier and just download a 3D engine for flash 9:

http://away3d.com/downloads

如果不是这样,你可以修改你CS3安装,以产生针对Flash SWF文件10 +

Either that or you can modify your CS3 installation to produce SWF files that target flash 10+

这篇关于AS3:与模拟矩阵的rotationX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆