# Trying to attachMovie with no success

**URL:** <https://forum.kirupa.com/t/trying-to-attachmovie-with-no-success/109666>\
**Category:** Uncategorized\
**Created:** [May 7, 2004, 7:43pm UTC](https://forum.kirupa.com/t/trying-to-attachmovie-with-no-success/109666 "2004-05-07T19:43:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah012](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sarah012](https://forum.kirupa.com/u/sarah012)\
**Post date:** [May 7, 2004, 7:43pm UTC](https://forum.kirupa.com/t/trying-to-attachmovie-with-no-success/109666/1 "2004-05-07T19:43:41Z")

</div>

I have created an array of XML Nodes called ContainerArray. Now I would like to attach a movie clip for each of the nodes and fill text boxes inside those movie clips with information from the nodes attributes. Here is my code:

```auto
function buildContainerArray() {
			ContainerArray = new Array
			for (i=0; i<TitleNode.childNodes.length; i++){
				curContainer=TitleNode.childNodes*;
				ContainerArray* = new Container (curContainer.attributes.number, curContainer.attributes.name, curContainer.attributes.type);
			}
			makeContainer();
	}

	
	function makeContainer(){
		for (b=0; b<ContainerArray.length; b++){
			attachMovie("con_button", "selection"+b, b);
			_root["selection" + b]._x = 15;
			_root["selection" + b]._y = 90 + (b*30);
			trace ("worked");
		}
		eval ("selection" + b).onPress = function() {
			if (eval ("selection" + b).type_box.text="container") {
				trace ("this is a container");
			}else if (eval ("selection" + b).type_box.text="test") {
				trace ("this is a test");
			}
		}
	}
	
	function Container (numbers, names, types) {
		_root["selection" + b].number_box.text=numbers
		_root["selection" + b].names_box.text=names
		_root["selection" + b].type_box.text=types
		trace (numbers)
		trace (names)
		trace (types)
	}  
}

```

It all seems to work fine except for the attachmovie. I get nothing. Any suggestions?
