Home     Drop Shadow Filter     Blur Filter     Glow Filter     Bevel Effect     Bonus Effects

The BlurFilter class, new in Flash 8, provides a simple way of applying a blur visual effect to some types of objects. The old fashion way of doing this was to create a blurred image in another program (Adobe Photoshop for example) then with the help of some Action Script coding, to create a transition between the original picture and the blurred one, by modifying the transparency parameter.

Blur effect in Flash 8 is determined by 3 parameters:

  • horizontal blur: blurX (0;255) = how much blur you apply on the horizontal; the Adobe specialist recommend the usage of values equal to powers of 2 (2, 4, 8) because the rendering time of the effect is shorter;
    AS: [name].blurX;
  • vertical blur: blurY, same as blurX;
    AS: [name].blurY;
  • quality: Number (0;15) = how many times the blur is applied;
    AS: [name].quality;
  • If you want to get the full picture, you have to learn how to apply the filter with a simple Action Script code, because you may need to change the effect at run time and this is the only options.

    import flash.filters.BlurFilter; // importing the blurr class
    blur_X=5; // setting horizontal blur
    blur_Y=5; // setting vertical blur
    qual=3; // setting quality
    var filter:BlurFilter = new BlurFilter(blur_X,blur_Y,qual);
    var filterss:Array = new Array();
    filterss.push(filter);
    r.filters = filterss; // we named our rectangle "r"
    

    To learn more about how to add, change or delete a filter, go to the Drop Shadow Filter page.

    Download .ZIP   Download .FLA