旋转 Spark 标题窗口
当我尝试使用以下代码旋转 Spark TitleWindow 时,
<s:Rotate id="rotate" angleBy="360" autoCenterTransform="true" target="{targtObj}"></s:Rotate>
它绕 z 轴旋转。如何按 x 轴或 y 轴旋转并保持 autoCenterTransform="true"。
While I was trying to rotate Spark TitleWindow using the following code
<s:Rotate id="rotate" angleBy="360" autoCenterTransform="true" target="{targtObj}"></s:Rotate>
it rotates around z-axis. How can I rotate by x-axis or y-axis maintaining the autoCenterTransform="true".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
还有 Spark Rotate3D 效果,这使得一个轴可以绕其他轴旋转。不幸的是,它似乎没有等效的
angleBy
属性,每个轴只有angleFrom
和angleTo
。如果您旋转 360°,那么这并不是什么大问题,因为您将在起点结束:即使您没有在起点结束,也会获得与angleBy相同的效果 还是一件相当简单的事情。这是绕 Y 轴 30° 旋转:
There is also a Spark Rotate3D effect, which enables one to rotate about the other axes. Unfortunately, it doesn't seem to have an equivalent
angleBy
property, onlyangleFrom
andangleTo
for each of the axes. If you are rotating 360°, then that isn't that big of a problem, since you would be ending at the starting point:Even if you weren't ending at the starting point, getting the same effect as the
angleBy
is still a rather simple matter. Here is a 30° rotation about the Y-Axis: