# XML gallery load into scrollpane spacing?

**URL:** https://forum.kirupa.com/t/xml-gallery-load-into-scrollpane-spacing/181110
**Category:** flash
**Created:** [March 6, 2006, 4:59pm UTC](https://forum.kirupa.com/t/xml-gallery-load-into-scrollpane-spacing/181110 "2006-03-06T16:59:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![final\_end](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@final\_end](https://forum.kirupa.com/u/final_end)
#### Post date: [March 6, 2006, 4:59pm UTC](https://forum.kirupa.com/t/xml-gallery-load-into-scrollpane-spacing/181110/1 "2006-03-06T16:59:31Z")

</div>

Looking through all the xml gallery examples and tutorials i havent found the simple thing im thinking of, which is to just have the imgs loaded through an xml into a plain old scrollpane so that the spacing between the thumbs is constant. Ive understand the code that spaces the loaded imgs based on a fixed variable, but that is when all the thumbnails are the same size and mine are all the same height, but the widths varies, so i feel i need the code that places the next img to be loaded based on the previous thumbs location.\_x and its .\_width but i cant figure this line of code out which i bet is only a one-liner. Thanks for any help or direction to point me in if i missed a thread.
