MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 623

Actionscript 2.0 language reference
Table of Contents

Advertisement

[optional] - The strength of the imprint or spread. The higher the value,
strength:Number
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.
[optional] - The quality of the filter. Valid values are 0-15. The default
quality:Number
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.
[optional] - The placement of the bevel effect. Possible values are:
type:String
: Bevel on the outer edge of the object
"outer"
: Bevel on the inner edge of the object
"inner"
: Bevel on top of the object
"full"
The default value is
"inner"
[optional] - Specifies whether a knockout effect is applied. The value
knockout:Boolean
makes the object's fill transparent and reveals the background color of the document.
true
The default is
false
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;
.
(no knockout).
GradientBevelFilter (flash.filters.GradientBevelFilter)
623

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF