# Adding Thumbnails tutorial

**URL:** <https://forum.kirupa.com/t/adding-thumbnails-tutorial/286832>\
**Category:** Uncategorized\
**Created:** [April 21, 2009, 6:25pm UTC](https://forum.kirupa.com/t/adding-thumbnails-tutorial/286832 "2009-04-21T18:25:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsbrenneman](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dsbrenneman](https://forum.kirupa.com/u/dsbrenneman)\
**Post date:** [April 21, 2009, 6:25pm UTC](https://forum.kirupa.com/t/adding-thumbnails-tutorial/286832/1 "2009-04-21T18:25:25Z")

</div>

I am having problems with the adding thumbnails tutorial when i put the xml gallery into a movie clip. the thumbnail slider does not work properly. i don’t know if i have to put my movie clip paths in somewhere or what. the section of code that needs help is the following:

this.createEmptyMovieClip(“tscroller”, 1000);  
scroll\_speed = 10;  
tscroller.onEnterFrame = function() {  
if ((\_root.\_ymouse\>=bigplThumbnail\_mc.\_y) &&  
(\_root.\_ymouse\<=bigplThumbnail\_mc.\_y+bigplThumbnail\_mc.\_height))  
{  
if ((\_root.\_xmouse\>=(bigplHit\_right.\_x-40)) &&  
(bigplThumbnail\_mc.hitTest(bigplHit\_right))) {  
bigplThumbnail\_mc.\_x -= scroll\_speed;

```
    } else if ((_root._xmouse&lt;=40) && 
        (bigplThumbnail_mc.hitTest(bigplHit_left))) {
        bigplThumbnail_mc._x += scroll_speed;
    }

} else {
delete tscroller.onEnterFrame;
}

```

};

i have been able to get it to go right, but then the delete tscroller won’t work. anyone that could help would be greatly appreciated. thanks.
