# Another XML Gallery Question

**URL:** <https://forum.kirupa.com/t/another-xml-gallery-question/246158>\
**Category:** flash\
**Created:** [December 7, 2007, 4:37pm UTC](https://forum.kirupa.com/t/another-xml-gallery-question/246158 "2007-12-07T16:37:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomNez](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tomnez/32/1674_2.png) [@TomNez](https://forum.kirupa.com/u/TomNez)\
**Post date:** [December 7, 2007, 4:37pm UTC](https://forum.kirupa.com/t/another-xml-gallery-question/246158/1 "2007-12-07T16:37:26Z")

</div>

I wanted to find a way to highlight current thumbnails, and I successfully did this by using the tutorial in the archives found [here](http://www.kirupa.com/forum/archive/index.php/t-260393.html)

My question is, when the thumbnails FIRST load and the first image is loaded, how can I get the first thumbnail to already be highlighted? Here is what I’ve tried and cannot figure out why it isn’t working.

in the firstImage function, I added this:

* * *

function firstImage() {

```
if (loaded == filesize){
    
    picture._alpha = 0;
    **firstThumb = eval("thumbnail_mc.t"+0);
      firstThumb.filters = [myDropShadowFilter];**
    picture.loadMovie(image[0],1);
    desc_txt.text = description[0];
    picture_num();

}

```

## }

The prevImage and nextImage functions both work fine when I add the same code:

* * *

function nextImage() {

```
if (p&lt;(total-1)) {

    p++;
    if (loaded == filesize) {

        picture._alpha = 0;

```

\*\* resetThumb();  
prevThumb = eval(“thumbnail\_mc.t” +p);  
prevThumb.filters = [myDropShadowFilter];\*\*  
picture.loadMovie(image[p],1);  
linkBtn.onRelease = function() {  
getURL(link[p], “\_self”);  
};  
desc\_txt.text = description[p];  
picture\_num();

```
    }

}

```

## }

my resetThumb function is the same as the reSet(); from the tutorial I linked to at the top of this post. And the dropShadowFilter are two functions i set to add or delete a drop shadow (which is how im displaying the current thumb).

Does anyone know why my filter isn’t running on firstImage when I load the gallery? Any help is greatly appreciated.

-Tom
