Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
dragonair1 #1
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
-
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... -
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... -
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... -
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... -
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... -
VarioPegged #2
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
-
Greg Lafrance #3
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



Reply With Quote

