Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > DropShadowFilter (flash.filters.DropShadowFilter) | |||
Object
|
+-BitmapFilter
|
+-flash.filters.DropShadowFilter
public class DropShadowFilter
extends BitmapFilter
The DropShadowFilter class lets you add a drop shadow to a variety of objects in Flash. You have several options for the style of the drop shadow, including inner or outer shadow and knockout mode.
The use of filters depends on the object to which you apply the filter:
filters property. Setting the filters property of an object does not modify the object and can be undone by clearing the filters property.BitmapData.applyFilter() method. Calling applyFilter() on a BitmapData object takes the source BitmapData object and the filter object and generates a filtered image as a result.You can also apply filter effects to images and video at authoring time. 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, general scaling, rotation, and skewing are not supported. 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 in.
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
filters (MovieClip.filters property), cacheAsBitmap (MovieClip.cacheAsBitmap property), filters (Button.filters property), cacheAsBitmap (Button.cacheAsBitmap property), filters (TextField.filters property), applyFilter (BitmapData.applyFilter method)
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
The alpha transparency value for the shadow color. |
|
|
|
The angle of the shadow. |
|
|
|
The amount of horizontal blur. |
|
|
|
The amount of vertical blur. |
|
|
|
The color of the shadow. |
|
|
|
The offset distance for the shadow, in pixels. |
|
|
|
Indicates whether or not the object is hidden. |
|
|
|
Indicates whether or not the shadow is an inner shadow. |
|
|
|
Applies a knockout effect ( |
|
|
|
The number of times to apply the filter. |
|
|
|
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)
|
Signature |
Description |
|---|---|
|
DropShadowFilter |
Creates a new DropShadowFilter instance with the specified parameters. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
Returns a copy of this filter object. |
Methods inherited from class BitmapFilter
Methods inherited from class Object
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/00001633.html