I can’t seem to locate the problem. I declare the width of my picture to be 100 but it seems to end up 121 for no reason I can see. It’s driving me crazy. My mask is width 100 and the pictures are definetly not that size. Can someone see if I have a code problem I’m not seeing? :
function thumbnails_fn(k, total) {
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
oldwidth = target_mc._width;
target_mc._width = 100; <----------------------------Pretty clear.
target_mc._height = Math.round((target_mc._width/oldwidth)*target_mc._height);
target_mc._y = oldy;
oldy = target_mc._y+target_mc._height+2;
target_mc.pictureValue = k;
bg_mc._height = thumbnail_mc._height+2;
bg_mc._width = thumbnail_mc._width+3;
target_mc.onRelease = function() {
if (target_mc._width == 300) {
this.shrinkimage(target_mc, total);
} else {
this.expandimage(target_mc, total);
}
};
target_mc.onRollOver = function() {
this._alpha = 75;
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], “thumbnail_mc.t”+k);
}