Blur based on object speed

[SIZE=3]http://ragonadesign.com/blur_xy.html
[/SIZE]

Alrighty, here is an updated version (full browser :thumb:) that follows your mouse around, blurring merrily away.


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

To try this out, just make any movie clip called target_mc (or just change the linkage) and put this script on the same timeline.