"_level" Pathing Problem

I’m making an XML powered menu for my website and it works fine as a stand-alone movieclip on my stage. But when I nest it inside a few more movieclips it stops working and I don’t see why.

The original path was “_level0.m5d” but now since it’s in a few more clips it should be “_level0.portfolioNavMC.p5dMC.m5d” but that doesn’t seem to work.

Here’s my full script so you guys can give it a look over:

var xmlData:XML = new XML();
_level0.portfolioNavMC.p5dMC.m5d.xmlData.ignoreWhite = true;
_level0.portfolioNavMC.p5dMC.m5d.xmlData.load('m5d.xml');
_level0.m5d.xmlData.onLoad = function():Void  {
	_level0.m5d.qtd = this.childNodes[0].childNodes.length;
	for (i=0; i<qtd; i++) {
		_level0.portfolioNavMC.p5dMC.m5d.xmlMenu.duplicateMovieClip('xmlMenu'+i, _level0.portfolioNavMC.p5dMC.m5d.getNextHighestDepth());
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i]._y += i*16;
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].t = this.childNodes[0].childNodes*.childNodes[0].firstChild;
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].texto.text = _level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].t.nodeValue;
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].link = this.childNodes[0].childNodes*.attributes.link;
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].onRollOver = function() {
			loadMovie(this.link, this.previewMC);
		};
		_level0.portfolioNavMC.p5dMC.m5d['xmlMenu'+i].onRollOut = function() {
			unloadMovie(this.previewMC);
		};
	}
	_level0.portfolioNavMC.p5dMC.m5d.m5d.xmlMenu.unloadMovie();
};

The only reason I can think of why this might not work is because “portfolioNavMC” is dynamically attached to the root timeline, but even when I just drag it onto the stage and apply the Instance Name that way it still doesn’t work!

Anyone have any ideas why I can’t get this thing to work?