Alpha (Convolutionfilter.alpha Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
clone() :
ConvolutionFilter
Methods inherited from class BitmapFilter
clone (BitmapFilter.clone method)
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

alpha (ConvolutionFilter.alpha property)

public alpha : Number
The alpha transparency value of the substitute color. Valid values are 0 to 1.0. The default is 0.
For example, .25 sets a transparency value of 25 percent. The default is 1.0.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
.35.
import flash.filters.ConvolutionFilter;
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
var alpha:Number = .35;
var filter:ConvolutionFilter = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 1,
1, 1, 1, 1], 9, 0, true, false, 0x0000FF, alpha);
var myBitmapData:BitmapData = new BitmapData(100, 80, true, 0xCCFF0000);
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
460
ActionScript classes
Description
Returns a copy of this filter object.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
alpha
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
property of
from its default value of 1 to
filter
toString
valueOf

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