# FLASH CS3 Help: Duplicate movie clip and Dynamic Image Loading

**URL:** <https://forum.kirupa.com/t/flash-cs3-help-duplicate-movie-clip-and-dynamic-image-loading/298575>\
**Category:** flash\
**Created:** [October 21, 2009, 11:15am UTC](https://forum.kirupa.com/t/flash-cs3-help-duplicate-movie-clip-and-dynamic-image-loading/298575 "2009-10-21T11:15:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyber\_rat](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@cyber\_rat](https://forum.kirupa.com/u/cyber_rat)\
**Post date:** [October 21, 2009, 11:15am UTC](https://forum.kirupa.com/t/flash-cs3-help-duplicate-movie-clip-and-dynamic-image-loading/298575/1 "2009-10-21T11:15:13Z")

</div>

**Good Evening,**

First of all im new here at [kirupa.com](http://kirupa.com) but i have been going here to this site for help on source code. Im not an expert nor am i hardcore programmer, but i do enjoy using flash as a graphics design medium.

Question: Im trying to make a page where i duplicate a movie clip where i would load my images externally from a folder. Each duplicated movie clip should have a different image inside it. It doesn’t seem to work. Here is the source code i made:

[COLOR=Red]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[/COLOR]  
stop();

/////////////////////////////////////////////////////////////////////////////  
///VARIABLES/////////////////////////////////////////////////////////////////  
/////////////////////////////////////////////////////////////////////////////

var temp;

picArr = new Array(“img/GIFS/f1.gif”, “img/GIFS/f2.gif”,  
“img/GIFS/f3.gif”, “img/GIFS/f4.gif”,  
“img/GIFS/f5.gif”, “img/GIFS/f6.gif”,  
“img/GIFS/f7.gif”, “img/GIFS/f8.gif”,  
“img/GIFS/f9.gif”, “img/GIFS/f10.gif”,  
“img/GIFS/f11.gif”, “img/GIFS/f12.gif”,  
“img/GIFS/f13.gif”, “img/GIFS/f14.gif”,  
“img/GIFS/f15.gif”, “img/GIFS/f16.gif”,  
“img/GIFS/f17.gif”, “img/GIFS/f18.gif”,  
“img/GIFS/f19.gif”, “img/GIFS/f20.gif”);

var limit = new int();  
var i = new int();

limit = 19;  
i = 0;  
loadMovie(picArr\*, container\_mc);

trace("i: " + i + " limit: "+limit);

/////////////////////////////////////////////////////////////////////////////  
///FUNCTIONS/////////////////////////////////////////////////////////////////  
/////////////////////////////////////////////////////////////////////////////  
while (i\<limit){  
i += 1;  
\_root.container\_mc.duplicateMovieClip(container\_mc, “container\_mc”+i, container\_mc.getDepth()+1);  
temp = “container\_mc” + i;  
temp.\_x = container\_mc.\_width;  
//setProperty(temp, \_x, container\_mc.\_width);  
loadMovie(picArr\*, temp);  
trace("i: " + i + " limit: "+limit + " " + temp);  
}

[COLOR=Red]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[/COLOR]  
NOTE: All my trace functions are for debugging only. The “temp” variable is quite useless but i just thought maybe it couldn’t recognize “container\_mc”+i.

It’s obviously quite brute force, but like i said, im no expert. :hurt:

I am attempting to make an Infinite Slider Menu (in this case picture folio…) using duplicate movie clip and dynamic image loading. I’ll worry about the cascading part later, i just need to make this work right now. Please, i need help :crying:
