Working with filters using ActionScript
507
Using the blur filter
The BlurFilter class lets you apply a blur visual effect to a variety of objects in Flash. A blur
effect softens the details of an image. You can produce blurs that range from creating a softly
unfocused look to a Gaussian blur, a hazy appearance like viewing an image through semi-
opaque glass. The blur filter is based on a box-pass blur filter. The
quality
parameter
defines how many times the blur should be repeated (three passes approximates a Gaussian
blur filter).
For more information on this filter, see BlurFilter (flash.filters.BlurFilter) in the
ActionScript 2.0 Language Reference
.
The following procedure blurs a dynamically loaded image based on the mouse pointer’s
current position on the Stage. The further the pointer is from the center of the Stage, the
more the image is blurred.
NO
TE
The blur filter scales only when you zoom into the Stage.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...