GlowFilter (flash.filters.GlowFilter)


Object
    |
    +-BitmapFilter
        |
        +-flash.filters.GlowFilter

public class GlowFilter
extends BitmapFilter

The GlowFilter class lets you apply a glow effect to various objects in Flash. You have several options for the style of the glow, including inner or outer glow and knockout mode. The glow filter is similar to the drop shadow filter with the distance and angle properties of the drop shadow set to 0.

The use of filters depends on the object to which you apply the filter:

You can also apply filter effects to images and video during authoring. For more information, see your authoring documentation.

If you apply a filter to a movie clip or button, the cacheAsBitmap property of the movie clip or button is set to true. If you clear all filters, the original value of cacheAsBitmap is restored.

This filter supports Stage scaling. However, it does not support general scaling, rotation, and skewing; if the object itself is scaled (if _xscale and _yscale are not 100%), the filter effect is not scaled. It is scaled only when the Stage is zoomed.

A filter is not applied if the resulting image exceeds 2880 pixels in width or height. For example, if you zoom in on a large movie clip with a filter applied, the filter is turned off if the resulting image exceeds the limit of 2880 pixels.

Availability: ActionScript 1.0; Flash Player 8

See also

applyFilter (BitmapData.applyFilter method), cacheAsBitmap (Button.cacheAsBitmap property), filters (Button.filters property), DropShadowFilter (flash.filters.DropShadowFilter), cacheAsBitmap (MovieClip.cacheAsBitmap property), filters (MovieClip.filters property), filters (TextField.filters property)

Property summary

Modifiers

Property

Description

 

alpha:Number

The alpha transparency value for the color.

 

blurX:Number

The amount of horizontal blur.

 

blurY:Number

The amount of vertical blur.

 

color:Number

The color of the glow.

 

inner:Boolean

Specifies whether the glow is an inner glow.

 

knockout:Boolean

Specifies whether the object has a knockout effect.

 

quality:Number

The number of times to apply the filter.

 

strength:Number

The strength of the imprint or spread.

Properties inherited from class Object

constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)


Constructor summary

Signature

Description

GlowFilter([color:Number], [alpha:Number], [blurX:Number], [blurY:Number], [strength:Number], [quality:Number], [inner:Boolean], [knockout:Boolean])

Initializes a new GlowFilter instance with the specified parameters.

Method summary

Modifiers

Signature

Description

 

clone() : GlowFilter

Returns a copy of this filter object.

Methods inherited from class BitmapFilter

clone (BitmapFilter.clone method)


Methods inherited from class Object

addProperty (Object.addProperty method), hasOwnProperty (Object.hasOwnProperty method), isPropertyEnumerable (Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf method), registerClass (Object.registerClass method), toString (Object.toString method), unwatch (Object.unwatch method), valueOf (Object.valueOf method), watch (Object.watch method)



Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001691.html