I've trying following code to assign custom renderer into itemRenderer property on a TileList.
You'll see commented part, which works well. However, I just want to try how i can do this by ActionScript. Following code reports no error, but each cell is empty(actually printed 'object Object'). Someone could help me out? k ==== <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comp="*" creationComplete="init()"> <mx:Script> <![CDATA[ import itemRenderers.myThumbnail; import mx.collections.ArrayCollection; [Bindable] private var photoColl:ArrayCollection; private var mT:myThumbnail = new myThumbnail; private function init():void { simpletest.send(); myTile.setStyle("itemRenderer", mT); } ]]> </mx:Script> <mx:Label id="foodName" text="Watch here"/> <mx:HTTPService id="simpletest" url="assets/photo.xml" result="photoColl=new ArrayCollection(simpletest.lastResult.list.food)"/> <mx:TileList id="myTile" dataProvider="{photoColl}" width="700" rowHeight="170" columnWidth="220"/> <!-- <mx:TileList id="foodTile" dataProvider="{photoColl}" itemRenderer="itemRenderers.myThumbnail" width="700" rowHeight="170" columnWidth="220"/> --> </mx:Application> ==== ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/