# Drag Drop Rotate Multiple MCs in AS2

**URL:** <https://forum.kirupa.com/t/drag-drop-rotate-multiple-mcs-in-as2/325545>\
**Category:** flash\
**Created:** [October 21, 2011, 7:23pm UTC](https://forum.kirupa.com/t/drag-drop-rotate-multiple-mcs-in-as2/325545 "2011-10-21T19:23:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elusivemuse](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@elusivemuse](https://forum.kirupa.com/u/elusivemuse)\
**Post date:** [October 21, 2011, 7:23pm UTC](https://forum.kirupa.com/t/drag-drop-rotate-multiple-mcs-in-as2/325545/1 "2011-10-21T19:23:12Z")

</div>

Hello.  
I’m trying to have multiple movie clips that you can drag and drop; and rotate using the key Press Left. I can make them drag and drop independently, but when trying to rotate each movie clip independently, only the first one works.  
I put the script on each mc - no problem.

//Movie clip “one”  
on (press) {  
startDrag(one, true);  
}  
on (release) {  
stopDrag();  
}

Then created a button and put inside each movie clip with it’s own script:  
//Button used in MC1  
on (keyPress “\<Left\>”) {  
\_parent.withObject(\_root).one;  
\_rotation += 180;  
}

//Button used in MC2  
on (keyPress “\<Left\>”) {  
\_parent.withObject(\_root).two;  
\_rotation += 180;  
}

But only the first one rotates. I also notice that the MC rotates when the mouse is anywhere, rather than where the box is – so made sure the “hit” area in the button was solid. I really don’t know if this has anything to do with it.

Is it possible to have multiple movie clips use the same key press and work independently?

I’m obviously having a hard time. Thank you for any help you can offer.
