List refresh, item renderer in Flex
I have a List and the item renderer displays an image and text from xml (news rss). Not all news have an image. Whenever you scroll the list, and the item renderer refreshes, it move images of news of a position, so开发者_如何转开发 the news "1" have the image of news "2", and the news "2" have the image of news "3" ecc., but the text (the title of news not move) . how can I do? thanks and sorry for my english.
I presume you're using a custom item renderer?
Where are you setting the icon? If you set the icon in this function :
[override] public function set data(value:Object)
it should update with the scroll.
精彩评论