# Creating a grid \> attachMovie

**URL:** <https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965>\
**Category:** Uncategorized\
**Created:** [August 8, 2003, 1:40pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965 "2003-08-08T13:40:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceze](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@ceze](https://forum.kirupa.com/u/ceze)\
**Post date:** [August 8, 2003, 1:40pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/1 "2003-08-08T13:40:44Z")

</div>

hello

I’m trying to create a grid of instances of (74x56) clips, and each one of the created instances must be named and numbered in an order so that it goes from left to right, top to bottom. I have been trying this with attachMovie and duplicateMovie, but unable to figure all out. can someone give me a hint?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 1:57pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/2 "2003-08-08T13:57:18Z")

</div>

thats a pretty massive grid :-\ 4100+ is a lot of clips to be attaching

```auto
spacing = 5;
for (x = 0; x < 74; x++){
for (y = 0; y < 56; y++){
clip = this.attachMovie("id", "gridClip"+this.depth, this.depth++, {_x: x*spacing, _y: y*spacing});
clip.gridposition = {x: x, y: y};
}
}

```

BTW, the time you spent posting this on the various forums, you could have probably found your answer in a search 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 2:00pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/3 "2003-08-08T14:00:48Z")

</div>

thanks. i will try that now. Thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 2:32pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/4 "2003-08-08T14:32:38Z")

</div>

[http://www.kirupa.com/developer/actionscript/grid.htm](http://www.kirupa.com/developer/actionscript/grid.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 2:41pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/5 "2003-08-08T14:41:21Z")

</div>

> \*Originally posted by senocular \*  
> **BTW, the time you spent posting this on the various forums**  
> 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 2:55pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/6 "2003-08-08T14:55:26Z")

</div>

Yes, thoriphes knows all about the OTHER FORUMS!!! 🅰

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:03pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/7 "2003-08-08T15:03:18Z")

</div>

Haha!! 😛 I’m so naïve… [http://www.actionscript.org/forums/showthread.php3?s=&threadid=32523](http://www.actionscript.org/forums/showthread.php3?s=&threadid=32523)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:03pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/8 "2003-08-08T15:03:58Z")

</div>

and how would our beloved sen go about knowing _that_?

:whistle:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:11pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/9 "2003-08-08T15:11:28Z")

</div>

pom told me =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:16pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/10 "2003-08-08T15:16:25Z")

</div>

Since I’m new to actionscript and to programing, I also need to look to a forum full of people (like you all), wiling to answer and help a guy like me. So i might add that this is one of the best. He he!  
ok maybee THE BEST OFF ALL.

By the way, i had previously to my post tried the tuturial you mentioned, and it works in a certain sense, but i was unable to convert the ideas mentioned to attachMovie, having each instance organized as i mentioned. It gets a bit messed up in that part. I noticed this wen I requested the list of objects in the preview. So i had to try something else.

Thank you all again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:18pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/11 "2003-08-08T15:18:16Z")

</div>

I guess that means its fixed?

YAY [kirupa.com](http://kirupa.com) are the winners! 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:25pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/12 "2003-08-08T15:25:05Z")

</div>

BTW if you are so curious, i posted also in:

[http://www.were-here.com/forum/tm.asp?m=1271006&p=1&tmode=1&smode=1](http://www.were-here.com/forum/tm.asp?m=1271006&p=1&tmode=1&smode=1)

and

> **[Adobe Support Community](https://community.adobe.com)**
>
> Come for help, be inspired. The Adobe Support Community is the place to ask questions, find answers, learn from experts and share your knowledge. We have everything to help you get started, learn how to's, tips and tricks, and unlock your creativity.

and

[http://www.ultrashock.com/](http://www.ultrashock.com/)

………………  
:trout:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:26pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/13 "2003-08-08T15:26:04Z")

</div>

copy paste for fun and profit!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:27pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/14 "2003-08-08T15:27:45Z")

</div>

ooh, webforums and ultrashock…

must check those out…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:29pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/15 "2003-08-08T15:29:51Z")

</div>

you didnt hook up over at ultrashock thor?? :!: They aint so hot overthere anyway. Seems to like 90% bombshock or site checks or copycats

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 3:47pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/16 "2003-08-08T15:47:25Z")

</div>

Did you take a look at the thread at WH? I love those guys 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 10:12pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/17 "2003-08-08T22:12:18Z")

</div>

lol, he got like 5 different answers.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 11:28am UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/18 "2003-08-09T11:28:06Z")

</div>

i didn’t try all 5 of them, but i guess that there are many ways of doing things in actionscript. I had tried a couple of them before, none worked. By the way, a very big thanks to senocular. Your sugestion worked perfect!!😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 12:41pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/19 "2003-08-09T12:41:26Z")

</div>

And for the record, I don’t like WH anymore 😉

glad its working for ya ceze 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 1:06pm UTC](https://forum.kirupa.com/t/creating-a-grid-attachmovie/27965/20 "2003-08-09T13:06:08Z")

</div>

What’s up with WH anyway? A lot of old regulars say they don’t like it anymore :-\
