title: Data in Components Spark in a ItemRenderer in Flex
body: <p>I need to create a slideshow using data received from another view.</p>
  
  <p>I'm calling the slideshow's view like this:</p>
  
  <pre><code>&lt;s:List id = "list" dataProvider = "{actions}"
  change = "navigator.pushView (DetailsProduct, list.selectedItem) "&gt;
  &lt;s:itemRenderer&gt;
  &lt;fx:Component&gt;
  &lt;s:MobileIconItemRenderer
  labelField = "title"
  messageField = "description"
  decoratorClass = "{data.icon}"&gt;
  &lt;/s:MobileIconItemRenderer&gt;
  &lt;/fx:Component&gt;
  &lt;/s:itemRenderer&gt;
  &lt;/s:List&gt;
  </code></pre>
  
  <p>I think the problem is the time to send the parameter because I'm passing the selected item and must pass the entire list.</p>
  
  <p>And the other problem is in the view, I can see the object received outside the list but not inside it.</p>
  
  <p>With this code the object appears, but the back and forward buttons doesn't work.</p>
  
  <pre><code>&lt;s:List id = "myList"
       dataProvider = "{actions}"&gt;
  &lt;/s:List&gt;
  
  &lt;s:Image source="{data.icon}"/&gt;
  &lt;s:Label text="{data.title}"/&gt;
  &lt;s:Label text="{data.description}"/&gt;
  
  &lt;s:HGroup&gt;
  &lt;s:Button label="Forward" click="imgForward(event)"/&gt;
  &lt;s:Button label="Back" click="imgBack(event)"/&gt;
  &lt;/s:hgroup&gt;
  </code></pre>
  
  <p>And this code shows nothing, even the object being called the same way.</p>
  
  <pre><code>&lt;s:List id = "myList"
       dataProvider = "{actions}"&gt;
           &lt;s:itemRenderer&gt;
       &lt;fx:Component&gt;
       &lt;s:ItemRenderer&gt;
           &lt;s:Image source="{data.icon}"/&gt;
           &lt;s:Label text="{data.title}"/&gt;
           &lt;s:Label text="{data.description}"/&gt;
       &lt;/s:ItemRenderer&gt;
       &lt;/fx:Component&gt;
       &lt;/s:itemRenderer&gt;
  &lt;/s:List&gt;
  
  &lt;s:HGroup&gt;
       &lt;s:Button label="Forward" click="imgForward(event)"/&gt;
       &lt;s:Button label="Back" click="imgBack(event)"/&gt;
  &lt;/s:hgroup&gt;
  </code></pre>