Posted By

pjetr on 03/30/11


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


AS3 scale variable

 / Published in: ActionScript 3

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

  1. var scale:Number = Math.min(newWidth/oldWidth, newHeight/oldHeight);

Report this snippet  

You need to login to post a comment.