Mega Code Archive

 
Categories / Flex / Components
 

Apply a drop shadow to a Label control by using expanded MXML syntax and inline syntax

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flash="flash.filters.*">     <mx:Label text="DropShadowFilter" fontSize="20">         <mx:filters>             <flash:DropShadowFilter distance="10" angle="45" />         </mx:filters>     </mx:Label>     <mx:Label text="DropShadowFilter (inline)"                fontSize="20"               filters="{[new DropShadowFilter(10, 45)]}" /> </mx:Application>