如何改变影片剪辑的形状?
嘿。我想知道当 as2 出现在舞台上时,是否有任何方法可以改变影片剪辑的形状。谢谢你的帮助
hey there. I was wondering if there any way to change movieclip shape, when it on stage by as2. thx for helping
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用补间形状 - 但就使用 ActionScript 更改形状而言,您需要创建一个包含不同形状的 MovieClip,然后仅使用
gotoAndStop()
选择要显示的形状,或者将自己限制在这些改变尺寸的属性上,仅此而已:此外,
您还可以研究倾斜形状等更复杂的功能。不确定 AS2 是否有这些功能,但在 ActionScript 3 中它将是 Matrix 类:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Matrix.html
You could use a shape tween - but in terms of using ActionScript to change a shape you'll either need to create a MovieClip that contains different shapes and just use
gotoAndStop()
to select which shape you want to display, or restrict yourself to these properties which change the dimensions and that's about it:Also
You could look into way more complex features for skewing shapes and such.. I'm not sure if AS2 has these features but in ActionScript 3 it would be the Matrix class:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/Matrix.html