# Actionscript gallery: Thumbnails different sizes?

**URL:** https://forum.kirupa.com/t/actionscript-gallery-thumbnails-different-sizes/240528
**Category:** flash
**Created:** [October 3, 2007, 6:16pm UTC](https://forum.kirupa.com/t/actionscript-gallery-thumbnails-different-sizes/240528 "2007-10-03T18:16:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davelaruedrum](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@davelaruedrum](https://forum.kirupa.com/u/davelaruedrum)
#### Post date: [October 3, 2007, 6:16pm UTC](https://forum.kirupa.com/t/actionscript-gallery-thumbnails-different-sizes/240528/1 "2007-10-03T18:16:01Z")

</div>

I followed Kirupas tutorial on making a gallery with thumbnails. However, each thumbnail has to be of same width…if not the order of the thumbs gets mixed up. I’v been trying to figure this out for a while, but i’m not as smart as you guys…🙂  
Iv been trying to alter the thumbnails\_fn(k) function, or more precisely this line:

target\_mc.\_x = hit\_left.\_x+(target\_mc.\_width+5)\*k;

The tutorial im talking about is this one:  
[http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

Anyone know how to do this?

Cheers,  
David
