Revision: 50075
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 7, 2011 21:27 by xactoknife
Initial Code
var scale:Number = ((container.height/container.width) > (image.height/image.width)) ? (container.width/image.width) : (container.height/image.height); image.scaleX = scale; image.scaleY = scale;
Initial URL
Initial Description
Initial Title
Scaling a DisplayObject to fit to a container’s dimensions
Initial Tags
Initial Language
ActionScript 3