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;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.