Search code examples
jsonactionscript-3apache-flexairflex4

How to use item renderer to view multiple fields?


Our app contacts the server, and get a json based array, each item has:

First_Name 
Last_Name
Image_Url

So, how to use the item renderer so that we can use custom data template to view name and image?

Also, can we have access to the json item being rendered from inside the renderer code? Any examples would be highly appreciated.


Solution

  • http://help.adobe.com/en_US/flex/using/WS77c1dbb1bd80d3836ecbb5ec129ec77b1e1-8000.html

    just above the 'Controlling the background display of an item renderer' section, there is a custom itemrenderer example, you can use it.