Xml gallery, not fading in

i’m using the KIRUPA xml gallery with thumbnail tutorial and when I post the files live online the image doesn’t fade in until after it has been cached and i get the “plug-in canceled” error.

Any suggestions? Here is my code for fading in the larger images once the thumbnail has been clicked.

////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = _root.container5.picture.getBytesTotal();
loaded = _root.container5.picture.getBytesLoaded();
_root.container5.preloader._visible = true;
if (loaded != filesize) {
_root.container5.preloader.preload_bar._xscale = 100*loaded/filesize;

} else {
	_root.container5.preloader._visible = false;

	if (_root.container5.picture._alpha<100) {
		_root.container5.picture._alpha += 10;
	}
}

};