I found the solution.

I had to override the ListBase class in my List compnent extention, 
not the List class itself as it was just overriding the ListBase 
class drawHighlightIndicator() function.

//----------------------------------------------------
// Override drawHighlightIndicator() function from ListBase
//----------------------------------------------------
/** Import ListBase, IListItemRenderer, Sprite and Graphics classes
* to override drawHighlightIndicator() function in ListBase
*/
  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(color1); //** no fill on rollover highlight
      g.lineStyle(3,color2,1);//add lineStyle to add 3 pt. border
      g.drawRect(0, 01, width, height);
      //g.endFill();

      indicator.x = x;
      indicator.y = y;
  }
//----------------------------------------------------


--- In flexcoders@yahoogroups.com, "Michael" <[EMAIL PROTECTED]> wrote:
>
> I'm fairly new at this and am trying to extend a List component so 
> that a rectangle will appear round the selected line (and around 
the 
> roll-over) instead of a solid color.
> 
> I'm assuming that the focusRect property that is inherited from 
the 
> InteractiveObject is the one I need to deal with, but I can't seem 
to 
> figure out how to use it.
> 
> Are there any examples out there that I could see??
>


Reply via email to