# Rotate movieclip according to mouse direction, drag

**URL:** https://forum.kirupa.com/t/rotate-movieclip-according-to-mouse-direction-drag/243581
**Category:** Uncategorized
**Created:** [November 8, 2007, 3:43pm UTC](https://forum.kirupa.com/t/rotate-movieclip-according-to-mouse-direction-drag/243581 "2007-11-08T15:43:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darth](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@darth](https://forum.kirupa.com/u/darth)
#### Post date: [November 8, 2007, 3:43pm UTC](https://forum.kirupa.com/t/rotate-movieclip-according-to-mouse-direction-drag/243581/1 "2007-11-08T15:43:55Z")

</div>

Hi!

Is it possible to rotate movieclip, while dragging, according to mouse direction and mouse x, y on that clip.

on the picture the 0, 0 of the mc containing red box is where the lines cross, the mouse point is indicated with cursor and around it is the circle where clip’s x and y should be constrained and movieclip should rotate according to mouse movement direction for example: when mouse is moving straight down then the clip’s x, y rotates up and stops when its 12 o’clock…

![](http://forum.kirupa.com/uploads/kirupa/4121/aba31083a431180e.gif)

Does it make any sense?
