Changing Y-scale of a movieclip
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;
精彩评论