# Rotate and Slide relative to center point

**URL:** <https://forum.kirupa.com/t/rotate-and-slide-relative-to-center-point/311817>\
**Category:** flash\
**Created:** [July 16, 2010, 10:52pm UTC](https://forum.kirupa.com/t/rotate-and-slide-relative-to-center-point/311817 "2010-07-16T22:52:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hausnfranz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hausnfranz/32/2427_2.png) [@Hausnfranz](https://forum.kirupa.com/u/Hausnfranz)\
**Post date:** [July 16, 2010, 10:52pm UTC](https://forum.kirupa.com/t/rotate-and-slide-relative-to-center-point/311817/1 "2010-07-16T22:52:45Z")

</div>

Hello,

I am trying to make an object either rotate around a center when clicking an area, or slide along a bar if clicking second area. I can get it to rotate, but I am having trouble setting up the object to slide along the bar.

The tricky thing is that the bar is a dynamic line between the center point and 0-360 degrees, depending on where the object has been rotated to.

I’ve attached an .fla file, can anyone help? Clicking “degrees” rotates, while clicking “zone” would slide along the bar.
