# Xml gallery, not fading in

**URL:** <https://forum.kirupa.com/t/xml-gallery-not-fading-in/300359>\
**Category:** Uncategorized\
**Created:** [November 19, 2009, 6:49pm UTC](https://forum.kirupa.com/t/xml-gallery-not-fading-in/300359 "2009-11-19T18:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndavid06](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@ndavid06](https://forum.kirupa.com/u/ndavid06)\
**Post date:** [November 19, 2009, 6:49pm UTC](https://forum.kirupa.com/t/xml-gallery-not-fading-in/300359/1 "2009-11-19T18:49:02Z")

</div>

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&lt;100) {
		_root.container5.picture._alpha += 10;
	}
}

```

};
