# Rotating buttons, and stop

**URL:** <https://forum.kirupa.com/t/rotating-buttons-and-stop/10230>\
**Category:** Uncategorized\
**Created:** [December 27, 2002, 12:54pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230 "2002-12-27T12:54:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didiusthegreat](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Didiusthegreat](https://forum.kirupa.com/u/Didiusthegreat)\
**Post date:** [December 27, 2002, 12:54pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/1 "2002-12-27T12:54:13Z")

</div>

Allright, I have a problem…

I’ve got a bunch of button who are rotating. Then I would like to know what to do, when I want them to stop rotating when I rollover?

The code starts like this (I think)

On (rollOver) {  
tellTarget ("/button movie") {  
??? (Now I want the button to stop, but when I rollout they rotate further)  
}  
}

Thnx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2002, 1:03pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/2 "2002-12-27T13:03:27Z")

</div>

How did you make them rotate?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2002, 1:08pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/3 "2002-12-27T13:08:01Z")

</div>

Just with motion tweens

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2002, 1:42pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/4 "2002-12-27T13:42:48Z")

</div>

Just:  
on(rollOver) {  
yourrotatingmc.stop();  
}  
on(rollOut) {  
yourrotatingmc.play();  
}  
Change yourrotatingmc to the rotating mc where you have the rotation-tween!  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2002, 1:45pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/5 "2002-12-27T13:45:09Z")

</div>

oih! Didn’t notice you use tellTarget!  
well If the rotating movieclip is on the main timeline then use  
\_root.rotatingmc  
if it is inside a movieclip with an instance name “mymovie” then it would be  
\_root.mymovie.rotatingmc  
etc… That way it’s easier!  
Like this:  
\_root.mymovie.rotatingmc.play();  
easier than to use tellTarget! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2002, 5:05pm UTC](https://forum.kirupa.com/t/rotating-buttons-and-stop/10230/6 "2002-12-27T17:05:53Z")

</div>

Yeah, I now, But I still prefer tellTarget…

Don’t ask me why, but I make to much errors with \_root…

Anyway; I’ll use \_root now. And I wil use it more and more. Because it is easier as you say …

Thnx… 🙂
