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

The Glow effect can be easily created in Flash 8 with the of the GlowFiltre class. In the earlier versions of Flash, this effect was very hard to implement, and almost impossible without the aid of other picture process programs. But now you can apply this filter to almost all the objects, that's why the flower is so happy. The parameters that will help customize the glow effect are:

  • color: Number (0xRRGGBB) = the color of the glow in hexadecimal;
    AS: [name].color
  • alpha: Number (0;100) = the alpha transparency of the glow;
    AS: [name].alpha;
  • blur X: Number (0;255) = the amount of horizontal blur;
    AS: [name].blurX;
  • blur Y: Number (0;255) = the amount of vertical blur;
    AS: [name].blurY;
  • strength : Number (0;255) =spread strength of the glow;
    AS: [name].strength;
  • quality: Number (0;15) = the number of blur effects applied to the glow;
    AS: [name].quality;
  • inner glow: Boolean (true/ false) = true for inner glow and false for outer glow; the default value is false;
    AS: [name].inner;
  • knockout: Boolean (true/ false) = if you chose the value "true", you will apply a knockout effect to the object which means the fill of the object will disappear (full transparency) and you will see the background; the default value is false;
    AS: [name].knockout;
  • Now the Action Script version. The parameters must be added in the same order as they were presented above.

    import flash.filters.GlowFilter;
    color=0xFFFF00;
    alpha=20;
    blur_X=25;
    blur_Y=25;
    s=2;
    q=2;
    ig=false;
    k=false;
    
    var filter:GlowFilter = new GlowFilter(color,alpha,blur_X,blur_Y,s,q,ig,k);
    var filterss:Array = new Array();
    filterss.push(filter);
    r.filters = filterss;
    trace(filter.alpha);
    

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

    Download .ZIP   Download .FLA