Apply Shadow effect
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="http://www.adobe.com/2006/mxml" width="460" height="428"> <s:Group width="400" height="300"> <mx:Script> import flash.filters.*; protected const SHADOW:Class = flash.filters.DropShadowFilter; protected function addFilter(value:Class):void { var arr:Array = this.filters.concat(); var fil:BitmapFilter = new value() as BitmapFilter; arr.push(fil); filters = arr; } </mx:Script> <mx:Button click="addFilter(SHADOW)" label="Glow"/> </s:Group> </mx:Application>