3 Replies Latest reply on Jul 27, 2009 7:12 AM by Gregory Lafrance

    Repeater question

    Zolotoj Level 3

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/halo" 
           xmlns:ns1="*"
           maxWidth="1024" maxHeight="768">
           <fx:Script>
                <![CDATA[
                     [Bindable]
                  private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8]; 
                ]]>
           </fx:Script>
           <mx:Tile direction="horizontal" paddingTop="5" paddingBottom="5" paddingLeft="5" paddingRight="5" 
                borderStyle="outset" width="100%" horizontalGap="4" verticalGap="4" x="5" y="5">          
           <mx:Repeater id="rp" dataProvider="{dp}">
                <ns1:sewerPanel>
                </ns1:sewerPanel>
          </mx:Repeater>
           </mx:Tile>    
      </s:Application>
      

      In this example is it possible to access from within sewerPanel an array element which corresponds to a child in the rp?

       

      Thanks