# Rotation: movie clip wiggle

**URL:** https://forum.kirupa.com/t/rotation-movie-clip-wiggle/231355
**Category:** flash
**Created:** [July 4, 2007, 1:15am UTC](https://forum.kirupa.com/t/rotation-movie-clip-wiggle/231355 "2007-07-04T01:15:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)
#### Post date: [July 4, 2007, 1:15am UTC](https://forum.kirupa.com/t/rotation-movie-clip-wiggle/231355/1 "2007-07-04T01:15:42Z")

</div>

I’m looking for a way to create a wiggle motion for a movie clip, but I only need the wiggle to occur two times. If you create a line movie clip and give it an instance name of “bar\_mc” you can play with this code to see what I’m talking about:

```auto

function rotateMC() {
    var posRotateMC = new mx.transitions.Tween(_root.bar_mc, "_rotation", mx.transitions.easing.None.easeNone, 0, 5, 0.1, true);
    posRotateMC.onMotionFinished = function() {
        var negRotateMC = new mx.transitions.Tween(_root.bar_mc, "_rotation", mx.transitions.easing.None.easeNone, 5, -5, 0.1, true);
        negRotateMC.onMotionFinished = function() {
            negRotateMC.continueTo(0, 0.1);
        };
    };
}
timer = setInterval(rotateMC, 1000);
//rotateMC();

```

It would be nice to script this without the Tween Class since that glitches.
