sorry here is the link to the code http://pastebin.com/me852e7
ckenan
2009-11-18 23:39:24
The problem is that the list type components in Flex use renderer pooling (ie: when you scroll, the same renderers are reused for different items). Since I guess you init method is only called on creationComplete or sometime at the start of the life cycle of the renderer, changing the data won't change the image.
You could override set data instead
override public function set data(value:Object):void {
super.data = value;
if(value)
img.load(value.imageData);
}