Thumbnail menu with next and prev btns

i have a lil problem… :slight_smile:

i have created xml based gallery in flash… everything is working good… its like portfolio… having lots of jpgs wid thumbnails… thats fine…

i have like 23 projects… its like verticle menu wid mask showing only 5 thumbnails on page… i have 2 buttons on bottom of the page prev btn and next btn… ok… when i click on next button i want to show next 5 thumbnails which will slide up… and so on… and when i click prev btn i want to slide back previous 5 thumbnails…

i have blank mc whose instance name is menu_mc… i have another mc called thumb_mc which will be attached thru actionscript containing thumbnails from xml file which are like 23 small thumbs…

i have tried like this

on menu_mc attached this action script

menu_mc.onLoad = function() {
this._y = this._y;
div = 5
}

menu_mc.onEnterFrame = function() {
this._y += (endY-this._y)/div;
_root.next_btn.onRelease = function() {
_root.menu_mc.endY = 500;
}
}

but its not working…
help needed

thanx in advance
:slight_smile: