Posted By

gromitski on 02/28/11


Tagged


Versions (?)

Maintain aspect ratio when resizing


 / Published in: ActionScript
 

URL: http://gromitski.com/blog/maintaining-aspect-ratio/

useful for image or video resizing

  1. mc.scaleX > mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY;

Report this snippet  

You need to login to post a comment.