Game Development Reference
In-Depth Information
Table 10-1. Basic filters classes available
Filter class
What it does
Creates a shallow 3D raised surface effect.
Blurs the object slightly, giving the impression that it's out of focus or
moving quickly.
Casts a shadow.
Makes it appear as if a light is being cast from underneath the object.
An enhanced bevel effect that improves its 3D appearance by allowing you
to add a gradient color to the bevel.
An enhanced glow effect that allows you to add a gradient glow to the
edges of an object. This filter optionally requires that you import the
>epi]lBehpanPula class so you can specify where on the object to apply
the filter.
This has been a very brief introduction to AS3.0 filters, but it's enough to get you
started. All the filters have a great number of properties that can be set. You can find
them all, including more specific information on these filters, in the chapter “Filtering
Display Objects” in Adobe's online document, Programming ActionScript 3.0 ( dppl6++
dahl*]`k^a*_ki+aj[QO+=_pekjO_nelp+/*,[Lnkcn]iiejc=O/+ ). Also, there are some
specific issues that you need to be aware of if you want to change an object's filter or
make specialized adjustments to it while the SWF is running. The “Potential Issues for
Working with Filters” subchapter from the “Filtering Display Objects” chapter outlines
some of these problems and how to overcome them.
Other advanced filters that have more specialized uses: the color matrix filter, convolu-
tion filter, displacement map filter, and shader filter. I won't be discussing these filters
in this topic, but you should know that they allow for very fine control over color and
alpha effects.
Search Nedrilad ::

Custom Search