# Kirupa XML Thumbnail Photogallery: scroller question

**URL:** <https://forum.kirupa.com/t/kirupa-xml-thumbnail-photogallery-scroller-question/248041>\
**Category:** flash\
**Created:** [January 3, 2008, 4:58am UTC](https://forum.kirupa.com/t/kirupa-xml-thumbnail-photogallery-scroller-question/248041 "2008-01-03T04:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![websmythe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/websmythe/32/3129_2.png) [@websmythe](https://forum.kirupa.com/u/websmythe)\
**Post date:** [January 3, 2008, 4:58am UTC](https://forum.kirupa.com/t/kirupa-xml-thumbnail-photogallery-scroller-question/248041/1 "2008-01-03T04:58:16Z")

</div>

_RESOLVED_  
Hi,  
I’ve been trying to reformat Kirupas XML thumbnail Photogallery and am having a problem with the position of the hit\_left object in the scroller. The problem is that _hit\_left.\_x_ != 0 and gets added (as an initial width/position) to the beginning of the thumbnails (See image).

[![](http://img512.imageshack.us/img512/6599/hittestproblemuu7.th.jpg)](http://img512.imageshack.us/my.php?image=hittestproblemuu7.jpg)

Is the usual way to solve this by creating a movieclip of all the scroller elements, using it to set _hit\_left.\_x = 0_, and doing a _delete onEnterFrame_ to get at the thumbnails?

_UPDATE_  
Change the following from…

```auto

function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
[COLOR=Red] target_mc._x = hit_left._x+(target_mc._width+5)*k;[/COLOR]
    ...

```

to

```auto

function thumbnails_fn(k) {
   
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
[COLOR=Red][COLOR=Red]**target_mc._x = ((eval("thumbnail_mc.t"+k)._width+5)*k);**[/COLOR]
[/COLOR] ...

```
