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.
链接地址: http://www.djcxy.com/p/5906.html上一篇: 避免Flex 4中的Spark List中的ItemRenders缓存
下一篇: 列表刷新,Flex中的项目渲染器