Return to Snippet

Revision: 42168
at February 28, 2011 21:39 by gromitski


Initial Code
mc.scaleX > mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY;

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

Initial Description
useful for image or video resizing

Initial Title
Maintain aspect ratio when resizing

Initial Tags

                                

Initial Language
ActionScript