Apply a white shadow to the Label control
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import flash.filters.*;
public function addFilter():void {
var f:DropShadowFilter = new DropShadowFilter(5,30,0x00FFFF,.8);
var myFilters:Array = new Array();
myFilters.push(f);
label1.filters = myFilters;
}
</mx:Script>
<mx:Label id="label1" text="ActionScript-applied filter" />
<mx:Button id="b1" label="Add Filter" click="addFilter()" />
</mx:Application>
Related examples in the same category