0 Replies Latest reply on Oct 29, 2007 3:39 AM by jjj111jjj

    Flex3 b2 -Repeater Problem

    jjj111jjj
      I try the flex 3 beta 2 today.Can you help me?

      main.mxml
      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      layout="vertical"
      verticalAlign="middle"
      backgroundColor="white"
      xmlns:views="ne_views.*">

      <mx:XML id="imagesXML" source="../data/images.xml" />
      <mx:HBox id="hBox">
      <mx:Repeater id="rep" dataProvider="{imagesXML.image}">

      <views:THUMBNAIL
      imageData="{rep.currentItem}"
      />

      </mx:Repeater>
      </mx:HBox>

      </mx:Application>


      THUMBNAIL.mxml
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml"

      verticalScrollPolicy="off"
      horizontalScrollPolicy="off">

      <mx:Script>
      <![CDATA[
      [Bindable]
      public var imageData:Object;

      ]]>
      </mx:Script>

      <mx:Image source="{imageData.currentItem.@src}"
      toolTip="{imageData.currentIndex}:{imageData.currentItem.@alt}"
      />
      </mx:Canvas>


      images.xml
      <?xml version="1.0" encoding="utf-8"?>
      <images>
      <image src="../images/Button.png" alt="Button" />
      <image src="../images/ButtonBar.png" alt="ButtonBar" />
      <image src="../images/CheckBox.png" alt="CheckBox" />
      </images>