topical media & game development
#graphic-flex-image-effects-02-Flex-DropShadowFilterTest.ax
#graphic-flex-image-effects-02-Flex-DropShadowFilterTest.ax
[swf]
[flash]
flex
package {
import flash.filters.BitmapFilterQuality;
import flash.filters.DropShadowFilter;
[SWF(width=550, height=400, backgroundColor=0xEEEEEE)]
Tests application of the DropShadowFilter to a rectangle shape.
public class @ax-graphic-flex-image-effects-02-Flex-DropShadowFilterTest extends graphic_flex_image_effects_02_Flex_BitmapFilterTest {
Applies bitmap filter to rectangle shape.
override protected function applyFilter():void {
var filter:DropShadowFilter = new DropShadowFilter(10);
filter.blurX = 15;
filter.blurY = 15;
filter.quality = BitmapFilterQuality.HIGH;
filter.inner = true;
filter.knockout = true;
_shape.filters = [filter];
}
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.