xml into a data provider

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default xml into a data provider

    I have constructed a xml file out of php you can find it here:
    [url]http://dinogod.adrianhosting.com/smf/coverflow/list.php[/url]

    I need to be able to load
    the xml formatted file into flex and use it as the dataprovider for a
    component I have

    how should I go about doing this?

    dragonair1 Guest

  2. Similar Questions and Discussions

    1. Data Grid Provider, XML attributes
      Hi all, I'm trying to populate a dataGrid component with following XML sample: <root> <row> <column name="dataGrid Header 1">Test Data...
    2. creating custom hierarchical data provider
      Hi, I'm trying to create a custom dataprovider for a 3rd party chart control. As far as I can tell, it works just like any Flex-provided...
    3. HTML Returned in Data provider as XML
      I have an HTTPservice returning xml, one of the xml elements contains html "<A href='example.com'>test</a>", when i am returning plain text the flex...
    4. How to write custom data provider
      Hi, I am trying to write a custom data provider for my list control. My data is not an array, so I am trying to rewrite all those APIs. Is there...
    5. Data Provider for .NET interface to DB2 8.1
      We're venturing into the .NET world with DB2 V8.1 Our programming manager says he needs a "data provider" for DB2 and ..NET. It would appear...
  3. #2

    Default Re: xml into a data provider

    Use the HTTPService component to load the XML. See the
    [url]http://livedocs.adobe.com/flex/3/html/index.html[/url] for complete info.

    <mx:HTTPService id="service"
    url="http://dinogod.adrianhosting.com/smf/coverflow/list.php" useProxy="false"
    method="POST" resultFormat="e4x">

    Then you can either have a result handler where you assign the result to a
    variable or do something else with it, or you could just assign the service's
    lastRequest to the data provider.

    <local:DisplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"
    borderThickness="5" borderColor="#FFFFFF"
    dataProvider="{service.lastResult.image.url}" enableHistory="false"
    width="100%"/>

    TS

    VarioPegged Guest

  4. #3

    Default Re: xml into a data provider

    And I think it is best to set the resultFormat property of the HTTPService to e4x, as processing xml in e4x format is I think the best way to go.
    Greg Lafrance Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139