Xml menu: onrollover declared in loop not working

Can somebody please help me with the following 'cause I’m confuesd, or overlooking something completely…

I’m building a small XML menu where I want to call a function for each subitem’s onrollover

part of my code:

[AS]
//*** build submenu items ****
for (j=0; j< numSubItems; j++){
curSubItemName = my_XML.firstChild.childNodes*.childNodes[j].firstChild.nodeValue;
curSubItem = root[“item”+i].createEmptyMovieClip("subItem"+i+"_"+j, myDepth);
curSubItem._y = (j+1)*-spacing;
myDepth++;
curSubItem.onRollOver = function(){
this.subHighLight();
}
}
[/AS]
and the subHighLight function for now just looks like this:
[AS]
MovieClip.prototype.subHighLight = function(){
trace(“test”);
};
[/AS]

The menu gets populated from the XML file, no problem. However, the onRollOver simply isn’t working, but why???

Thanks.