开发者

how to transform movieclip shape?

开发者 https://www.devze.com 2023-03-02 23:38 出处:网络
hey there. I was wondering if there any way to change movieclip shape, when it开发者_如何学Go on stage by as2. thx for helpingYou could use a shape tween - but in terms of using ActionScript to change

hey there. I was wondering if there any way to change movieclip shape, when it开发者_如何学Go 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

0

精彩评论

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

关注公众号