# Thumbnails sliding vertically?

**URL:** <https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710>\
**Category:** Uncategorized\
**Created:** [March 29, 2006, 11:56am UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710 "2006-03-29T11:56:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hema77](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hema77](https://forum.kirupa.com/u/hema77)\
**Post date:** [March 29, 2006, 11:56am UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/1 "2006-03-29T11:56:47Z")

</div>

Hi!

I am creating a photo gallery with thumbnails with the help of a tutorial in ‘kirupa’. The tutorial has just been a great help!! However, I would like my thumbnails to slide vertically instead of horizontally. How do I do it? I did change some x and y values but have not managed to get the result…totally new with programming!! Please help!!  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![kernel\_flash](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kernel\_flash](https://forum.kirupa.com/u/kernel_flash)\
**Post date:** [March 29, 2006, 12:11pm UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/2 "2006-03-29T12:11:26Z")

</div>

> …totally new with programming!!

u need to learn it then !!!  
just search on the forum you’ll definitely get one thread pertaining to your problem.

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [March 29, 2006, 2:32pm UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/3 "2006-03-29T14:32:57Z")

</div>

> **[XML Photo Gallery](https://www.kirupa.com/forum/showthread.php?t=199861)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

---

<div class="post-metadata">

**Author:** ![ztowne](https://avatars.discourse-cdn.com/v4/letter/z/dfb087/32.png) [@ztowne](https://forum.kirupa.com/u/ztowne)\
**Post date:** [March 29, 2006, 7:16pm UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/4 "2006-03-29T19:16:45Z")

</div>

finally - something i know how to do…

change the hitleft and hit right rectangles to horizontal - hit left on top, then change the x and y’s in the scroll function.

check the file posted in the previous reply for doubts regarding my lack of specificity…

and good luck  
zach

---

<div class="post-metadata">

**Author:** ![hema77](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hema77](https://forum.kirupa.com/u/hema77)\
**Post date:** [March 30, 2006, 6:40pm UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/5 "2006-03-30T18:40:46Z")

</div>

Well, I managed to work out the thumbnails vertically with the help of the .fla file in one of the threads. Thanks!!

However now another problem… I am now doing this gallery inside a movieclip and the thumbnails don’t scroll!!! :(( Been chaning \_root. to \_parent. but that doesn’t work either! What do I do??

I’m in a mess! HELP!!!

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [March 30, 2006, 7:26pm UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/6 "2006-03-30T19:26:56Z")

</div>

> [@hema77](#):
>
> Well, I managed to work out the thumbnails vertically with the help of the .fla file in one of the threads. Thanks!!
> 
> However now another problem… I am now doing this gallery inside a movieclip and the thumbnails don’t scroll!!! :(( Been chaning \_root. to \_parent. but that doesn’t work either! What do I do??
> 
> I’m in a mess! HELP!!!

if you put the reg point of the mc topleft and position at (0,0), it will work as it is.  
if you are unable to position at x=0.y=0 change the thumbNailScroller function

```auto
tscroller.onEnterFrame = function() {
		if ((_root._xmouse>=thumbnail_mc._x+this._parent._x) && (_root._xmouse<=this._parent._x+thumbnail_mc._x+thumbnail_mc._width)) {
			if ((_root._ymouse>=(this._parent._y+hit_right._y-40)) && (thumbnail_mc.hitTest(hit_right))) {
				thumbnail_mc._y -= scroll_speed;
			} else if ((_root._ymouse<=(this._parent._y+hit_left._y+40)) && (thumbnail_mc.hitTest(hit_left))) {
				thumbnail_mc._y += scroll_speed;
			}
		}

```

---

<div class="post-metadata">

**Author:** ![hema77](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hema77](https://forum.kirupa.com/u/hema77)\
**Post date:** [March 31, 2006, 9:06am UTC](https://forum.kirupa.com/t/thumbnails-sliding-vertically/183710/7 "2006-03-31T09:06:41Z")

</div>

Thanks a million!!! It’s working!
