# Help rotating MovieClips

**URL:** <https://forum.kirupa.com/t/help-rotating-movieclips/250150>\
**Category:** flash\
**Created:** [January 26, 2008, 12:15am UTC](https://forum.kirupa.com/t/help-rotating-movieclips/250150 "2008-01-26T00:15:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JRRC](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JRRC](https://forum.kirupa.com/u/JRRC)\
**Post date:** [January 26, 2008, 12:15am UTC](https://forum.kirupa.com/t/help-rotating-movieclips/250150/1 "2008-01-26T00:15:49Z")

</div>

Hi,

First of all, i’m not into ActionScript, I know how to use Flash for animating but never really got into it save from simple stuff like “stop” or “gotoAndPlay”. Right now I’m trying to make a Drag and Drop toy-like-movie where you have multiple Movieclips which you can move them around as well as rotate them.

I was trying to achieve this using this code:

on (press) {  
startDrag(this, true);  
}  
on (release) {  
stopDrag();  
}  
on (keyPress “\<Right\>”) {  
this.\_rotation += 15;  
}

However, when i have the Clip duplicated, it only affects that one. I tried using a “rollOver” and then an If Statement so the rotation would work on the CLip i put my mouse over, like so:

on (rollOver) {  
if (Key.isDown(Key.RIGHT)) {  
this.\_rotation += 15  
}  
}

Yet it dosen’t work. What can i do? Is there a way to force multiple “onEvents”?

Thanks in advance,

JRRC.
