# Please help me to improve this gallery

**URL:** <https://forum.kirupa.com/t/please-help-me-to-improve-this-gallery/183334>\
**Category:** Uncategorized\
**Created:** [March 25, 2006, 10:31pm UTC](https://forum.kirupa.com/t/please-help-me-to-improve-this-gallery/183334 "2006-03-25T22:31:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquify](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@liquify](https://forum.kirupa.com/u/liquify)\
**Post date:** [March 25, 2006, 10:31pm UTC](https://forum.kirupa.com/t/please-help-me-to-improve-this-gallery/183334/1 "2006-03-25T22:31:56Z")

</div>

Hi all,

I made some small changes in kirupa’s gallery with thumbnails and here how its looking now:

[http://www.soromenho.net/thumbnails/thumbs.html](http://www.soromenho.net/thumbnails/thumbs.html)

still… its not working 100%…

when i rollover the thumbnails, the image scrolls too… i cant make it stop…

Any help would be appreciated. 🙂

I’ll attach the files here.

thank u!

---

<div class="post-metadata">

**Author:** ![v2ikematu](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@v2ikematu](https://forum.kirupa.com/u/v2ikematu)\
**Post date:** [March 25, 2006, 11:59pm UTC](https://forum.kirupa.com/t/please-help-me-to-improve-this-gallery/183334/2 "2006-03-25T23:59:47Z")

</div>

change the code on your MovieClip called picture to:

```auto

onClipEvent (load) {
	destX = _x;
	destY = _y;
}
onClipEvent (enterFrame) {
	picW = this._width;
	picH = this._height;
	if (picW>460 && this.allowMoving == true)
	{
		posH = picW-460;
		posV = picH-310;
		destX = -_parent._xmouse*posH/460;
		destY = -_parent._ymouse*posV/310;
		if (destX>0)
		{
			destX = 0;
		}
		if (destX<-posH)
		{
			destX = -posH;
		}
		if (destY>0)
		{
			destY = 0;
		}
		if (destY<-posV)
		{
			destY = -posV;
		}
		_x = _x+(destX-_x)*0.100000;
		_y = _y+(destY-_y)*0.100000;
	}
	if (_parent._xmouse>400)
	{
		_root.thumbnail_mc._visible = true;
		_root.rect._visible = true;
		this.allowMoving = false;
	} else
	{
		_root.thumbnail_mc._visible = false;
		_root.rect._visible = false;
		this.allowMoving = true;
	}
}

```

it’s not pretty, but it’s the easiest way 🙂
