Scales in AS3

In actionscript 3 the scales for alpha, x scale and y scale have changed. In actionscript 2 they were a percentage rage between 0 and 100. In actionscript 3 this has changed to a scale between 0 and 1. So if you are converting from AS2 just divide your scale by 100.

Also the names of these have changed. In AS2 they were

  1. _xscale
  2. _yscale
  3. _alpha

In AS3 this has changed to

  1. scaleX
  2. scaleY
  3. alpha

2 Responses to “Scales in AS3”

  1. KonstantinMiller Says:

    Hi. I like the way you write. Will you post some more articles?

  2. Nico Limpika Says:

    If you are looking for information about how to scale a movie clip around a certain static point then check this link out as well:

    http://www.actionscript-flash-guru.com/blog/33-scale-around-a-point-transform-multiple-objects-actionscript-3-as3

    I got your article while looking for information about scaling movie clips. It took me a while to find what I was looking for and I thought other users who run across your article would appreciate a link to what I found. Thanks for the blogging man!

Leave a Reply