Color (Glowfilter.color Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

To further demonstrate the relationships between
the following example modifies the
demonstrates that the
instead of pointing to them in reference.
filter_1
import flash.filters.GlowFilter;
var filter_1:GlowFilter = new GlowFilter(0x33CCFF, .8, 35, 35, 2, 3, false,
false);
var filter_2:GlowFilter = filter_1;
var clonedFilter:GlowFilter = filter_1.clone();
trace(filter_1.knockout); // false
trace(filter_2.knockout); // false
trace(clonedFilter.knockout); // false
filter_1.knockout = true;
trace(filter_1.knockout); // true
trace(filter_2.knockout); // true
trace(clonedFilter.knockout); // false

color (GlowFilter.color property)

public color : Number
The color of the glow. Valid values are in the hexadecimal format 0xRRGGBB. The default
value is 0xFF0000.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
clicks it.
import flash.filters.GlowFilter;
var mc:MovieClip = createGlowFilterRectangle("GlowFilterColor");
mc.onRelease = function() {
var filter:GlowFilter = this.filters[0];
filter.color = 0x00FF33;
this.filters = new Array(filter);
}
function createGlowFilterRectangle(name:String):MovieClip {
var rect:MovieClip = this.createEmptyMovieClip(name,
this.getNextHighestDepth());
var w:Number = 100;
var h:Number = 100;
knockout
method creates a new instance based on the values of
clone()
property on an existing movie clip when a user
color
,
filter_1
filter_2
property of
filter_1
GlowFilter (flash.filters.GlowFilter)
, and
clonedFilter
. Modifying
knockout
,
605

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