I'm having some problems getting a custom renderer to work for a List. All I'd like to show for each item are mx:Image and mx:Label tags. However I'm having some problems getting it to work...
First off I'm not sure if a rowRenderer or cellRenderer is appropriate here. The documentation seems to indicate that a rowRenderer is only necessary if a different "template" needs to be used from row to row. This isn't the case in this situation since each item in the list just needs an image and accompanying label. Here is the code for my renderer: <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ [Embed(source="images/taxonomy/legal.png")] var appSymbol:String; function setValue( str:String, item:Object, sel:Boolean ) : Void { myLabel.text = item.name; myImage.source = appSymbol; } ]]> </mx:Script> <mx:Image id="myImage" /> <mx:Label id="myLabel" /> </mx:HBox> and here is the invoking page: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Model id="myTaxonomies" source="faketaxonomy.xml" /> <mx:Label text="Select a category to filter the application list." /> <mx:List id="categoryFilter" multipleSelection="true" rowCount="4" dataProvider="{myTaxonomies.taxonomies}" rowRenderer="components.categoryFilterRowRenderer" /> </mx:VBox> When I invoke it as a rowRenderer, the images appear but the text doesn't. When I invoke it as a cellRenderer, the list is blank. Lastly here is the content of my XML file: <?xml version="1.0" encoding="utf-8"?> <taxonomies> <taxonomy name="Legal" icon="legal.png" /> </taxonomies> Any help that anyone could pass along would be greatly appreciated. Thanks! :) -Cliff 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/

