Hi,
I got a vertical xml gallery from this thread.
It’s working fine but my problem is my thumbnails having different heights. The code supports only the fixed height thumbnails. Anybody having idea how to automatically adjust thumbnails gap with different heights.
The code is below for adjusting the gap… Red comment marked that area
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
[COLOR=Red]// adujusting gap between thumbs[/COLOR]
target_mc._y =(target_mc._height)*k;
//trace(target_mc._width+" "+target_mc._parent._rotation)
target_mc.pictureValue = k;
//trace (target_mc.getDepth);
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function ()
{
this.getNextHighestDepth();
scaleme (this);
};
target_mc.onRollOut = function ()
{
scaleout (this);
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}