AS3 scale variable


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

This makes the code more compact. Now on one line vs on multiple lines.


Copy this code and paste it in your HTML
  1. var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.