var scaling_factor:Number = Math.min(357 / image_mc.width, 394 / image_mc.height); loader_mc._xscale = scaling_factor; loader_mc._yscale = scaling_factor;
-Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lehr, Theodore M. Sent: Thursday, November 10, 2005 7:58 AM To: Flashcoders mailing list Subject: [Flashcoders] Logic Help I have a mc that is 357x394 that I am loading various images into... these images are of various sizes but all are larger than the mc they are being loaded into... I need to scale them down proportionally so the whole image can be seen... how should I go about this so an image that is 840x680 would be scaled down so it looks right (to scale) and an image that is 680x840 would too.... _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders