# Help with Photo Gallery with thumbnails

**URL:** <https://forum.kirupa.com/t/help-with-photo-gallery-with-thumbnails/186973>\
**Category:** flash\
**Created:** [April 25, 2006, 6:54pm UTC](https://forum.kirupa.com/t/help-with-photo-gallery-with-thumbnails/186973 "2006-04-25T18:54:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![verabr](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/verabr/32/2385_2.png) [@verabr](https://forum.kirupa.com/u/verabr)\
**Post date:** [April 25, 2006, 6:54pm UTC](https://forum.kirupa.com/t/help-with-photo-gallery-with-thumbnails/186973/1 "2006-04-25T18:54:39Z")

</div>

I’m doing this tutorial [http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

But when I try to make all this flash into a movie clip, so I can put the gallery inside a flash I already have, it doesn’t scroll the thumbnails.:\*( [http://www.bac.cc/test/page1.htm](http://www.bac.cc/test/page1.htm)

Is something in the action script that I have to change?

Thank you very much for you help!

---

<div class="post-metadata">

**Author:** ![verabr](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/verabr/32/2385_2.png) [@verabr](https://forum.kirupa.com/u/verabr)\
**Post date:** [April 25, 2006, 7:44pm UTC](https://forum.kirupa.com/t/help-with-photo-gallery-with-thumbnails/186973/2 "2006-04-25T19:44:57Z")

</div>

Just found the solution! If someone is having the same problem  
here is what I changed:

- added “level1.” to the “if” line  
and removed “\_root.” on the “else if” line

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

[http://www.bac.cc/test/page2.htm](http://www.bac.cc/test/page2.htm)
