当前位置: 动力学知识库 > 问答 > 编程问答 >

flash - how to transform movieclip shape?

问题描述:

hey there. I was wondering if there any way to change movieclip shape, when it on stage by as2. thx for helping

网友答案:

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:

mc._width
mc._height
mc._xscale
mc._yscale

Also

mc._rotation

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: