var filter:GradientBevelFilter = new GradientBevelFilter(distance,
var filterArray:Array = new Array();
filterArray.push(filter);
art.filters = filterArray;
function setUpFlatRectangle(w:Number, h:Number, bgColor:Number,
name:String):MovieClip {
var mc:MovieClip = this.createEmptyMovieClip(name,
this.getNextHighestDepth());
mc.beginFill(bgColor);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.lineTo(0, 0);
return mc;
}
See also
ratios (GradientBevelFilter.ratios property)
knockout (GradientBevelFilter.knockout property)
public knockout : Boolean
Specifies whether the object has a knockout effect. A knockout effect makes the object's fill
transparent and reveals the background color of the document. The value
knockout effect; the default is
Availability: ActionScript 1.0; Flash Player 8
624
ActionScript classes
angleInDegrees,
colors,
alphas,
ratios,
blurX,
blurY,
strength,
quality,
type,
knockout);
(no knockout effect).
false
specifies a
true
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?