Maintain aspect ratio when resizing


/ Published in: ActionScript
Save to your folder(s)

useful for image or video resizing


Copy this code and paste it in your HTML
  1. mc.scaleX > mc.scaleY ? mc.scaleY = mc.scaleX : mc.scaleX = mc.scaleY;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.