Adding border around dynamically loaded thumbnails

Hi,

This question has probably been asked a number of times in this forum.

I searched and searched, read every reply, but there is nothing satisfactory posted till now.

I tried out all solutions posted, but almost every implementation was incomplete.

So, here is my question:

In the xml photogallery tutorial, if I want to have a border around a thumbnail (which is dynamically loaded), how do I do that?

Here is my function:

function thumbnails_fn(k) {
//trace(‘inside thumbnails_fn’);
var maxTWidth = 100;
var maxTHeight = 67;
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
//target_mc._y = 0+(eval(“thumbnail_mc.t”+k)._height+7)*k;
target_mc._y = 0+(67+7)k;
if (target_mc._width) {
/
Lets get the height and width of the loaded thumbnail */
var w = target_mc._width;
var h = target_mc._height;

        /* Lets proportionately resize it based on the space we have 100x67 */
        if (w>maxTWidth) {
            h = h*maxTWidth/w;
            w = maxTWidth;
        }
        if (h>maxTHeight) {
            w = w*maxTHeight/h;
            h = maxTHeight;
        }
        target_mc._width  = w;
        target_mc._height = h;
    }
    target_mc.pictureValue = k;
    target_mc.onRelease = function() {
        p = this.pictureValue-1;
        nextImage();
    };
    target_mc.onRollOver = function() {
        this._alpha = 50;
    };
    target_mc.onRollOut = function() {
        this._alpha = 100;
    };
};

image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

}

Where do I fit in the drawOutline function and what should I write in it.

I banged my head enough with the DrawingAPI but I could not get it to work.

Help appreciated and wanted urgently :slight_smile:

Thanks,
Mandy.