Hello,
I created a variation of the XML Photogallery thumbnail. I only need the part with the thumbnails,
there you can scroll through some images, like a carousel.
I started with the version on http://www.kirupa.com/developer/mx2004/thumbnails.htm,
and I also downloaded a zip-file from one of the many threads, called thumbnail_width.fla
But… I forgot which thread it was.
Anyway, to tell you a bit more about what I did:
- I removed the preloader and the part where you normally see the big image.
- I removed the previous and next button
- I changed the width of the flash movie (579 width, 170 height).
- I added a link for the thumbnails to the xml and to the actionscript
Most of it works fine now, there’s only one thing I would like to change, but I don’t know how to change it in the actionscript.
If the swf loads, no images are visible
the first image is streched, I don’t want that. I just want the first images to be visible (like in the original version)
Here’s the part of the script that preloads the movieclip:
function loadThumb() {
var target_mc = thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
var temp = this.createEmptyMovieClip(“tmp”+k, this.getNextHighestDepth());
target_mc.loadMovie(thumbnails[k]);
thumbnail_mc._width = 1160;
thumbnail_mc._height = 149;
temp.onEnterFrame = function() {
if (target_mc._width) {
if (k) {
//if it isn’t the first thumb, get the y position and heigth of the previous thumb
target_mc._x = thumbnail_mc[“t”+(k-1)]._x+thumbnail_mc[“t”+(k-1)]._width+0;
} else {
//set the first thumb to y = 0
target_mc._x = 0;
}
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
target_mc.onRelease = function() {
getURL(link[p], “_self”);
};
nextThumb();
delete this.onEnterFrame;
}
};
}
And I added the whole thing as a zip-file. Hopefully somebody can help me out here!
TIA
Madelon