title: AS3 Keep Image aspect ratio
body: <p>I am trying to resize peoples Facebook images for use in a flash application, the problem is the application takes the image from its original form down to a 68px - 68px square which spoils the ratio.</p>
  
  <p>Is there any way of fixing this?</p>
  
  <p><em>Code:</em></p>
  
  <pre><code>var ImgWidth:Number = 68;
  var ImgHeight:Number = 68;
  
  fb_profile_img.width = ImgWidth;
  fb_profile_img.height = ImgHeight;
  MovieClipName[InstanceName].addChild(fb_profile_img);
  </code></pre>