开发者

Changing Y-scale of a movieclip

开发者 https://www.devze.com 2023-03-03 04:41 出处:网络
I\'m trying to change the y-scale or x-scale of a movieclip. I\'ve tried a few tutorials but they\'re always talking about \"elem._ysc开发者_如何学编程ale\".. However it\'s no longer supported by AS5.

I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._ysc开发者_如何学编程ale".. However it's no longer supported by AS5.

Can somebody please help me?

Thanks


You need someDisplayObject.scaleY. Documentation here!


Exactly like fenomas says you need to use the scaleX and scaleY setter methods. If you need a specific width or height in pixels you can also use movieClip.width = 400;, movieClip.height = 400;

You can also combine scaleX and scaleY if you need the same value like movieClip.scaleX = movieClip.scaleY = 1.5;

0

精彩评论

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