PDA

View Full Version : resize image in empty mc to specific width and height



RustyNailDesign
March 29th, 2008, 02:14 AM
I have an empty mc that i'm loading external images into and I want to be able to resize them to a specific width and height. I have tried

holder_mc3._width = 150;
holder_mc3._height = 150;

but it the image doesn't display when I do that, if I use

this.holder_mc3._xscale=50;
this.holder_mc3._xscale=50;

the mc will resize with the image in it but not all the image are of the same perportions, so I want to set the specific pixel value for width and height. I've tried several combination but anything that specifies the pixel with doens't display the image....any help or pointing me it right direction would be appreciated.

Thanks!

findAll
March 29th, 2008, 03:38 AM
Why do you want to resize?

RustyNailDesign
March 29th, 2008, 03:44 AM
I'm allowing the user to upload the image but I want it fix into the exact box placed for it.

I know that some images will be distorted but I'm accounting for that and giving the user some instuctions, even though most won't follow ;)

Thanks