# \[CS3, AS2\] Duplicate Movie Clip HELP

**URL:** https://forum.kirupa.com/t/cs3-as2-duplicate-movie-clip-help/268780
**Category:** flash
**Created:** [August 18, 2008, 8:07pm UTC](https://forum.kirupa.com/t/cs3-as2-duplicate-movie-clip-help/268780 "2008-08-18T20:07:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mnat](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@mnat](https://forum.kirupa.com/u/mnat)
#### Post date: [August 18, 2008, 8:07pm UTC](https://forum.kirupa.com/t/cs3-as2-duplicate-movie-clip-help/268780/1 "2008-08-18T20:07:30Z")

</div>

[FONT=“Palatino Linotype”]Hi, I hope someone will be able to help me with this. I think it is a simple fix, but I’m new to AS and stuck. I am trying to create an interactive floor plan that allows people to choose and arrange furniture. Basically I am making buttons for each piece of furniture that will duplicate the respective piece of furniture (movie clips) onto the stage. I would like people to be able to place as many instances of a movie clip as they desire. This is the code currently on my button:

on (press) {  
i = i + 1;  
circle.duplicateMovieClip(“circle”+i, i);}

Although this duplicates the MC once (giving 2 instances on screen), if I hit it again it erases one of my instances So I can only have two instances at once of one movie clip. I think the problem is that my duplicated instances are ending up on the same layer as the previously duplicated layer, thus deleting it. I though the i= i+1 was solving that, but apparently not. I tried applying something like (var i:Number = 1; i \< 100; i++) to the code but I am not doing it right. If someone can tell me the correct code to achieve this I would appreciate it!

[/FONT]
