Loaded XML content problem

Hi all :slight_smile: I am trying to load info from a xml file and then use it. I can load the info and store it into a XML or XMLList, but a problem appears after that. I have a xml with questions node and two nodes which are named part1 and part2. In both part1 and part2 there are questions nodes and options nodes. What I am trying to do is push question from part1 and part2 into a Array. I have this code

function ShowQuestions():void {
	for (var i:Number=0; i < questions; i++) {
		ArrayJoin = "xmlList.part" + (i+1) +".question.text()";
		QuestArray.push(xmlList.part1.question.text());
		QuestArray.push( "sasfasf");
		trace(QuestArray);
		trace (ArrayJoin);
		
	}

questions var shows me how many parts I have. I was trying to do something with the variable ArrayJoin and use it to show which part of the xmlList I want to push into the array. But when this variable is String it just adds the String to the array. Please help me. 10x in advance :slight_smile: