[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]