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:
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:
[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