The purpuse of this snippet is to create a list and avoid that the selected item remains highlighted
package
{
import flash.display.Graphics;
import flash.display.Sprite;
import mx.controls.List;
import mx.controls.listClasses.IListItemRenderer;
public class ListWithoutSelectionIndicator extends List
{
public function ListWithoutSelectionIndicator()
{
super();
}
override protected function drawSelectionIndicator(indicator:Sprite, x:Number,y:Number, width:Number, height:Number, color:uint,itemRenderer:IListItemRenderer):void{
//this function doesn't do anything in order to prevent the draw of the selection indicator
}
}
}


