# FMX-duplicating MC in sequence

**URL:** <https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124>\
**Category:** flash\
**Created:** [July 9, 2003, 5:37pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124 "2003-07-09T17:37:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagunco](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jagunco](https://forum.kirupa.com/u/jagunco)\
**Post date:** [July 9, 2003, 5:37pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/1 "2003-07-09T17:37:04Z")

</div>

I want to ask if someone can follow me in the right direction of this matter, I want to have a function to duplicating mc or better to place mc on the stage in sequence, imagine, one after anotherm not all when the movie starts, this is possible whit actionscript? I thought to try to use the set Interval, but I don´t know if it is the right way to do it.

thanks

jagunco **BOY**

_A life less ordinary_\*

---

<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:** [July 9, 2003, 6:29pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/2 "2003-07-09T18:29:04Z")

</div>

[AS]//make original clip on stage invisible  
targetClip.\_visible = false;  
//set how many duplicated clips  
var maxClips = 10;  
//variable to be used in adding clips  
var i = 0;  
//function to add clip  
function addClip() {  
//increment the i variably by 1  
i++;  
//duplicate target clip  
newClip = targetClip.duplicateMovieClip(“newClip”+i, i);  
//move new clip along \_x axis  
newClip.\_x = i\*(newClip.\_width+10);  
//if the variable i is greater than or equal to the maxClips variable  
if (i\>=maxClips) {  
//clear the interval and stop running this function  
clearInterval(addClipsInterval);  
}  
}  
//use setInterval to call the addClip function every 100 milliseconds  
var addClipsInterval = setInterval(addClip, 100);  
[/AS]

Theres an example, create a clip on the stage with the instance targetClip to see how it works.

---

<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:** [July 9, 2003, 6:42pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/3 "2003-07-09T18:42:24Z")

</div>

Just for an example of how you might use this, here is the .fla for my footer. If you don’t understand anything, just ask. 😉

---

<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:** [July 9, 2003, 7:48pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/4 "2003-07-09T19:48:09Z")

</div>

**lostinbeta**

this is precisely what i needed, , I must workmore on this, because i want to use it whit some Image Box, i think is cooler to have images appearing one witch time. I had alays problems whit duplicating movie clips to amke “grids” (I think the term is this), but I´m working on it. You know I´m a fun of less than 10 frames ussed in the main timeline.

🙂

\*\*njs12345 \*\*

that was not what I was talking about, but thanks anyway for helping

---

<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:** [July 9, 2003, 8:05pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/5 "2003-07-09T20:05:38Z")

</div>

Never mind. I was just trying to help you get the concept.

Anyway, glad you fixed your problem.

---

<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:** [July 9, 2003, 9:37pm UTC](https://forum.kirupa.com/t/fmx-duplicating-mc-in-sequence/25124/6 "2003-07-09T21:37:57Z")

</div>

🙂

i talked earliar that i thought

i was trying to use it whit MPIIMAGE BOX, and image box that i found in Macromedia exchange, but the thing dosen´t work. When i duplicate the image box, it´s okay, but whe i try to target every instance of it, the thing dosen´t work.

Do you think youcan lok at both codes, I was trying some experiments
