Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Continuing from the previous movie our discussion of ActionScript and display filters, now when adding multiple filters to display objects as I've done here, they will be added in accumulative sequential manner. For example, if a filter's Array has two elements: a bevel first and then a drop shadow filter added second, the drop shadow filter is applied to both the bevel filter and the display object. This is because of the drop shadow filter's second position in the filtersArray. If you want to apply filters in a noncumulative manner you must first apply each filter to a new copy of the display object. Now, removing all filters from a display object is as simple as assigning a null value to the filters property - myDisplayObject.filters equals null, if we do a Control, Test Movie notice that all the filters have been removed from my red rectangle. If you've applied multiple filters to an object and want to remove only one of the filters you're going to need to go through several steps to change the filter property Array. ActionScript 3.0 includes 10 filter classes that you can apply to display objects and BitmapData objects. I've listed all 10 here. The first six filters on this list are simple filters that can be used to create one specific effect. There are some customization of each of these effects. These six filters can be applied using ActionScript. They can also be applied to objects using Flash CS4 Professional through the Filters Panel. The final four filters are available in ActionScript only. These filters, the Color matrix filter, the Convolution filter, the Displacement map filter and the Shader filter are much more flexible in the types of effects that can be used to create various display objects with them. Rather than being optimized for a single effect they provide power and flexibility for multiple effects in combining them together. For example, by selecting different values for its matrix, the Convolution filter can be used to create effects such as blurring, embossing, sharpening, finding color edges, transformations and much, much more. Each of these filters, whether simple or complex, can be customized using their properties. All of them, for example, let you set the properties by passing parameter values to the filter objects constructor. So there you have a thorough introduction to filtering objects with ActionScript. I recommend practicing the techniques and scripts introduced here by coding various combinations of filters on different kinds of display objects, such as text, photos and vector images. We're now ready for our next topic: Masking Display Objects using ActionScript 3.0.
| Course: | Adobe Flash ActionScript 3.0 for Designers |
| Author: | James Gonzalez |
| SKU: | 34060 |
| ISBN: | 1-935320-82-3 |
| Release Date: | 2009-11-09 |
| Duration: | 9.5 hrs / 101 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |