# Spin object with ease

**URL:** <https://forum.kirupa.com/t/spin-object-with-ease/292610>\
**Category:** Uncategorized\
**Created:** [July 16, 2009, 11:45am UTC](https://forum.kirupa.com/t/spin-object-with-ease/292610 "2009-07-16T11:45:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dukeofhazard69](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dukeofhazard69](https://forum.kirupa.com/u/dukeofhazard69)\
**Post date:** [July 16, 2009, 11:45am UTC](https://forum.kirupa.com/t/spin-object-with-ease/292610/1 "2009-07-16T11:45:34Z")

</div>

Hi im very new to flash/actionscript… I have a real problem i hope someone can help with, i would like spin an object in clockwise and anticlockwise direction with ease via press of a button.

tried using,

on (press) {  
this.testmovieclip.\_rotation += 45;  
}

just to get the object to turn… What i wanna do is have 4 buttons, 1st button turns the object 45 degrees, then 2nd button turns it next 45 degrees and so on… and for the life of me i cant work it out!!! Any help would be great.

Have attached .fla of what im trying to achieve.
