hmm, i’m having this problem and i’m not sure how to solve it, (see code below) basically what happens is, information from a main.swf file is passed to a 2nd swf file, and that 2nd file creates a resizing box everytime a new thumbnail in the main.swf file is clicked on. i have the resizing and stuff working properly, the only problem i have now is loading the jpg of the image to be displayed. i made it so theres 2 frames, to keep updating itself, but when i do that it causes this annoying flickering, i think cuz it keeps trying to load the jpg constantly or something, does anyone know how to solve this?
i’ve tried doing it on 1 frame, but when i do that, the jpg doesnt load.
this code is from my 2nd file:
onEnterFrame = function() {
//Calculates How Large to Resize
new_image_width = _root.image_width - mc_boundry_box._width;
new_image_height = _root.image_height - mc_boundry_box._height;
//Easing Motion Tween
mc_boundry_box._width += new_image_width/10;
mc_boundry_box._height += new_image_height/10;
}
//Loads Image After Boundry Box is Done Resizing and Centers It
if (Math.ceil(mc_boundry_box._width) == _root.image_width) {
mc_image.loadMovie(_root.file_name);
mc_image._x = (500 - _root.image_width) / 2;
mc_image._y = (450 - _root.image_height) / 2;
}
_root.file_name is from the main.swf file, and is basically just something.jpg
_root.image_width is the image width of something.jpg,
_root.image_height is the image height of something.jpg,
if anyone can help me it’d be greatly appreciated, thanks a lot
edit: sorry for the double post but i didnt realize i posted this in the wrong forum earlier
edit2: heres an actual example of what i mean, www.dstort1.com/preview/main.html if you click on the photography and experimental section sections of the site you’ll see the problem