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!
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??
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
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;
}
}