Return to Snippet

Revision: 43770
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