Reference MC attached in a loop

Hi all,

I have a menu from attaching mc’s in a loop. I want to change the color of the mc on RollOver but I need to be able to ref. what mc. So I think I need to make ref. to the mc as I going through the loop.

The mc info comes from a XML which also supplied the color info for each mc.

[AS]
myXml = new XML();
myXml.ignoreWhite = true;
myXml.onLoad = function(success) {
if (success) {
loadBtn();
} else {
trace(“XML not loaded”);
}
};
var btn_spacing = 24;
myXml.load(“places.xml”);
loadBtn = function () {
start = myXml.firstChild.childNodes;
for (var i = 0; i<start.length; i++) {
info = start*;
navBtn = nav_mc.holder_mc.attachMovie(“btn_mc”, “btn_mc+i”, i+1);
navBtn.base_mc._alpha = 0;
navBtn._y = btn_spacing*i;
navBtn.name = info.attributes.name;
navBtn.id = info.attributes.id;
navBtn.idColor = info.attributes.color;
navBtn.num = this[“btn_mc+i”]
navBtn.name_txt.text = navBtn.name;
navBtn.onRollOver = function() {
changeColor(this.num, this.idColor);
this.base_mc._alpha = 100;
this.name_txt.textColor = 0x000000;
};
navBtn.onRollOut = function() {
this.base_mc._alpha = 0;
this.name_txt.textColor = 0xffffff;
};
navBtn.onRelease = function() {
trace(this.idColor);
};
}
};
changeColor = function (tar, col) {
banColor = new Color(tar);
banColor.setRGB(col);
};
[/AS]

[AS]
<?xml version=“1.0” encoding=“ISO-8859-1”?>
<menu>
<place name=" NORTH WEST" color=“0xfaaa05” />
<place name=" NORTH WALES" color=“0x9ef807” />
<place name=" MID WALES" color=“0x0af5ba” />
<place name=" WEST MIDLANDS" color=“0x0792f8” />
<place name=" SOUTH WALES" color=“0xf5620a” />
<place name=" SOUTH WEST" color=“0xf50a80” />
<place name=" NORTHEAST + WALES" color=“0xf50a0a” />
</menu>
[/AS]