Revision: 43770
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 30, 2011 18:09 by pjetr
Initial Code
var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);
Initial URL
Initial Description
This makes the code more compact. Now on one line vs on multiple lines.
Initial Title
AS3 scale variable
Initial Tags
Initial Language
ActionScript 3