# duplicateMovieClip: control programmatically?

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-control-programmatically/122370>\
**Category:** Uncategorized\
**Created:** [September 13, 2004, 7:19am UTC](https://forum.kirupa.com/t/duplicatemovieclip-control-programmatically/122370 "2004-09-13T07:19:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wutwjd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wutwjd/32/758_2.png) [@wutwjd](https://forum.kirupa.com/u/wutwjd)\
**Post date:** [September 13, 2004, 7:19am UTC](https://forum.kirupa.com/t/duplicatemovieclip-control-programmatically/122370/1 "2004-09-13T07:19:10Z")

</div>

Hi. It’s been a while since I’ve used Flash ActionScript. I spent all of this evening trying to find a way to do something that seems really simple. Let me tell you what it is:

1. I load a bunch of URLs from an ASP page that point to thumbnails.
2. For each thumbnail, I want to create a movieclip in my main movie.
3. Depending on the number of thumbnails I have, I want to arrange the movieclips in different ways.

I have a movieclip named mc\_thumbnail that I want to duplicate through code. Here’s (sort of) what I have:

for (i = 0; i \< num\_of\_images; i++) {  
mc\_thumbnail.duplicateMovieClip(“image\_” + i, 0);  
…

I get this far and get stuck. I want to do something like:

image\_1.loadMovie("\<some URL\>");

But I can’t find a way to access the duplicated movieclip. I’ve seen someone do it like this:

[“image\_” + i].loadMovie("\<some URL\>");

But this doesn’t seem to work for me.

I hope what I described is clear. I thank you advance for your help.
