Hi, I’m trying to make sure that no matter what size image is uploaded, it ends up the right size in the Flash loader.
The code below does nothing to the image. At the moment without ._width and ._height a large image loads to fit the loader first time but when the site is refreshed, it reverts back to the images original size making it to large for the holder. Please help me
How do I lock an image size to 160x255 when I’m loading it into a loader via LoadVars
var URL = "http://www.myimages.com";
image = new LoadVars();
image.onLoad = function(success) {
if (success){
var images = this.images;
_root.MC_Image.contentPath=image;
image._width=160;
image._height=255;
} else trace("Error loading")
};
image.load(URL);