# Showing next set of thumb with fwd and prev button

**URL:** https://forum.kirupa.com/t/showing-next-set-of-thumb-with-fwd-and-prev-button/269767
**Category:** Uncategorized
**Created:** [September 1, 2008, 12:01pm UTC](https://forum.kirupa.com/t/showing-next-set-of-thumb-with-fwd-and-prev-button/269767 "2008-09-01T12:01:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)
#### Post date: [September 1, 2008, 12:01pm UTC](https://forum.kirupa.com/t/showing-next-set-of-thumb-with-fwd-and-prev-button/269767/1 "2008-09-01T12:01:43Z")

</div>

Hi everyone,

I am going crazy with that thumbnail menu that i am currently working on…  
I really dont get whats going on here in the code… It looks fine and even trace the values that i need but it just does not work.  
In overall, i have an Empty MC which is populated with 8 thumb via a for loop each time i click the next button. When i press next it must go forward and show the next set of thumb of the xml file which have been loaded into a variable at very first.

The previous button works opnly when i am on the 2 nd set of thumbs but as soon as i am on the 3 or 4rth set then its a mess. the function does populate my array but does not show them… it says undefined
