# Thumbnail menu with next and prev btns

**URL:** https://forum.kirupa.com/t/thumbnail-menu-with-next-and-prev-btns/89000
**Category:** Uncategorized
**Created:** [May 4, 2005, 7:41am UTC](https://forum.kirupa.com/t/thumbnail-menu-with-next-and-prev-btns/89000 "2005-05-04T07:41:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![surya\_mayekar](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@surya\_mayekar](https://forum.kirupa.com/u/surya_mayekar)
#### Post date: [May 4, 2005, 7:41am UTC](https://forum.kirupa.com/t/thumbnail-menu-with-next-and-prev-btns/89000/1 "2005-05-04T07:41:11Z")

</div>

i have a lil problem… 🙂

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  
🙂
