Hello guys, I'm playing a little with the TileList.itemRenderer so i built a simpl custom component but it doesn't seem to work.
Here's my component code: package { import mx.core.UIComponent; import mx.controls.listClasses.BaseListData; import mx.core.IDataRenderer; import mx.controls.listClasses.IDropInListItemRenderer; import mx.controls.listClasses.IListItemRenderer; import mx.controls.SWFLoader; public class Thumb extends UIComponent implements IDataRenderer, IDropInListItemRenderer, IListItemRenderer { // --- Properties -->> private var img:SWFLoader; private var pic:String; private var _listData:BaseListData; public function Thumb(){ super(); } override protected function createChildren():void { super.createChildren(); if(!img){ img = new SWFLoader(); img.move(24, 25); addChild(img); } } override protected function commitProperties():void { super.commitProperties(); img.source = "http://localhost/test.jpg"; } override protected function measure():void { super.measure(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); } public function set data(obj:Object):void{ } public function get data():Object{ return {}; } public function set listData(value:BaseListData):void{ _listData = value; invalidateProperties(); } public function get listData():BaseListData{ return _listData; } } } It seems the image is loading but it's not been displayed. Has anyone seen smth like this? Thanks, Fernando -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/