# Xml gallery thumbnails

**URL:** <https://forum.kirupa.com/t/xml-gallery-thumbnails/170361>\
**Category:** Uncategorized\
**Created:** [November 25, 2005, 1:23am UTC](https://forum.kirupa.com/t/xml-gallery-thumbnails/170361 "2005-11-25T01:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_S](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Pascal\_S](https://forum.kirupa.com/u/Pascal_S)\
**Post date:** [November 25, 2005, 1:23am UTC](https://forum.kirupa.com/t/xml-gallery-thumbnails/170361/1 "2005-11-25T01:23:41Z")

</div>

the gallery works fine so do the thumbnails but i want to make the scroller to ease , i tried to add code but it doesnt work. Who knows the solution to my problem ??

```auto

function thumbNailScroller() {
 // thumbnail code! 
 this.createEmptyMovieClip("tscroller", 1000);
 scroll_speed = 10;
 tscroller.onEnterFrame = function() {
  if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
   if ((_root._xmouse>=(hit_right._x-20)) && (thumbnail_mc.hitTest(hit_right))) {
	thumbnail_mc._x -= scroll_speed;
	
	} else if ((_root._xmouse<=(hit_left._x+20)) && (thumbnail_mc.hitTest(hit_left))) {
	thumbnail_mc._x += scroll_speed;
   }
  } else {
   delete tscroller.onEnterFrame;
  }
 };
}  

```

also this script to fade the thumbnails on rollover works fine but when i do this to the rollout , the thumbnails dont load anymore??

```auto
target_mc.onRollOver = function() {
		this.onEnterFrame = function(){
				this._alpha -= 5;
				if(this._alpha <= 50){
						delete this.onEnterFrame;
		  }
			 }
			 thumbNailScroller();
	   };  

```

many thanks if someone can help me with this problem!!
