Problem with menu AS

This is off of Kirupa’s flash collapsable menu with memory, but I can’t get it to work with anything other than how it was created. I have take the time to get rid of the functions (and all calls to them) that I don’t need, but it doesn’t output anything… some help on this would be great.

var parentMovieClips:Array = new Array();
//
// Initiate loading the XML file containing the links
//
function loadItems() {
 var xmlData:XML = new XML();
 xmlData.ignoreWhite = true;
 xmlData.onLoad = loadXML;
 xmlData.load("rotation_menu.xml");
}
loadItems();
//
// Load the XML and call the parseXML function to parse the XML data into more useful parts
//
function loadXML(loaded) {
 if (loaded) {
  parseXML(this);
 } else {
  trace("file not loaded!");
 }
}
//
// Display the parent XML data from the raw XML input
//
function parseXML(links:XML) {
 var parentArray:Array = links.firstChild.childNodes;
 trace(parentArray);
 for (i=0; i<parentArray.length; i++) {
  parentMovieClips.push(emptyMC.attachMovie("menu_item", "item_"+i, emptyMC.getNextHighestDepth(), {_x:5, _y:5, _rotation:30*i, parentName:parentArray*.attributes.title, currentNumber:i}));
  trace(i);
 }
}