Vertical scrolling in xml/flash gallery?

Hello!

Can anyone tell me how to go about making the thumbnails in the gallery scroll vertically instead of horizontally?

Cheers, it’s a great tutorial. :slight_smile:

YC.

[QUOTE=YodelCoder;2353984]Hello!

Can anyone tell me how to go about making the thumbnails in the gallery scroll vertically instead of horizontally?

Cheers, it’s a great tutorial. :slight_smile:

YC.[/QUOTE]

see if this helps

:party: That’s perfect, cheers!
YC.x

[QUOTE=YodelCoder;2354040]:party: That’s perfect, cheers!
YC.x[/QUOTE]
no problem :wink:

Hello again,

Thanks to stringy’s help, have got the gallery working perfectly as a standalone .swf file, but when I try to load it within a mc on my main site, the scroll function ceases to work… Is there something here I need to address to fix this?

Cheers
YC.x

[QUOTE=YodelCoder;2354558]Hello again,

Thanks to stringy’s help, have got the gallery working perfectly as a standalone .swf file, but when I try to load it within a mc on my main site, the scroll function ceases to work… Is there something here I need to address to fix this?

Cheers
YC.x[/QUOTE]
try change to

function thumbNailScroller() {
	// thumbnail code! 
	this.createEmptyMovieClip("tscroller",1000);
	scroll_speed = 10;
	tscroller.onEnterFrame = function() {
		if ((_xmouse>=thumbnail_mc._x) && (_xmouse<=thumbnail_mc._x+thumbnail_mc._width)) {
			if ((_ymouse>=(hit_right._y-40)) && (thumbnail_mc.hitTest(hit_right))) {
				thumbnail_mc._y -= scroll_speed;
			} else if ((_ymouse<=(hit_left._y+40)) && (thumbnail_mc.hitTest(hit_left))) {
				thumbnail_mc._y += scroll_speed;
			}
		} else {
			delete tscroller.onEnterFrame;
		}
	};
}

:slight_smile: Cheers,Stringy.

After stupidly spending ages making changes & wondering why nothing was happening, I realised that I was pointing the load function at an old version of the gallery, lol…

By the time I figured it out, I’d hit on putting this in the main timeline of the external gallery:

this._lockroot=true;

Seems to do the job nicely. :slight_smile: Thanks for all your help!
YC.x