duplicateMovieClip: control programmatically?

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.