# attachMovie woes

**URL:** <https://forum.kirupa.com/t/attachmovie-woes/148959>\
**Category:** flash\
**Created:** [May 24, 2005, 11:42pm UTC](https://forum.kirupa.com/t/attachmovie-woes/148959 "2005-05-24T23:42:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_East\_High](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imported_east_high/32/1331_2.png) [@imported\_East\_High](https://forum.kirupa.com/u/imported_East_High)\
**Post date:** [May 24, 2005, 11:42pm UTC](https://forum.kirupa.com/t/attachmovie-woes/148959/1 "2005-05-24T23:42:10Z")

</div>

I got my xml portfolio to duplicate movie clips for the thumbnails via attachMovie and it’s all working great except for one thing. The mc animation only plays for the last thumbnail and not all of them. I’ve been searching the forums for a clue, but I’m afraid I’m in over my head on this one. I don’t even know what to search for. :q: Can anyone help?  
Here’s the code.

```auto
function GeneratePortfolio(portfolio_xml) {
	var portfolioPictures = portfolio_xml.firstChild.childNodes;
	for (var i = 0; i<portfolioPictures.length; i++) {
		var currentPicture = portfolioPictures*;
		var currentThumb_mc = form_mc.attachMovie("thumb_mc", "thumb_mc"+i, i);
currentThumb_mc.onRollOver = currentThumb_mc.onDragOver=function () {
			info_txt.text = this.title;
			currentThumb_mc.play();
		};
		currentThumb_mc.onRollOut = currentThumb_mc.onDragOut=function () {
			info_txt.text = "";
			currentThumb_mc.play();
		};

```
