MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 628

Actionscript 2.0 language reference
Table of Contents

Advertisement

Keep in mind that the spread of the colors in the gradient varies based on the values of the
,
,
blurX
blurY
strength
Availability: ActionScript 1.0; Flash Player 8
Example
The following example demonstrates how to set the
import flash.filters.GradientBevelFilter;
var mc:MovieClip = setUpFilter("ratiosExample");
mc.onPress = function() {
var arr:Array = this.filters;
var ratios:Array = [127, 128, 129];
arr[0].ratios = ratios;
this.filters = arr;
}
mc.onRelease = function() {
var arr:Array = this.filters;
var ratios:Array = [0, 128, 255];
arr[0].ratios = ratios;
this.filters = arr;
}
function setUpFilter(name:String):MovieClip {
var art:MovieClip = this.createEmptyMovieClip(name,
this.getNextHighestDepth());
var w:Number = 150;
var h:Number = 150;
628
ActionScript classes
, and
properties, as well as the
quality
values.
ratios
property on an existing entity.
ratios

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF