# Thumbs in array for gallery

**URL:** <https://forum.kirupa.com/t/thumbs-in-array-for-gallery/86364>\
**Category:** Uncategorized\
**Created:** [April 12, 2005, 2:23pm UTC](https://forum.kirupa.com/t/thumbs-in-array-for-gallery/86364 "2005-04-12T14:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Septunas](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Septunas](https://forum.kirupa.com/u/Septunas)\
**Post date:** [April 12, 2005, 2:23pm UTC](https://forum.kirupa.com/t/thumbs-in-array-for-gallery/86364/1 "2005-04-12T14:23:42Z")

</div>

[color=darkred]I[/color][color=black] need to get more control over the thumbnails.[/color]  
[color=darkred][/color]  
[color=darkred]gallXML.ignoreWhite = true;  
gallXML.onLoad = gallery;  
gallXML.load (“gallery.xml”);  
function gallery ()  
{  
section = this.firstChild.childNodes [0].attributes.main;  
numimages = gallXML.firstChild.childNodes.length;  
spacing = 31;  
for (i = 0; i \< numimages; i ++)  
{  
centering ()  
picHolder = this.firstChild.childNodes _;  
thumbHolder = thumbnails.createEmptyMovieClip (“thumbnail” + i, i);[/color]  
[color=darkred][size=1][color=black]/_–\> this has to be an array, so that I can give all thumbnails together an order. I thought this was an array, but I can’t get control over this. When I trace ‘thumbHolder’, I get back only the [/color][/size][/color][color=darkred][size=1][color=#000000]last thumb. If I trace ‘this’, than I get the right one. i.e: \_level0.thumbnails.thumbnail4) \*/[/color][/size][/color][color=darkred]  
thumbHolder.\_y = i \* spacing;  
thumbHolder.title = picHolder.attributes.title;  
thumbHolder.main = picHolder.attributes.main;  
thumbLoader = thumbHolder.createEmptyMovieClip (“thumbnail\_image” + i, i);  
thumbLoader.loadMovie (picHolder.attributes.thmb);  
thumbHolder.alphaTo (20, 4);  
thumbHolder.onRollOver = function ()  
{  
this.alphaTo (100, 0.5);  
}  
thumbHolder.onRollOut = function ()  
{  
this.alphaTo (20, 4);  
}  
thumbHolder.onPress = function ()  
{[/color]  
[color=#8b0000][size=1][color=black]//[/color] --\> [color=black]here I want an action for all thumbs together.[/color][/size][/color]  
[color=#8b0000] }[/color]  
[color=#8b0000][/color]  
[color=black]I’ve been busy to understand the Bokel class, but I couldn’t find a good tutorial about thumbnail threatment. [/color]

Regards,
