# Why won't this... (attachMovie)

**URL:** https://forum.kirupa.com/t/why-wont-this-attachmovie/203973
**Category:** flash
**Created:** [October 16, 2006, 5:20am UTC](https://forum.kirupa.com/t/why-wont-this-attachmovie/203973 "2006-10-16T05:20:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zisme](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zisme](https://forum.kirupa.com/u/zisme)
#### Post date: [October 16, 2006, 5:20am UTC](https://forum.kirupa.com/t/why-wont-this-attachmovie/203973/1 "2006-10-16T05:20:56Z")

</div>

I’m currently using this script:

```auto
x = 1;
while (x <= 12) {
    attachMovie("r_piece","red"+x,1);
    set("red"+x+"._x",100);
    x += 1;
}

```

But it only makes one movie clip. What do I need to change?
