Rotating buttons, and stop

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

How did you make them rotate?

Just with motion tweens

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

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! :slight_smile:

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… :slight_smile: