Вот код.
package
{
import flash.display.Graphics;
import flash.display.Sprite;
import flash.filters.DropShadowFilter;
import mx.controls.List;
import mx.controls.listClasses.IListItemRenderer;
import mx.core.ClassFactory;
public class friendList extends List
{
private var dropShadow:DropShadowFilter = new DropShadowFilter(2,117,0x000000,0.4);
private var filtersArray:Array = new Array(dropShadow);
override protected function drawSelectionIndicator(indicator:Sprite, x:Number,
y:Number, width:Number, height:Number, color:uint,
itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(0x000000, 0.5);
g.lineStyle(2,0xffffff,0.5);
g.drawRoundRect(0, 0, width-2, height-2, 6);
g.endFill();
indicator.x = x;
indicator.y = y;
indicator.filters = filtersArray;
}
override protected function drawHighlightIndicator(
indicator:Sprite, x:Number, y:Number,
width:Number, height:Number, color:uint,
itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
g.beginFill(0x163e76, 0.5);
g.lineStyle(2,0xffffff,0.5);
g.drawRoundRect(0, 0, width-2, height-2, 6);
g.endFill();
indicator.x = x;
indicator.y = y;
indicator.filters = filtersArray;
}
}
}