I wanted to find a way to highlight current thumbnails, and I successfully did this by using the tutorial in the archives found here
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<(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