# Help with your thumbNailScroller function

**URL:** <https://forum.kirupa.com/t/help-with-your-thumbnailscroller-function/267525>\
**Category:** flash\
**Created:** [August 2, 2008, 5:19am UTC](https://forum.kirupa.com/t/help-with-your-thumbnailscroller-function/267525 "2008-08-02T05:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erandil](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@erandil](https://forum.kirupa.com/u/erandil)\
**Post date:** [August 2, 2008, 5:19am UTC](https://forum.kirupa.com/t/help-with-your-thumbnailscroller-function/267525/1 "2008-08-02T05:19:56Z")

</div>

Im very new with programming in Flash. I was reading your tutorial on adding a thumbnail to an image gallery. Im trying to use your [FONT=Arial][SIZE=2]thumbnail\_final.fla inside another movie and is not working for me. I made a movie, in Scene 1 of this movie i have an empty movie clip(DisplayArea) and a menu button(Gallery) so that when i hit the Gallery button it load the thumbnail)final movie into the empty movie clip DisplayArea. Everything work except for the [FONT=Arial][SIZE=2]thumbNailScroller function. It load all the thumbnails and you can click them and they load the matching big picture and all but the scrolling function is not working. I tried chanigin a few thing but im very new to programming can anybody help me?

function thumbNailScroller() {  
// thumbnail code!  
this.createEmptyMovieClip(“tscroller”, 1000);  
scroll\_speed = 10;  
tscroller.onEnterFrame = function() {  
if ((\_root.\_ymouse\>=thumbnail\_mc.\_y) && (\_root.\_ymouse\<=thumbnail\_mc.\_y+thumbnail\_mc.\_height)) {  
if ((\_root.\_xmouse\>=(hit\_right.\_x-40)) && (thumbnail\_mc.hitTest(hit\_right))) {  
thumbnail\_mc.\_x -= scroll\_speed;  
} else if ((\_root.\_xmouse\<=(hit\_left.\_x+40)) && (thumbnail\_mc.hitTest(hit\_left))) {  
thumbnail\_mc.\_x += scroll\_speed;  
}  
} else {  
delete tscroller.onEnterFrame;  
}  
};

As i debug the movie the thumbnail\_mc appears as a \_level0.DisplayArea.thumbnail\_mc[/SIZE][/FONT][/SIZE][/FONT]
