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

Bevel effect is the new way of creating a 3 dimension impression effect on almost any object in Flash 8, by using the BevelFilter. The parameters of this filter are almost the same as in the Drop Shadow, so read more information about them in that section of the website.

The parameters in the right order are:

  • distance;
    AS: [name].distance
  • angle : the angle of the bevel;
    AS: [name].angle
  • highlight color: the highlight color of the bevel in hexadecimal format;
    AS: [name].highlightColor;
  • hightlight alpha: the alpha value of the upper color;
    AS: [name].highlightAlpha;
  • shadow color: the color of the shadow in hexadecimal format
    AS: [name].shadowColor;
  • shadow Alpha: the alpha value of the shadow
    AS: [name].shadowAlpha;
  • 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) if the value of the strong parameter is higher, the contrast between the bevel and the background will be stronger
    AS: [name].strength;
  • quality: Number (0;15) the number of times to apply the bevel effect;
    AS: [name].quality;
  • 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;
  • type: determines one of the three ways of applying the bevel: inner, outer and full;
    AS: [name].type;
  • The Action Script code from our example looks like this:

    import flash.filters.BevelFilter;
    d=2;
    ang=45;
    hc=0x0000FF;
    ha=1;
    sc=0x000000;
    sa=1;
    blur_X=2;
    blur_Y=2;
    s=1;
    q=1;
    t="outter";
    k=false;
    
    var filter:BevelFilter = new BevelFilter(d,ang,hc,ha,sc,sa,color,blur_X,blur_Y,s,q,t,k);
    var filterss:Array = new Array();
    filterss.push(filter);
    r.filters = filterss;

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

    Download .ZIP   Download .FLA