/ Published in: ActionScript 3
This makes the code more compact. Now on one line vs on multiple lines.
Expand |
Embed | Plain Text
var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);
You need to login to post a comment.
pjetr on 03/30/11
1 person have marked this snippet as a favorite
This makes the code more compact. Now on one line vs on multiple lines.
var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);
You need to login to post a comment.