# "\_level" Pathing Problem

**URL:** https://forum.kirupa.com/t/-level-pathing-problem/184130
**Category:** flash
**Created:** [April 2, 2006, 2:37pm UTC](https://forum.kirupa.com/t/-level-pathing-problem/184130 "2006-04-02T14:37:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DougOfTheAbaci](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DougOfTheAbaci](https://forum.kirupa.com/u/DougOfTheAbaci)
#### Post date: [April 2, 2006, 2:37pm UTC](https://forum.kirupa.com/t/-level-pathing-problem/184130/1 "2006-04-02T14:37:49Z")

</div>

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:

```auto
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?
