Changing variable inside XML loaded content? not working?

Hello
I need to change the Variable: “currItem” in this ActionScript, when I press a button like the buttons “buttonA” and “buttonB” also in this AS. I have tried to make a function for buttonB in this AS, but it’s not working? PLease it’s quite urgent :frowning:

import mx.transitions.Tween;
import mx.transitions.easing.*;
var sti = _root.mcContent.mcStartpage.mcAlfabet;
var time = 2;
var style = Strong.easeOut;
_root.btnHome.enabled = false;
_root.btnHome._visible = false;
function slideInfo(){
	_root.btnHome.enabled = true;
	_root.btnHome._visible = true;
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, -675, time, true);
	var alphaValue:Tween = new Tween(btnHome, "_alpha", Strong.easeOut, 0, 100, time, true);
	var alphaValue:Tween = new Tween(btnManual, "_alpha", Strong.easeOut, 100, 0, time, true);
    xPosition.onMotionFinished = function() {
		_root.btnManual._visible = false;
    }
	    _root.btnManual.enabled = false;
}
_root.btnHome.onRelease = function () {
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, 4, time, true);
	var alphaValue:Tween = new Tween(btnHome, "_alpha", Strong.easeOut, 100, 0, time, true);
	var alphaValue:Tween = new Tween(btnManual, "_alpha", Strong.easeOut, 0, 100, time, true);
	xPosition.onMotionFinished = function() {
		_root.btnManual.enabled = true;
    }
	_root.btnManual._visible = true;
}
mcContent.bogstavListe.btnFrem.onRelease = function () {
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, -1350, time, true);
}
mcContent.bogstavListe.btnTilbage.onRelease = function () {
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, 4, time, true);
}
mcContent.bogstavInfo.btnTilbage2.onRelease = function () {
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, -675, time, true);
}
function DisplayInfo(){
	var xPosition:Tween = new Tween(mcContent, "_x", style, mcContent._x, -1350, time, true);
	mcContent.bogstavInfo.txtBogstav.text = this.beskrivelse_text;
	mcContent.bogstavInfo.piktogram.loadMovie(this.piktogram);
	_root.txtInfo.text = this.txtInfo;
}
sti.buttonA.onRelease = function () {
      slideInfo();
      currItem = menu_xml.firstChild.childNodes[0].firstChild;
}
sti.buttonB.onRelease = function () {
      slideInfo();
      currItem = menu_xml.firstChild.childNodes[1].firstChild;
}
var item_spacing = 28; // how far menu items are spaced veritcally
var item_count = 0; // counts menu items as they are added from the XML
function CreateMenu(menu_xml){
	currItem = menu_xml.firstChild.childNodes[0].firstChild; //this needs to change to "currItem = menu_xml.firstChild.childNodes[1].firstChild;" when buttonB is pressed.
	do {
			var ordet = currItem.firstChild.nextSibling;
			var beskrivelse = ordet.nextSibling;
			var piktogrammet = beskrivelse.nextSibling;
			var txtInfoen = currItem.parentNode;
			var item_mc = mcContent.bogstavListe.contentMain.attachMovie("menu_item","item"+item_count, item_count);
			item_mc._y = item_count * item_spacing;
			item_count++;
			item_mc.main_btn.txtInfo = ordet.firstChild.nodeValue;
			item_mc.bogstav_txt.text = ordet.firstChild.nodeValue;
			item_mc.main_btn.piktogram = piktogrammet.firstChild.nodeValue;
			item_mc.main_btn.beskrivelse_text = beskrivelse.firstChild.nodeValue;
			item_mc.main_btn.onRelease = DisplayInfo;
		}
	while (currItem = currItem.nextSibling); // continue loop if more items exist after current
}
var ordbog_xml = new XML();
ordbog_xml.ignoreWhite = true;
ordbog_xml.onLoad = function(success){
	if (success) CreateMenu(this);
	else trace("Fejl ved indlæsning af XML");
}
ordbog_xml.load("flashXML.xml");