2

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._yscale".. However it's no longer supported by AS5.

Can somebody please help me?

Thanks

Phonon
  • 12,549
  • 13
  • 64
  • 114

2 Answers2

0

You need someDisplayObject.scaleY. Documentation here!

fenomas
  • 11,131
  • 2
  • 33
  • 57
0

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;

Ahrengot
  • 1,579
  • 1
  • 17
  • 29