hmm if you copied paste the code i gave you it should be fine... only way I can think of it failing is if you already have a onEnterFrame running on the clip you are trying to blur or the minblur, maxblur values were changed.
I copied the code straight from one of my website that uses it.
There is an "A" in the "unblurMe" function (probably accidentally inserted in the initial "copy-paste" action of code) that seems to cause the problem..
Delete this "A" (shown in Red) and normally the code is OK..
Also call the functions after defining them..
I'd like also to present an alternative tiny variation:
(I've removed the argument from function, and also replaced the "to" inside function with the keyword "this" )
Based on the initial code (that which uses the movie clip as argument in functions), I modified it a bit to include fade animation (please read the comments of how it works):
PHP Code:
//blurring function
var bl = new flash.filters.BlurFilter();
var maxBlur = 5;
var blInc = .25;
var minBlur = 0;
// Percent Amount (%).
var maxFade=50; // A variation amount for _alpha value
// Examples:
// 0 means....: NoFade
// 30 means....: FadeIn from 70 => 100. FadeOut from 100 => 70
// 50 means....: FadeIn from 50 => 100. FadeOut from 100 => 50
// 100 means....: FadeIn from 0 => 100. FadeOut from 100 => 0
// "FadeFactor": This is a multiplier, used to "translate" the blur values
// to fit the _alpha range values,(so that each change in blur, corresponds
// to an appropriate _alpha value). Assume for a maxFade=50 the "FadeFactor" is: 50/5=10
var FadeFactor=maxFade/maxBlur;
// Use one of the next 2 lines to switch between FadeIn and FadeOut:
to._alpha=100-FadeFactor*bl.blurX // Use this for Fade Out
//to._alpha=100-(maxFade-FadeFactor*bl.blurX) // Use this for Fade In