2 Replies Latest reply on Mar 2, 2007 5:28 PM by tspratt

    Repeater displaying

    10-nice Level 1
      Hello,

      This is the first day I try Flex Builder.

      I try to display datas from a xml file. But the repeater display all the datasin just a single line.

      Here the code :

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute"
      creationComplete="messageService.send();">

      <mx:HTTPService
      id="messageService"
      url=" http://dev.web/flex/test.xml"
      resultFormat="e4x"/>

      <mx:XMLListCollection id="messagesAC"
      source="{messageService.lastResult.message}"/>

      <mx:Label text="10-nice website" width="263" height="33" fontWeight="bold" fontSize="28" textAlign="left" top="10" left="10" alpha="0.5" selectable="true"/>

      <mx:Panel width="250" height="546" layout="absolute" right="10" title="Tagboard" horizontalAlign="left" enabled="true" y="10">
      <mx:Repeater id="messageRepeater" dataProvider="{messagesAC}">
      <mx:Label text="{messageRepeater.currentItem.subject}" height="100"/>
      </mx:Repeater>
      </mx:Panel>

      </mx:Application>

      the xml file :

      <?xml version="1.0"?>
      <messages>
      <message>
      <subject>test 1</subject>
      </message>
      <message>
      <subject>test 2</subject>
      </message>
      </messages>


      It's a very simple code, but the result is not very nice :s

      http://10.nice.free.fr/datas/flex01.gif