I need to scale an image so that it won’t distort. Of course I don’t know the dimensions of this image.
I tryed something like this but it doesn’t seem to work at all.
loadMovie("../ImageUploadFolder/optimized_images/" + this.file, "_root.back_mc.image_panel_6.imgContainer6");
if (this.file._width > 100) {
var scale = this.file._width / 100;
_root.back_mc.image_panel_6.imgContainer6._yscale = this.file._height * scale;
_root.back_mc.image_panel_6.imgContainer6._xscale = this.file._width * scale;
}
Any ideas?
Thanks
-D