/ Published in: ActionScript 3
This makes the code more compact. Now on one line vs on multiple lines.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);