0 Replies Latest reply on Oct 15, 2011 9:29 AM by Blemonde

    Flash or Flex component in s:List

    Blemonde

      Hello

       

      I want to use a flash component in a s:List

      All is working fine. My component is duplicate as many as record in my ArrayCollection (dataProvider)

      But when I try to connect my component to the dataProvider, i can't retrieve data.

       

      Could someone help me ?

       

      <s:List id="liste_reference" left="10" right="10" top="10" bottom="10" dataProvider="{listeTAB}" > 

             <s:itemRenderer >

                  <fx:Component >

                                              <ns1:MyClass1 x="0" y="0" titre="nom">

       

                       </ns1:MyClass1>

       

                  </fx:Component>

             </s:itemRenderer>

       

        </s:List>

       

       

      with

       

      listeTAB = new ArrayCollection()

                                              var i:Number=0

       

                                              listeTAB.addItem({nom:"test0",data:"data",nb:i})

                                              listeTAB.addItem({nom:"test1",data:"data",nb:i})

                                              listeTAB.addItem({nom:"test2",data:"data",nb:i})

                                              listeTAB.addItem({nom:"test3",data:"data",nb:i})

                                              listeTAB.addItem({nom:"test4",data:"data",nb:i})

                                              listeTAB.addItem({nom:"test5",data:"data",nb:i})

       

           liste_reference.dataProvider=listeTAB