# Rotating Menu

**URL:** <https://forum.kirupa.com/t/rotating-menu/167779>\
**Category:** Uncategorized\
**Created:** [October 31, 2005, 10:56pm UTC](https://forum.kirupa.com/t/rotating-menu/167779 "2005-10-31T22:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jared\_kc](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jared\_kc](https://forum.kirupa.com/u/jared_kc)\
**Post date:** [October 31, 2005, 10:56pm UTC](https://forum.kirupa.com/t/rotating-menu/167779/1 "2005-10-31T22:56:28Z")

</div>

I am trying to set up a menu rotating. When you click on a button the movie clip rotates that button the the 90º position. I want the movie clip to rotate clock wise. It works fine with numbers smaller than 180, whenever I use a number larger that 180 the movie clip continues to rotate instead of stopping after reaching the set position. Anyone have some advise for me.

here is the action script ------------------------------  
//Orb rotation code  
Orb.onEnterFrame = function() {  
this.\_rotation -= (this.\_rotation-turn)/12;  
};

//button actions less than 180 works  
Orb.btn1.onRelease = function() {  
\_root.turn = 90;  
};

// more than 180 rotation never stops  
Orb.btn2.onRelease = function() {  
\_root.turn = 225;  
};
