jl

jl
- Name: [not set]
- Favorite Languages: [not set]
- Website: [not set]
- Location: [not set]
- About Me: [not set]
-
Flex Tutorial - Change the List Selection Indicator
01/27/2010 - 01:10
thanks for the post! this has help a lot, but i have one question:
i was wanting to add an image to the selected item so i figured i can just make a style with the image embedded and then just apply the style to the item renderer.override protected function drawCaretIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void
{
itemRenderer.styleName = "selectedItemBg";
}that did apply the image the the selected item but when i clicked on the next item the style was applied to the previous selected item. any idea no what i need to do to make this work.
Recent Comments