1 Reply Latest reply on Apr 30, 2008 12:58 PM by ntsiii

    Repeater woes

    Dizzia
      Alright, using a repeater to grab some data out. I can't get this to work properly though. (ever other item pulls out)


      This works:
      <mx:Repeater id ="rep1" dataProvider="{dataGrid.selectedItem.icons}">
      <mx:SWFLoader source="{rep1.currentItem.source}"/>
      </mx:Repeater>
      to generate that icon


      This doesn't work:
      <mx:Repeater id="cal2" dataProvider="{ArrayCollection}">

      <mx:Repeater id="cal3" dataProvider="{cal2.currentItem.icons}">
      <mx:SWFLoader source="{cal3.currentItem.source}" height="9" width="9"/>
      </mx:Repeater>

      </mx:Repeater>


      Yet, this works:
      <mx:Repeater id="cal1" dataProvider="{ArrayCollection}">
      <mx:VBox toolTip="{cal1.currentItem.name}" verticalGap="1" width="10" backgroundAlpha=".20" backgroundColor="#3AAEFF">
      </mx:Repeater>
      to generate all names passed into the array


      Any / all help appreciated, seems like this should be a simple fix
        • 1. Re: Repeater woes
          ntsiii Level 3
          Implement the inner repeater as a custom component, and pass the entire cal2.currentItem. implement the item property using a setter function so that you can debug the data you are getting.

          The declaritive mxml is hard to debug.

          Tracy