# Rotational motion blur

**URL:** <https://forum.kirupa.com/t/rotational-motion-blur/195654>\
**Category:** flash\
**Created:** [August 2, 2006, 7:09am UTC](https://forum.kirupa.com/t/rotational-motion-blur/195654 "2006-08-02T07:09:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enforcer73](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@enforcer73](https://forum.kirupa.com/u/enforcer73)\
**Post date:** [August 2, 2006, 7:09am UTC](https://forum.kirupa.com/t/rotational-motion-blur/195654/1 "2006-08-02T07:09:46Z")

</div>

Hi all,

I am wanting to apply a motion blur to the rotation of a movie clip. I am currently rotating the movie clip 540 degrees via actionscript using the tween class below:

```auto
import mx.transitions.Tween;
import mx.transitions.easing.*;
var targetRotate:Tween = new Tween(_root.target_mc, "_rotation", Regular.easeInOut, 0, 540, 3, true);

```

I have found this script in the forums:

```auto
[COLOR=#0000ff]import[/COLOR] flash.[COLOR=#000080]filters[/COLOR].[COLOR=#000080]BlurFilter[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]onEnterFrame[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
    [COLOR=#000000] **var** [/COLOR] blur:BlurFilter = [COLOR=#000000] **new** [/COLOR] BlurFilter[COLOR=#000000]([/COLOR]z, i, [COLOR=#000080]5[/COLOR][COLOR=#000000])[/COLOR];
    target_mc.[COLOR=#000080]filters[/COLOR] = [COLOR=#000000][[/COLOR]blur[COLOR=#000000]][/COLOR];
    i = .[COLOR=#000080]75[/COLOR]*[COLOR=#0000ff]Math[/COLOR].[COLOR=#0000ff]abs[/COLOR][COLOR=#000000]([/COLOR]difY[COLOR=#000000])[/COLOR] + difX/[COLOR=#000080]5[/COLOR];
    z = .[COLOR=#000080]75[/COLOR]*[COLOR=#0000ff]Math[/COLOR].[COLOR=#0000ff]abs[/COLOR][COLOR=#000000]([/COLOR]difX[COLOR=#000000])[/COLOR] + difY/[COLOR=#000080]5[/COLOR];
    difY = [COLOR=#000000]([/COLOR]yPos-target_mc.[COLOR=#0000ff]_y[/COLOR][COLOR=#000000])[/COLOR]/[COLOR=#000080]5[/COLOR];
    difX = [COLOR=#000000]([/COLOR]xPos-target_mc.[COLOR=#0000ff]_x[/COLOR][COLOR=#000000])[/COLOR]/[COLOR=#000080]5[/COLOR];
    target_mc.[COLOR=#0000ff]_y[/COLOR] += difY;
    target_mc.[COLOR=#0000ff]_x[/COLOR] += difX;
    yPos = [COLOR=#0000ff]_ymouse[/COLOR];
    xPos = [COLOR=#0000ff]_xmouse[/COLOR];
[COLOR=#000000]}[/COLOR];

```

This seems to be a good start, but I need to change it to apply to the \_rotation of my movie clip. Lets say for the sake of argument, my movie clip has an instance name of target\_mc as well.

Can anyone help me with this? I have searched the forums for a rotational motion blur, but have only come across directional motion blur help.

Thanks in advance,

enforcer73
