# Stop help needed in rotation loop

**URL:** <https://forum.kirupa.com/t/stop-help-needed-in-rotation-loop/157065>\
**Category:** Uncategorized\
**Created:** [July 29, 2005, 6:00pm UTC](https://forum.kirupa.com/t/stop-help-needed-in-rotation-loop/157065 "2005-07-29T18:00:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unapluma](https://avatars.discourse-cdn.com/v4/letter/u/58f4c7/32.png) [@unapluma](https://forum.kirupa.com/u/unapluma)\
**Post date:** [July 29, 2005, 6:00pm UTC](https://forum.kirupa.com/t/stop-help-needed-in-rotation-loop/157065/1 "2005-07-29T18:00:46Z")

</div>

Hey everyone, I’m having a bit of a problem with this rotating object. It loops and never stops. I searched and found similar problems, but if I’m not mistaken most loops where done with tweens, unlike this one (correct me if im wrong, im a total newbie at this stuff)

heres the code:

```auto
onClipEvent (enterFrame) {
	 i = getProperty(this,_rotation);
	 setProperty(this,_rotation,i + 7);
}

```

i basically want the planet to spin once, and then stop.

any help will be greatly appreciated! thank you 🙂
