# Cannot Make Multiple Mc's As2

**URL:** <https://forum.kirupa.com/t/cannot-make-multiple-mcs-as2/260788>\
**Category:** flash\
**Created:** [May 19, 2008, 10:01pm UTC](https://forum.kirupa.com/t/cannot-make-multiple-mcs-as2/260788 "2008-05-19T22:01:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scheisse](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Post date:** [May 19, 2008, 10:01pm UTC](https://forum.kirupa.com/t/cannot-make-multiple-mcs-as2/260788/1 "2008-05-19T22:01:34Z")

</div>

My problem is, when I click a button it creates a movieclip perfectly and it does what it is supposed to do, the only problem is, if I click another button, it erases the one that is already in progress and makes a new one at the 2nd buttons location. (Which it shouldn’t)  
It SHOULD create a separate movieclip at the second location, leaving the first one to run its course.

I have written this code for 8 different keys:  
(This only displays 2 of them)

```auto

listener.onKeyDown=function():Void {
		if(Key.isDown(65)){ //A
		
	if(!dropper.hasStarted){
attachMovie("dropper", "dropper", dropper.swapDepths(getNextHighestDepth()), {_x:78, _y:108.1});
	dropper.hasStarted = true;
	}

letter = "A";		
		}
//------------------------------1
listener2.onKeyDown=function():Void {
		if(Key.isDown(83)){ //S
		
	if(!dropper2.hasStarted){
attachMovie("dropper2", "dropper2", dropper2.swapDepths(getNextHighestDepth()), {_x:168.9, _y:108.1});
	dropper2.hasStarted = true;
	}

letter = "S";
		}
}
//------------------------------2

```

Can anyone help pleeease?

---

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [May 20, 2008, 6:22am UTC](https://forum.kirupa.com/t/cannot-make-multiple-mcs-as2/260788/2 "2008-05-20T06:22:38Z")

</div>

try  
this.getNextHighestDepth()

instead of dropper2.swapDepths(getNextHighestDepth()) and vice versa.
