# Positioning different size thumbnails

**URL:** <https://forum.kirupa.com/t/positioning-different-size-thumbnails/282463>\
**Category:** flash\
**Created:** [February 22, 2009, 5:22pm UTC](https://forum.kirupa.com/t/positioning-different-size-thumbnails/282463 "2009-02-22T17:22:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashwillkill](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@flashwillkill](https://forum.kirupa.com/u/flashwillkill)\
**Post date:** [February 22, 2009, 5:22pm UTC](https://forum.kirupa.com/t/positioning-different-size-thumbnails/282463/1 "2009-02-22T17:22:26Z")

</div>

Hi everyone,  
Havent been around for a while and not working with flash. So I have a problem I cannot solve on my own. I am using Scottys gallery and would like to use thumbnails with different widths. Right now they are loaded like this:

```auto
function makeButtons() {
	tnNr = 0;
	clearInterval(delay);
	for (var i = 0; i<tArray.length; i++) {
		var thb = thumbs.th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
		thb.id = i;
		thb._alpha=0;
		thb._x = i*120;
		thb.fader("fadeIn", 10, 100);
	}
	loadButtons();
}

```

Does anyone know how to space the thumbs based on their widht rather then a fixed width of 120px like used in my example?  
Thanks for any help 😉
