# attachMovie issues

**URL:** https://forum.kirupa.com/t/attachmovie-issues/149088
**Category:** flash
**Created:** [May 25, 2005, 9:38pm UTC](https://forum.kirupa.com/t/attachmovie-issues/149088 "2005-05-25T21:38:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ococ](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@Ococ](https://forum.kirupa.com/u/Ococ)
#### Post date: [May 25, 2005, 9:38pm UTC](https://forum.kirupa.com/t/attachmovie-issues/149088/1 "2005-05-25T21:38:36Z")

</div>

Hello, I am having an issue with with attachMovie clip, any and all help is appreciated. I am using Flash MX 2004 Pro. Here is my code.

```auto

         path;
mcName;
xPos = 0;
yPos = 0;

    

   function allThumbs() {

   			for (ctr=1; ctr<=40; ctr++) {

						path = "apparel/apparel" + ctr+ "/apparel"+ctr+"_small.swf";

						mcName = ("apparel"+ctr);				 

						this.attachMovie("swap_mc", [mcName], 1);

						eval(mcName)._x = xPos;

						eval(mcName)._y = yPos;

						eval(mcName)._xscale = 50;

						eval(mcName)._yscale = 50;		 

						loadMovie([path],[mcName]);

						xPos= xPos + 38;

   }

   }

   

```

[font=&quot]Basically I have 40 thumbnail swfs in folders. In the current swf I would like to create a new MC with attachMovie, it is an empty swap\_mc out of the library (I have checked the linkage and name). I would like to then name it the contents of the variable mcName. Then take that instance set the x and y positions and scale it down by 50%. Then I would like to load thumbnail .swf into that swap\_mc move over 38 pixels on x-axis and repeat for all 40.[/font]
