"Internet Explorer" not supporting thumbnail generation

hi,
i m developing a xml based image gallery. i wrote code for generating thumbnails using loader component.
its working fine locally. but when i upload it , “Mozilla firefox” browser is working perfect.
but “Internet Explorer” ( i m using latest one ie IE 7)is not supporting thumbnail generation.

when the file is loading its showing large images insted of showing thumbnails. but when i refresh the page then its showing thumbnails perfect.

how can i solve this problem???

its very very important to me.

code for creating thumbnails :

[INDENT]for (var i:Number = 0; i < thumbs.firstChild.childNodes[0].childNodes.length; i++)
{
_root.emptymc_mc.scrollmc_mc.newmc_mc.createClassO bject(mx.controls.Loader, “clip” + i , i, {contentPath:
thumbs.firstChild.childNodes[0].childNodes*.childNodes[0].nodeValue, scaleContent: true, _width: 40, _height: 40, _xi*55), _y:5});

_root.emptymc_mc.my_pb._visible = true;
_root.emptymc_mc.my_pb.setProgress(i, imageslength);

_global.endpoint = i * 55;

}
[/INDENT]

please reply…please please help…

thanks a lot
jlackyashdya