[actionscript 2] XML and image scrolling with drag button problem!NEED HELP

Hi,
I have an XML image gallery problem. I have created a dragable slider and my problem is that I can’t synchronize the movement of the slider to end with the last image. Did I make any sense??
well the source goes like that:

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
text_url = [];
total = xmlNode.childNodes.length;
//last_child = xmlNode.childNodes.lastChild;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
text_url* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
//firstImage();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“web_dev.xml”);
/////////////////////////////////////

function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+40)*k;
target_mc.pictureValue = k;

    thumbnail_mc.targetWidth = thumbnail_mc._x;
thumbnail_mc.onEnterFrame = function() {
var speed = 5;
thumbnail_mc._x -=((thumbnail_mc.targetWidth+this._x)-100)/speed;

};

handle.onPress = function() {
this.startDrag(false, 54, 470, 754,470);
};
handle.onReleaseOutside = handle.onRelease = function() {
this.stopDrag();
};
handle.onEnterFrame = function() {
if (thumbnail_mc.hitTest(hit_left)) {
thumbnail_mc.targetWidth = this._x ;
//trace(“right”)
} else if (thumbnail_mc.hitTest(hit_right)) {
thumbnail_mc.targetWidth = this._x;
}
}
}

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

}

any suggestions?
thanx
V.