User Guide

GradientBevelFilter (flash.filters.GradientBevelFilter) 623
strength:Number [optional] - The strength of the imprint or spread. The higher the value,
the more color is imprinted and the stronger the contrast between the bevel and the
background. Valid values are 0 to 255. A value of 0 means that the filter is not applied. The
default value is 1.
quality:Number [optional] - The quality of the filter. Valid values are 0-15. The default
value is 1. In almost all cases, useful values are 1 (low quality), 2 (medium quality), and 3
(high quality). Filters with lower values are rendered more quickly.
type:String [optional] - The placement of the bevel effect. Possible values are:
"outer": Bevel on the outer edge of the object
"inner": Bevel on the inner edge of the object
"full": Bevel on top of the object
The default value is
"inner".
knockout:Boolean [optional] - Specifies whether a knockout effect is applied. The value
true makes the object's fill transparent and reveals the background color of the document.
The default is
false (no knockout).
Example
The following example creates a new GradientBevelFilter instance, assigns its values, and
applies it to a flat rectangle image.
import flash.filters.GradientBevelFilter;
import flash.filters.BitmapFilter;
var art:MovieClip = setUpFlatRectangle(150, 150, 0xCCCCCC,
"gradientBevelFilterExample");
var distance:Number = 5;
var angleInDegrees:Number = 225; // opposite 45 degrees
var colors:Array = [0xFFFFFF, 0xCCCCCC, 0x000000];
var alphas:Array = [1, 0, 1];
var ratios:Array = [0, 128, 255];
var blurX:Number = 8;
var blurY:Number = 8;
var strength:Number = 2;
var quality:Number = 3;
var type:String = "inner";
var knockout:Boolean = true;