# Rotate an mc every x secs?

**URL:** <https://forum.kirupa.com/t/rotate-an-mc-every-x-secs/251643>\
**Category:** flash\
**Created:** [February 11, 2008, 12:15pm UTC](https://forum.kirupa.com/t/rotate-an-mc-every-x-secs/251643 "2008-02-11T12:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [February 11, 2008, 12:15pm UTC](https://forum.kirupa.com/t/rotate-an-mc-every-x-secs/251643/1 "2008-02-11T12:15:08Z")

</div>

Hi all,

little black out and i could use some some help out

```auto

function rotatePayoff(mc) {
	var mc:MovieClip;
	var rot:Tween = new Tween(mc, "_rotation", mx.transitions.easing.Elastic.easeInOut, 0, 90, 3, true);
}
rotInt = setInterval(rotatePayoff, 2000, payoff_mc);

```

My payoff\_mc consists of 4 movieclips (with static textfield) but it doesn’t work.

When payoff\_mc almost rotates 90 degrees it disappears and is starts all over again. (but not with the latest rotation??)

regards
