I am dynamic loading images to a blank mc on stage. Everything works fine with the script I am using. My problem is I am concerned about loading large images to a specific size. I would like all images when loaded to not be more than w 400 or h 300. I have tried setting the mc _width and _height property to those figures using _root.mcLode1._width = 400; ..._height = 300; but when I do this nothing is there. I have tried an if statement; if the width or height is greater than then _xscale-=5;/_yscale -= 5; This kind of worked but only after the picture loaded to large and then was reloaded again and again till it met the test.

Below is the script I am using to load the images:


picture = ["1.jpg", "2.jpg", "3.jpg", "4.jpg"];
MovieClip.prototype.pressMe = function() {
this.onRelease = function() {
_root.mcLode1.loadMovie(this.subNav.text);
_root.mediaTxt.text = this.subNav.text;

};
};

Thanks