Quick question on small/big problem - fl8 as2

Please Help!!!

Hiya, just trying to build my own version of the dynamic thumb creator from kirupa gallery for an application project; I’m a little stuck and can’t get my head around some things.

Basically I’ve altered the code (correctly I think?) but still cant get the vertical scroll to work. ■■■■!

[SIZE=1]here’s the code:[/SIZE]

/////////////////////////////////////
// Load XML
/////////////////////////////////////

function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        total = xmlNode.childNodes.length;

        for (i=0; i<total; i++) {

//            image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
//            imagetitle* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
//            subtitle* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
//            info* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
            thumbnails* = xmlNode.childNodes*.childNodes[4].firstChild.nodeValue;
            thumbnails_fn(i);
        }
        //initButtons(); <-- function to execute on loading
    } else {
        content = "■■■■ an error!";
    }
}
//image = [];
//imagetitle = [];
//subtitle = [];
//info = [];
thumbnails = [];

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("illustration.xml");

//////////////////////////////////////////////////////////////////////////

/////////////////////////////////////
// Thumbnail Scroll
/////////////////////////////////////

function thumbNailScroller() {
    // thumbnail code!
    this.createEmptyMovieClip("tscroller",1000);
    scroll_speed = 10;
    tscroller.onEnterFrame = function() {
        if ((_root._xmouse>=thumbnail_mc._x) && (_root._xmouse<=thumbnail_mc._x+thumbnail_mc._width)) {
            if ((_root._ymouse>=(scrollDown._y-5)) && (thumbnail_mc.hitTest(scrollDown))) {
                thumbnail_mc._y -= scroll_speed;
            } else if ((_root._ymouse<=5) && (thumbnail_mc.hitTest(scrollUp))) {
                thumbnail_mc._y += scroll_speed;
            }
        } else {
            delete tscroller.onEnterFrame;
        }
    };
}

/////////////////////////////////////
// Thumbnail Load & Place
/////////////////////////////////////

function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k,thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {

        target_mc._y = scrollUp._y+(eval("thumbnail_mc.t"+k)._height+1)*k; 
        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;
        };
    };
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k],"thumbnail_mc.t"+k);
}

//////////////////////////////////////////////////////////////////////////



I’ve attached the fla if anyone has a second spare to help out someone who’s nearly there…yet so far :frowning:

Thanks a million! :thumb: