MX: Xml Menu issues

[SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366]** XML-Driven** Drop-Down Menu tutorial
[/COLOR][/SIZE][/FONT][/SIZE]I have grabbed this code to creat a xml menu. I have got it read and generate the menu and I have each menu_item clickable. I have an array of objects that defines my Xml nodes and I need the problem seems to be that my array seems to be out of scope within the menu_item function.

[SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366]

code:
[/COLOR][/SIZE][/FONT][/SIZE] GenerateMenu = function (container, name, x, y, depth, xmlNode) {
var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth);
for (i=0; i<xmlNode.childNodes.length; i++) {
curr_item = curr_menu.attachMovie(“menuitem”, “item”+i+"_mc", i);
curr_item._x = x+5;
curr_item._y = y+icurr_item._height+105;
curr_item.trackAsMenu = true;
curr_node = xmlNode.childNodes
;

    // this is in scope
    curr_item.name.text = jean_arr*.name;
    curr_item.onRelease = function() {
        if (pLoaded == pFilesize) {
            picture._alpha = 0;
            
            // none of these are in scope
            picture.name_txt.text = jean_arr*.name;
            picture.holder.loadMovie(jean_arr*.image, this.getNextHighestDepth());
            picture.picture.desc_txt.text = jean_arr*.description[0];
            picture.dHolder.tholder.loadMovie(jean_arr*.thumb[0], this.getNextHighestDepth());
            //
        }
        if (xmlNode.childNodes*.nodeName == "item") {
            curr_item.xmlNode = curr_node;
            curr_item.onRollOver = curr_item.onDragOver=function () {
                var x = this._x+this._width-5;
                var y = this._y+5;
            };
        }
    };
}

};