# Rotation around specific x and y values

**URL:** <https://forum.kirupa.com/t/rotation-around-specific-x-and-y-values/296308>\
**Category:** Uncategorized\
**Created:** [September 13, 2009, 4:25am UTC](https://forum.kirupa.com/t/rotation-around-specific-x-and-y-values/296308 "2009-09-13T04:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wintercat](https://avatars.discourse-cdn.com/v4/letter/w/ecb155/32.png) [@wintercat](https://forum.kirupa.com/u/wintercat)\
**Post date:** [September 13, 2009, 4:25am UTC](https://forum.kirupa.com/t/rotation-around-specific-x-and-y-values/296308/1 "2009-09-13T04:25:22Z")

</div>

Hi there,

I was wondering if there’s a way to rotate a movie clip around a specific x & y value? I’ve been looking through tutorials but they all seem to use maths to control the positioning, but I think it’s probably unnecessarily complicated for what I want to do. I have a number of shapes which I want to rotate around a single point.

This is what I have so far:

```auto
triangle1_mc.addEventListener(Event.ENTER_FRAME, rotateMovieClip);

function rotateMovieClip(e:Event)
{
    e.target.rotation += 0.5;
}

```

This causes the triangle to rotate around it’s centre. How would I tell it to rotate around the following point?  
x 164.8  
y 161.1

Thanks for your help!
