# \_level0 problems

**URL:** <https://forum.kirupa.com/t/-level0-problems/54185>\
**Category:** flash\
**Created:** [June 11, 2004, 6:46pm UTC](https://forum.kirupa.com/t/-level0-problems/54185 "2004-06-11T18:46:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakke](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jakke](https://forum.kirupa.com/u/jakke)\
**Post date:** [June 11, 2004, 6:46pm UTC](https://forum.kirupa.com/t/-level0-problems/54185/1 "2004-06-11T18:46:35Z")

</div>

I have a new problem Ⓜ  
I want to have one code for all the buttons, so when I release button with instance name 001 flash opens in a container 001.swf but when I use this code, It want always open ‘\_level0.main.001.swf’ and when I try to play it in the index.swf it wants to open ‘\_level0.content.main.001.swf’.  
My movie has a 1.swf with a mc called ‘content’, in that mc 2.swf is loaded and 2;swf contains also a mc ‘content’ and that mc has to load 001.swf  
That ‘main’ stands for the mc that contains the buttons.  
This is the code I use:

```auto
topNavArray = ["001", "001", "002", "003", "004", "005"];

for (var i = 0; i<topNavArray.length; i++) {

	but = this[topNavArray*];
	
	but.i = i;
	
	but.onRollOver = function() {
		var myColor = new Color(this);
		myColor.setRGB(0x89c425);
	};
	
	but.onRollOut = function() {
		var myColor = new Color(this);
		myColor.setRGB(0x666666);
	};
	
	but.onRelease = function() {
		setButtons(this.i);
		if (_parent.section != this + ".swf") {
			_parent.section = this + ".swf";
		}
		_parent.transition.gotoAndPlay("closing");
	};

}

```

I hope somebody can fix this!
