how to transform movieclip shape?
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
精彩评论