codice:
function preloadJPG(img1){ 
	if(img1.getBytesLoaded() > 1024 && img1.getBytesLoaded() == img1.getBytesTotal()){ 
		if (img1._width < img1._height){
			img1._width = 100; 
			img1._height = 90; 
		} else {
			img1._width = 100; 
			img1._height = 80; 
		}
		clearInterval(pippo); 
	} 
} 
img1.loadMovie("chisiamo/foto1.jpg"); 
pippo = setInterval(preloadJPG,50,eval("img1"));