Here's an easy way:

Extend List

override protected function mouseOverHandler(event:MouseEvent):void
{
      var item:IListItemRenderer = mouseEventToItemRenderer(event);



      super.mouseOverHandler(event);

      if (highlightIndicator && item && isItemSelected(item.data))
      {
          clearHighlightIndicator(highlightIndicator, item);
      }
}

-TH

--- In [email protected], Thibaud Van Vreckem <thibaudm...@...>
wrote:
>
> This thing has always bugged me.
> the rollover effect should never appear on a selected item in a list.
> unfortunately that's not how the List works.
>
> The list is using an itemrenderer implementing
IDropInListItemRenderer.
> and I already do various visual changes using the:
> ListBase(owner).isItemHighlighted(data)
> and
> ListBase(owner).isItemSelected(data)
> in the itemrenderer.
>
> I imagine I could:
> 1. get rid off the rollover effect entirely by setting the list
useRollOver
> style property to false and handling the rollover through the
itemrenderer.
> 2. make an new List class and override it's drawHighlightIndicator()
method.
>
> any idea how to prevent drawHighlightIndicator() to operate on the
> selectedItem ?
> any other solution ?
>
> thanks
>


Reply via email to